Files
hermes-agent/agent
EloquentBrush0x 1b9594ef14 fix(compression): a denied tool call is not summarized as if it ran
Phase-1 pruning and the fallback summary describe each old tool result with
a per-tool one-liner. For a call an approval or write guard refused, those
read as done: a denied `rm -rf build` became "[terminal] ran `rm -rf build`
-> exit -1, 1 lines output", a denied protected write became
"[write_file] wrote to AGENTS.md (2 lines)", and the "The user has NOT
consented ... Do NOT retry" instruction was dropped. Denials are 300+ chars,
over the 200-char prune floor, so this hits every long session.

Summarize a refused result (BLOCKED error, status blocked/pending_approval)
as "BLOCKED, not run" and keep the no-consent note, for every tool. Like the
clarify summary (#128346), it stays below _PRUNE_MIN_CHARS so later passes
keep it. Other results are summarized exactly as before.

(cherry picked from commit fd506bbccd3df8783dce0c0a1895f1aaf1585cb4)
2026-10-03 17:38:45 +05:30
..
2026-09-11 09:31:13 -07:00