diff --git a/README.md b/README.md index b37f8bd..68ad5a9 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ⚡️ Delivers core agent functionality in just **~4,000** lines of code — **99% smaller** than Clawdbot's 430k+ lines. -📏 Real-time line count: **3,793 lines** (run `bash core_agent_lines.sh` to verify anytime) +📏 Real-time line count: **3,827 lines** (run `bash core_agent_lines.sh` to verify anytime) ## 📢 News diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py index 4d13162..3016d92 100644 --- a/nanobot/agent/loop.py +++ b/nanobot/agent/loop.py @@ -200,7 +200,9 @@ class AgentLoop: if response.has_tool_calls: if on_progress: clean = self._strip_think(response.content) - await on_progress(clean or self._tool_hint(response.tool_calls)) + if clean: + await on_progress(clean) + await on_progress(self._tool_hint(response.tool_calls)) tool_call_dicts = [ {