fixes
This commit is contained in:
@@ -1877,12 +1877,13 @@ class App:
|
||||
imgui.table_next_column()
|
||||
script = entry.get("script", "")
|
||||
res = entry.get("result", "")
|
||||
combined = f"--- COMMAND ---\n{script}\n\n--- OUTPUT ---\n{res}"
|
||||
# Use a clear, formatted combined view for the detail window
|
||||
combined = f"COMMAND:\n{script}\n\n{'='*40}\nOUTPUT:\n{res}"
|
||||
|
||||
script_preview = script.replace("\n", " ")[:150]
|
||||
if len(script) > 150: script_preview += "..."
|
||||
if imgui.selectable(f"{script_preview}##tc_{i}", False, imgui.SelectableFlags_.span_all_columns)[0]:
|
||||
self.text_viewer_title = f"Tool Call #{i+1}"
|
||||
self.text_viewer_title = f"Tool Call #{i+1} Details"
|
||||
self.text_viewer_content = combined
|
||||
self.show_text_viewer = True
|
||||
|
||||
@@ -1890,7 +1891,7 @@ class App:
|
||||
res_preview = res.replace("\n", " ")[:30]
|
||||
if len(res) > 30: res_preview += "..."
|
||||
if imgui.button(f"View##res_{i}"):
|
||||
self.text_viewer_title = f"Tool Call #{i+1}"
|
||||
self.text_viewer_title = f"Tool Call #{i+1} Details"
|
||||
self.text_viewer_content = combined
|
||||
self.show_text_viewer = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user