fix(gui): do not auto-add tool calls/results to discussion history if ui_auto_add_history is false

This commit is contained in:
2026-03-14 09:26:54 -04:00
parent b85b7d9700
commit 81ded98198

View File

@@ -1496,6 +1496,7 @@ class AppController:
}) })
if kind in ("tool_result", "tool_call"): if kind in ("tool_result", "tool_call"):
if self.ui_auto_add_history:
role = "Tool" if kind == "tool_result" else "Vendor API" role = "Tool" if kind == "tool_result" else "Vendor API"
content = "" content = ""
if kind == "tool_result": if kind == "tool_result":