zeroclaw/src
Argenis 9dab79b730
fix: strip [Used tools: xxx] logs from channel responses (#4400)
The tool-context summary (e.g. `[Used tools: browser_open]`) was
prepended to assistant history entries for all non-Telegram channels so
the LLM could retain awareness of prior tool usage.  This caused the
model to learn and reproduce the bracket format in its own output,
delivering raw log lines to end-users instead of meaningful tool results.

Three changes:

1. Stop prepending `[Used tools: …]` to stored history for all channels.
   The LLM already receives tool context through the tool-call/result
   messages built by `run_tool_call_loop`, making the summary redundant.

2. Strip any `[Used tools: …]` prefix from cached history on reload, so
   existing sessions are cleaned up retroactively.

3. Strip the prefix in `sanitize_channel_response` as a safety net, in
   case the model still echoes it from older context.
2026-03-24 15:37:04 +03:00
..
agent fix(channels): ensure newline between narration and draft status lines (#4394) 2026-03-24 15:37:02 +03:00
approval fix(approval): merge default auto_approve entries with user config (#4262) 2026-03-24 15:34:32 +03:00
auth feat(auth): add import functionality for existing OpenAI Codex auth p… (#3762) 2026-03-24 15:30:45 +03:00
channels fix: strip [Used tools: xxx] logs from channel responses (#4400) 2026-03-24 15:37:04 +03:00
commands fix(update): diagnose arch mismatch in validate_binary before execution (#4379) 2026-03-24 15:34:57 +03:00
config feat(tools): add Claude Code task runner with Slack progress and SSH handoff (#4466) 2026-03-24 15:37:04 +03:00
cost fix(channels): add cost tracking and enforcement to all channels (#4143) 2026-03-24 15:30:46 +03:00
cron feat: declarative cron job configuration (#4045) 2026-03-24 15:34:54 +03:00
daemon fix(heartbeat): prevent UTF-8 panic, add memory bounds and path validation in session context 2026-03-24 15:34:07 +03:00
doctor feat(tool): enrich delegate sub-agent system prompt and add skills_directory config key (#3344) 2026-03-24 15:30:46 +03:00
gateway feat(tools): add Claude Code task runner with Slack progress and SSH handoff (#4466) 2026-03-24 15:37:04 +03:00
hands feat(hands): add autonomous knowledge-accumulating agent packages (#3603) 2026-03-24 15:16:05 +03:00
hardware fix(hardware): drain stdin in subprocess test to prevent broken pipe flake (#4161) 2026-03-24 15:31:17 +03:00
health refactor(sync): migrate remaining std mutex usage to parking_lot 2026-02-18 00:45:26 +08:00
heartbeat feat(heartbeat): add health metrics, adaptive intervals, and task history 2026-03-24 15:17:14 +03:00
hooks feat(hooks): add webhook-audit builtin hook (#3212) 2026-03-11 23:34:17 -04:00
integrations feat(matrix): add allowed_rooms config for room-level gating (#4230) (#4260) 2026-03-24 15:34:52 +03:00
memory feat(memory): restore time-decay scoring lost in main→master migration (#4274) 2026-03-24 15:34:54 +03:00
nodes feat(nodes): add secure HMAC-SHA256 node transport layer (#3654) 2026-03-24 15:17:12 +03:00
observability fix(observability): handle missing OtelObserver match arms and add all-features CI check (#3981) 2026-03-24 15:29:56 +03:00
onboard feat(tools): add Claude Code task runner with Slack progress and SSH handoff (#4466) 2026-03-24 15:37:04 +03:00
peripherals feat(hardware): add RPi GPIO, Aardvark I2C/SPI/GPIO, and hardware plugin system (#4125) 2026-03-24 15:30:43 +03:00
plugins fix(plugins): integrate WASM tools into registry, add gateway routes and tests 2026-03-24 15:17:30 +03:00
providers fix(gateway): improve WebSocket chat error handling and diagnostics (#4407) 2026-03-24 15:37:02 +03:00
rag chore(lint): extend low-risk clippy cleanup batch 2026-02-17 16:40:58 +08:00
runtime feat(tools): add Windows support for shell tool_call execution (#3442) 2026-03-13 17:12:16 -04:00
security fix(security): update blocked_commands_basic test after #4338 (#4399) 2026-03-24 15:37:01 +03:00
service fix: use POSIX-compatible sh -c instead of dash-specific -lc (#4209) (#4217) 2026-03-24 15:34:06 +03:00
skillforge chore: Remove blocking read strings 2026-02-19 14:52:29 +08:00
skills fix(skills): surface actionable warning when skills are skipped due to script policy (#4383) 2026-03-24 15:34:56 +03:00
sop fix(sop): fix state file leak and add deterministic execution tests (#4404) 2026-03-24 15:37:03 +03:00
tools feat(tools): add Claude Code task runner with Slack progress and SSH handoff (#4466) 2026-03-24 15:37:04 +03:00
tunnel Feat/add pinggy tunnel (#4060) 2026-03-24 15:30:39 +03:00
verifiable_intent feat(verifiable_intent): add native verifiable intent lifecycle module (#2938) 2026-03-24 15:30:40 +03:00
cli_input.rs fix(onboard): make tmux paste safe for text prompts (#4106) 2026-03-24 15:30:44 +03:00
i18n.rs feat(i18n): externalize tool descriptions for translation (#3912) 2026-03-24 15:17:33 +03:00
identity.rs test: cover deterministic HashMap ordering paths 2026-02-18 21:55:40 +08:00
lib.rs fix(sop): fix state file leak and add deterministic execution tests (#4404) 2026-03-24 15:37:03 +03:00
main.rs fix(sop): fix state file leak and add deterministic execution tests (#4404) 2026-03-24 15:37:03 +03:00
migration.rs readd tests, remove markdown files 2026-02-18 14:42:39 +08:00
multimodal.rs feat(multimodal): route image messages to dedicated vision provider (#4264) 2026-03-24 15:34:52 +03:00
util.rs feat(hardware): add RPi GPIO, Aardvark I2C/SPI/GPIO, and hardware plugin system (#4125) 2026-03-24 15:30:43 +03:00