Files
hermes-agent/tests/tools
BearHuddleston 26264afd17 fix(tools): keep the preview's elision marker neutral when the save fails
maybe_persist_tool_result builds the preview before any write and reuses
it in the inline-truncation fallback. The head-and-tail marker said
"full output in the spillover file", so a failed save told the model to
read a file that was never written, right before "[Truncated: ... could
not be saved]". The marker now only counts the elided chars; on success
the <persisted-output> block already names the file and how to page it.
2026-11-21 01:29:51 -06:00
..