Files
hermes-agent/apps/shared
kshitijk4poor 0bb0a5b8bb fix(tui): OSC 7577 follow-ups for the Ink TUI
Follow-ups to freqyfreqy's OSC 7577 support, from review:

- `--resume ID` is reported only for a session the gateway confirmed saved:
  an inline turn's prompt.submit `streaming` answer (tui_gateway writes the
  row before answering) or a resume with stored history. Token usage, a built
  agent or a pending submit no longer count; an isolated compute-host turn,
  a queued prompt and a shared gateway's admission receipt do not either.
  Saved ids are tracked only when the pane reports. Nothing is reported while
  attached to a named gateway (HERMES_TUI_GATEWAY_URL).
- The record is cleared on exit only after a user quit (die(): /quit, Ctrl+C
  or Ctrl+D at an idle prompt; or SIGINT). /update (exit 42), a crash, a
  signal and a dead output stream keep it.
- The launcher's bypass flag (--safe-mode / --ignore-user-config) rides in
  the resume prefix, and such a launch reports only a saved session
  (HERMES_TUI_RESUME_SESSION_ONLY).
- SIGCONT reports again; turning display.program_resume off at runtime asks
  the reporter whether a record is out. argv[0] follows the Python rule.
2026-11-28 01:37:13 +05:30
..