From 523b2982f4fb2c0dcf74e3a4bb01ebf2a77fd529 Mon Sep 17 00:00:00 2001 From: Darye <54469750+DaryeDev@users.noreply.github.com> Date: Thu, 19 Feb 2026 05:22:00 +0100 Subject: [PATCH 1/2] fix: fixed not logging tool uses if a think fragment had them attached. if a think fragment had a tool attached, the tool use would not log. now it does --- nanobot/agent/loop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py index e5a5183..6b45b28 100644 --- a/nanobot/agent/loop.py +++ b/nanobot/agent/loop.py @@ -198,7 +198,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 = [ { From 8db91f59e26cd0ca83fc5eb01dd346a2410d98f9 Mon Sep 17 00:00:00 2001 From: Re-bin Date: Fri, 20 Feb 2026 11:18:57 +0000 Subject: [PATCH 2/2] style: remove trailing space --- README.md | 2 +- nanobot/agent/loop.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 14a8be6..3016d92 100644 --- a/nanobot/agent/loop.py +++ b/nanobot/agent/loop.py @@ -200,7 +200,7 @@ class AgentLoop: if response.has_tool_calls: if on_progress: clean = self._strip_think(response.content) - if clean: + if clean: await on_progress(clean) await on_progress(self._tool_hint(response.tool_calls))