mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-09 13:21:42 +00:00
A notify_on_complete background process (the agent's terminal tool, proc_*) only reached the TUI as the AGENT'S NARRATION — the completion is fed to the model as a synthetic prompt (_run_prompt_submit) and the gateway emitted only message.start + the reply, never the completion itself. So the OpenTUI card mechanism had nothing to render and the synthetic turn read as a context-less line. Additive fix (glitch-approved relaxation of the no-core rule for this one emit): new _emit_process_completion_card() fires a `notification.show` (text "<cmd> exited <code>", level info/warn by exit code, kind process.complete, key proc:<id>) at the two completion-delivery sites, just before the agent turn. The OpenTUI engine renders it as a distinct inline card (P1) + an OSC ping; Ink treats it as a notice. Completion events only (watch matches skipped); call-site dedup → one card per exit. No existing behavior changes — the agent turn still happens. Gateway suite green (321 passed incl. 5 new TestProcessCompletionCard cases). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| entry.py | ||
| event_publisher.py | ||
| render.py | ||
| server.py | ||
| slash_worker.py | ||
| transport.py | ||
| ws.py | ||