Skip to content

Commit e7af888

Browse files
authored
Update agent.py
1 parent 510fe7f commit e7af888

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

python_agent_harness/agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ def _run_tools(
381381
"Error: tool call cancelled (user aborted the run)."
382382
)
383383
continue
384+
# Notify the TUI which tool is currently executing so the
385+
# status bar can show the active tool name beside the spinner.
386+
if self.top_level:
387+
self.session.notify("tool_running", p.name)
384388
try:
385389
result = self._execute_tool_call(p)
386390
except Exception as e: # noqa: BLE001 - containment boundary

0 commit comments

Comments
 (0)