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
This commit is contained in:
Darye
2026-02-19 05:22:00 +01:00
parent 8de36d398f
commit 523b2982f4

View File

@@ -198,7 +198,9 @@ class AgentLoop:
if response.has_tool_calls: if response.has_tool_calls:
if on_progress: if on_progress:
clean = self._strip_think(response.content) 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 = [ tool_call_dicts = [
{ {