mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-27 11:22:03 +00:00
ToolFallback rebuilt the `part` wrapper every render, defeating the buildToolView memo and re-running a full JSON.stringify of the result on every ~33ms stream delta. A /learn over a large directory (many ~100KB tool results) saturated the renderer main thread (hang/throttle) and spiked memory until it OOMd (crash). - Re-derive a stable `part` from the referentially-stable args/result so the view/copy memos hold across deltas. - Clamp every inline-painted payload (detail, stdout/stderr, rawResult, technical trace) to MAX_TOOL_RENDER_CHARS; the row's Copy button still reads the uncapped view.detail for the full output. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||