From b13d7f853e8173162df02af0dc1b8e25b674753b Mon Sep 17 00:00:00 2001 From: Re-bin Date: Sun, 22 Feb 2026 17:17:35 +0000 Subject: [PATCH] fix(agent): make tool hint a fallback when no content in on_progress --- nanobot/agent/loop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py index 5762fa9..b05ba90 100644 --- a/nanobot/agent/loop.py +++ b/nanobot/agent/loop.py @@ -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 = [ {