fix(agent): make tool hint a fallback when no content in on_progress

This commit is contained in:
Re-bin
2026-02-22 17:17:35 +00:00
parent d5e820df98
commit b13d7f853e

View File

@@ -196,7 +196,8 @@ class AgentLoop:
clean = self._strip_think(response.content)
if clean:
await on_progress(clean)
await on_progress(self._tool_hint(response.tool_calls))
else:
await on_progress(self._tool_hint(response.tool_calls))
tool_call_dicts = [
{