Merge PR #833: always send tool hint even when model has preceding text

This commit is contained in:
Re-bin
2026-02-20 11:19:00 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

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