hermes-agent/tui_gateway/contracts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Brooklyn Nicholson 591e3a7ce1 fix(tui_gateway): broadcast approval.cancelled when reap/teardown drop pending prompts
The WS-orphan reap interrupts the turn (deny-resolving the pending approval
queue) and teardown pops it via unregister_gateway_notify — both silently.
A reconnecting client's parked prompt card then answers resolved: 0 (or a
bare 4001 on approval.pending), so the prompt looked lost rather than
cancelled and the user had no signal the command would never run (#106678).

- session_lifecycle: _announce_cancelled_gateway_approvals broadcasts the
  dropped entries (session ids, reason, request ids/count) before the
  deny-resolve drains the queue, from both _interrupt_session_turn and
  _teardown_session. Fail-open: a missing key, empty queue, or broadcast
  failure never blocks the deny-resolve or teardown.
- _interrupt_session_turn gains orphan= so the reaper labels its cancels
  ws_orphan_reap explicitly (never request_id prefix sniffing).
- contracts: ApprovalCancelledPayload event model + regenerated TS/OpenRPC.
- desktop: gateway-event lifecycle consumes approval.cancelled and clears
  the parked prompt cards by request id (mismatch is a no-op, so a newer
  prompt survives); the turn's BLOCKED tool result is the in-transcript
  signal, same as the timeout path.

Supersedes #106693 (KoNit-K) and #126455 (Finn763); design credit to both.

Co-authored-by: KoNit-K <[email protected]>

Fixes #106678
2026-09-29 21:42:20 -05:00
..
__init__.py feat(i18n): pluggable, layered language packs across core, Desktop and TUI (#126296) 2026-09-28 14:16:18 -07:00
base.py test(contracts): tests mirror tui_gateway/; the runtime-artifact spoof test asserts the new 4000 2026-09-14 06:12:19 -07:00
billing_delegation_pets.py Free tier: separate 'account exists' from 'runs this chat', and stop the mint from writing active_provider (#127486) 2026-09-29 07:44:13 +00:00
common.py fix(desktop+gateway): surface continuation kind on compression-chain tips (#121148) 2026-09-26 21:05:51 -05:00
config_free_tier_control.py Free tier: separate 'account exists' from 'runs this chat', and stop the mint from writing active_provider (#127486) 2026-09-29 07:44:13 +00:00
connectors.py feat(connectors): the backend API for the desktop Connectors page; connect an app without a chat session (#115191) 2026-09-22 13:57:51 +05:30
connectors_operation.py Catalog install card: plugin and skill rows with an Advanced install modal (#119633) 2026-09-23 05:11:35 +05:30
display.py feat(bot_desktop): Bot Screen, computer_use and the browser run inside the terminal backend (#121169) 2026-09-28 03:34:07 -07:00
events.py fix(tui_gateway): broadcast approval.cancelled when reap/teardown drop pending prompts 2026-09-29 21:42:20 -05:00
groups_bot_relay.py refactor(contracts): consolidate the five shapes declared twice (PendingApproval, MessageReaction, SessionControlSnapshot, ApprovalChoice, provider row) — no module-qualified TS names remain 2026-09-14 06:12:19 -07:00
i18n.py feat(i18n): pluggable, layered language packs across core, Desktop and TUI (#126296) 2026-09-28 14:16:18 -07:00
liveness.py fix(desktop): refuse window-owned pane requests at once when no window shows the session 2026-09-28 21:04:47 -04:00
profiles_vault_complete_foreign_subagents.py fix(desktop): scope the new-chat slash palette to the rail-selected profile (#124651, salvage #124845) 2026-09-28 03:13:19 -07:00
projects_pets.py fix(projects): gate branch switching on non-git folder lanes (#61362) 2026-09-25 17:19:54 -05:00
prompt_voice.py fix(gateway): acknowledge persisted prompt and reply identities 2026-09-22 17:36:39 -05:00
registry.py feat(connectors): the backend API for the desktop Connectors page; connect an app without a chat session (#115191) 2026-09-22 13:57:51 +05:30
server_requests.py Clarify: one question shape and one result shape on every surface (skip, cancel, timeout and undelivered are told apart) (#127760) 2026-09-29 18:33:44 +05:30
sessions.py feat(telemetry): per-model tool-call quality, friction and context-peak counters 2026-09-28 12:43:03 -07:00
tools_commands.py feat(process_registry): stamp exited_at and expose it on process.list 2026-09-20 13:55:03 -07:00
tools_mcp_plugins.py feat(i18n): pluggable, layered language packs across core, Desktop and TUI (#126296) 2026-09-28 14:16:18 -07:00