mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-09 13:21:42 +00:00
Resumed tool calls were flat `⚡name arg` rows — no output, not collapsible — because the resume snapshot (_history_to_messages) dropped each tool's result. Now the native engine passes `with_tool_output: true` on session.resume and the gateway folds the tool's redacted+capped result + args into its row, so resumed turns show `▶ name arg (N lines)` collapsible blocks identical to a live turn. The flag is OPT-IN: Ink doesn't pass it, so _history_to_messages stays byte-for- byte unchanged for the Ink path (its expanded verbose-trail render OOM'd on big output, #34095; the native engine renders tools collapsed, so the capped tail is safe there). resume.ts maps context→argsPreview, result_text→resultText (label peeled + envelope stripped), args→argsText — same shape as the live tool part. py_compile OK. resume tests updated + 1 added (79 pass). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| entry.py | ||
| event_publisher.py | ||
| render.py | ||
| server.py | ||
| slash_worker.py | ||
| transport.py | ||
| ws.py | ||