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] 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 = [ {