Skip to content

The agent that grows with you

fix(gateway): show why a session is paused on a lost turn, with discard in place

Tekniumff04d0fbdefa
diff --git a/gateway/run_busy.py b/gateway/run_busy.py
index 1ead45fc6cc..2273eefbfbd 100644
--- a/gateway/run_busy.py
+++ b/gateway/run_busy.py
@@ -999,7 +999,7 @@ class GatewayBusySessionMixin:
_COMMAND_HANDLER_ALIASES = {"bg": "_handle_background_command", "sethome": "_handle_set_home_command"}
# Ordinary slash handlers shared by idle and busy dispatch.
_PLAIN_COMMANDS = (
- "status", "context", "restart", "approve", "deny", "pause", "agents", "bg", "btw",
+ "status", "context", "restart", "approve", "deny", "pause", "discard", "agents", "bg", "btw",
"kanban", "subgoal", "heartbeat", "busy", "yolo", "verbose", "footer", "help",
"commands", "profile", "login", "update", "version", "autoprune",
)
diff --git a/gateway/session_ingress.py b/gateway/session_ingress.py
index e1911f75180..0b41a51b91e 100644
--- a/gateway/session_ingress.py
+++ b/gateway/session_ingress.py
@@ -198,9 +198,12 @@ def pause_notice(authority, ref, reason):
# Transient: queued behind work already running on this conversation (a worker execution).
return '⏳ Your message is saved and will be answered when the work running in this conversation finishes.'
if reason == 'unknown_execution':
- cause = 'a previous turn did not finish when Hermes restarted, so nothing queued after it will run'
- else:
- cause = f'a queued message could not be re-authorized ({reason})'
+ # GW-10: the way out is in this chat. /discard acknowledges the lost turn (never replayed)
+ # through the same fenced resolve_unknown as Desktop/TUI, and the saved messages then run.
+ return ('⏸️ This conversation is paused: a previous turn did not finish when Hermes restarted, '
+ 'and only you know whether to send it again. Your message is saved. Send /discard to drop '
+ 'the lost turn and continue (it is not re-run), or /reset to start a fresh conversation.')
+ cause = f'a queued message could not be re-authorized ({reason})'
return (f'⏸️ This conversation is paused: {cause}. Your message is saved but will not be answered here. '
'Send /reset to start a fresh conversation, or ask the operator to resume this one.')
diff --git a/gateway/slash_commands_session.py b/gateway/slash_commands_session.py
index 7969173441a..91abfce9d73 100644
--- a/gateway/slash_commands_session.py
+++ b/gateway/slash_commands_session.py
@@ -112,6 +112,29 @@ def _strip_resume_name(parts: list[str]) -> str:
return name
+async def discard_lost_turns(authority, session_id) -> str:
+ """Messaging ``/discard`` (#134889 GW-10): acknowledge every ``unknown`` (lost-in-restart) turn
+ of this chat's FIFO through the owner's fenced ``resolve_unknown``, the path Desktop's Discard,
+ the TUI queue and ``hermes sessions discard`` use. Never replays the input; the saved
+ followers run once it commits."""
+ from gateway.session_contract import SessionRef
+ from hermes_state_runtime import RuntimeStoreError, list_session_admissions
+ rows = await asyncio.to_thread(list_session_admissions, authority.db, session_id=session_id)
+ lost = [row for row in rows if row['status'] == 'unknown']
+ if not lost:
+ return t("gateway.discard.nothing")
+ ref = SessionRef(authority.profile_id, session_id)
+ done = 0
+ for row in lost:
+ try:
+ await authority.resolve_unknown_as_owner(ref, row['admission_id'], row['generation'])
+ except RuntimeStoreError as exc:
+ logger.warning("/discard of %s refused: %s", row['admission_id'], exc.reason)
+ continue
+ done += 1
+ return t("gateway.discard.done", count=done) if done else t("gateway.discard.nothing")
+
+
class GatewaySessionCommandsMixin:
"""Session-transcript slash commands (/new, /resume, /sessions, /branch, /title, /save, /undo, /retry, /topic, /compress)."""
@@ -153,6 +176,18 @@ class GatewaySessionCommandsMixin:
await self.hooks.emit("session:end", dict(hook_payload))
await self.hooks.emit("session:reset", dict(hook_payload))
+ async def _handle_discard_command(self, event: MessageEvent) -> str:
+ """``/discard``: drop this chat's turn lost in a gateway restart so its queue runs again."""
+ from gateway.session_authorities import active_authority
+ if not self._is_user_authorized_for_source(event.source):
+ return t("gateway.discard.nothing")
+ authority = active_authority(self)
+ session_key = self._session_key_for_source(event.source)
+ sid = authority.logical_owner(self.session_store.peek_session_id(session_key)) if authority else None
+ if not sid or sid not in authority.sessions:
+ return t("gateway.discard.nothing")
+ return await discard_lost_turns(authority, sid)
+
async def _handle_reset_command(self, event: MessageEvent) -> str | EphemeralReply:
"""Handle /new or /reset command."""
source = event.source
diff --git a/hermes_cli/commands.py b/hermes_cli/commands.py
index 94e44718986..1afdc02f2e2 100644
--- a/hermes_cli/commands.py
+++ b/hermes_cli/commands.py
@@ -123,6 +123,8 @@ COMMAND_REGISTRY: list[CommandDef] = [
cli_only=True, args_hint="<archive.tar.gz> [--name <name>]"),
CommandDef("stop", "Kill all running background processes", "Session",
busy_policy="interrupt_then_dispatch", busy_handler="stop"),
+ CommandDef("discard", "Drop a turn lost when Hermes restarted so this chat's queue runs again", "Session",
+ gateway_only=True, busy_policy="dispatch"),
CommandDef("pause", "Pause new work globally (emergency stop); '/pause off' resumes", "Session",
gateway_only=True, args_hint="[reason | off]", busy_policy="dispatch"),
CommandDef("approve", "Approve a pending dangerous command", "Session",
diff --git a/hermes_cli/commands_platforms.py b/hermes_cli/commands_platforms.py
index f4f4158f8f2..b3e111645bd 100644
--- a/hermes_cli/commands_platforms.py
+++ b/hermes_cli/commands_platforms.py
@@ -384,6 +384,8 @@ _SLACK_RESERVED_COMMANDS = frozenset({
_SLACK_VIA_HERMES_ONLY = frozenset({
"topup", "moa", "debug", "egress", "init", "version", "diff", "update", "heartbeat",
"refine", "review", "pause", "whoami", "platform", "insights", "login",
+ # Recovery-only, after a restart lost a turn: `/hermes discard` reaches it.
+ "discard",
# One-time answer to the low-disk prompt; `/hermes autoprune on` reaches it.
"autoprune"})
diff --git a/locales/_keys.tui.json b/locales/_keys.tui.json
index 80f2553dd35..d24513f5dac 100644
--- a/locales/_keys.tui.json
+++ b/locales/_keys.tui.json
@@ -105,6 +105,7 @@
"canonical.queue.discardFailed",
"canonical.queue.invalidRecord",
"canonical.queue.journalCleanupFailed",
+ "canonical.queue.lostRow",
"canonical.queue.notSavedDraftKept",
"canonical.queue.notSavedQueueKept",
"canonical.queue.serverRow",
diff --git a/locales/af.tui.yaml b/locales/af.tui.yaml
index d62e1476408..13df5c7de2f 100644
--- a/locales/af.tui.yaml
+++ b/locales/af.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "invoer afgelewer; joernaalopruiming het m
canonical.queue.notSavedDraftKept: "invoer nie gestoor nie: {0} — konsep behou"
canonical.queue.notSavedQueueKept: "invoer nie gestoor nie: {0} — tou behou"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[gepouseer: verlore in herbegin · ↑ kies, Ctrl+X gooi weg] {0}"
canonical.queue.statusInputNotSaved: "invoer nie gestoor nie"
canonical.queue.unconfirmedPrefix: "[onbevestig · Alt+K probeer weer] "
canonical.queue.unknownExecution: "onbekende uitvoering — Ctrl+X om weg te gooi voor jy weer probeer"
diff --git a/locales/af.yaml b/locales/af.yaml
index c83eee703f8..0f8ee5fdd2e 100644
--- a/locales/af.yaml
+++ b/locales/af.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "Nee"
queued: "**Opgehoopte opvolge:** {count}"
platforms: "**Verbinde Platforms:** {platforms}"
+ discard:
+ nothing: "Niks om weg te gooi nie: hierdie klets het geen beurt wat in 'n herbegin verlore is nie."
+ done: "🗑️ {count} verlore beurt(e) weggegooi; hulle is nie weer uitgevoer nie. Jou gestoorde boodskappe word nou beantwoord."
stop:
stopped_pending: "⚡ Gestop. Die agent het nog nie begin nie — jy kan met hierdie sessie voortgaan."
stopped: "⚡ Gestop. Jy kan met hierdie sessie voortgaan."
@@ -1530,6 +1533,8 @@ slash:
description: "Voer 'n gedeelde profielargief as 'n nuwe profiel in"
stop:
description: "Beëindig alle lopende agtergrondprosesse"
+ discard:
+ description: "Gooi 'n beurt weg wat verlore is toe Hermes herbegin het sodat hierdie klets se tou weer loop"
pause:
description: "Pouseer nuwe werk globaal (noodstop); '/pause off' hervat"
deny:
diff --git a/locales/ar.tui.yaml b/locales/ar.tui.yaml
index aff53517f08..dac0e127651 100644
--- a/locales/ar.tui.yaml
+++ b/locales/ar.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "تم تسليم الإدخال؛ فشل
canonical.queue.notSavedDraftKept: "لم يُحفَظ الإدخال: {0} — تم الاحتفاظ بالمسودة"
canonical.queue.notSavedQueueKept: "لم يُحفَظ الإدخال: {0} — تم الاحتفاظ بقائمة الانتظار"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[متوقف: فُقد عند إعادة التشغيل · ↑ اختر، Ctrl+X تجاهل] {0}"
canonical.queue.statusInputNotSaved: "لم يُحفَظ الإدخال"
canonical.queue.unconfirmedPrefix: "[غير مؤكَّد · Alt+K إعادة المحاولة] "
canonical.queue.unknownExecution: "تنفيذ غير معروف — Ctrl+X للتجاهل قبل إعادة المحاولة"
diff --git a/locales/ar.yaml b/locales/ar.yaml
index 0ba1fc9f198..e19d6176517 100644
--- a/locales/ar.yaml
+++ b/locales/ar.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "لا"
queued: "**المتابعات في الطابور:** {count}"
platforms: "**المنصّات المتصلة:** {platforms}"
+ discard:
+ nothing: "لا شيء لتجاهله: لا توجد في هذه المحادثة جولة فُقدت أثناء إعادة التشغيل."
+ done: "🗑️ تم تجاهل {count} جولة مفقودة؛ لم تُعد تشغيلها. سيتم الرد على رسائلك المحفوظة الآن."
stop:
stopped_pending: "⚡ تم الإيقاف. لم يكن الوكيل قد بدأ بعد — يمكنك متابعة هذه الجلسة."
stopped: "⚡ تم الإيقاف. يمكنك متابعة هذه الجلسة."
@@ -1530,6 +1533,8 @@ slash:
description: "استيراد أرشيف ملف تعريفي مشترك كملف تعريفي جديد"
stop:
description: "إنهاء كل العمليات قيد التشغيل في الخلفية"
+ discard:
+ description: "تجاهل جولة فُقدت عند إعادة تشغيل Hermes لتستأنف قائمة انتظار هذه المحادثة"
pause:
description: "إيقاف الأعمال الجديدة مؤقتًا على مستوى النظام (إيقاف طارئ)؛ '/pause off' يستأنفها"
deny:
diff --git a/locales/de.tui.yaml b/locales/de.tui.yaml
index 3ce09ced9ca..000c598da93 100644
--- a/locales/de.tui.yaml
+++ b/locales/de.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "Eingabe zugestellt; Journal-Bereinigung f
canonical.queue.notSavedDraftKept: "Eingabe nicht gespeichert: {0} — Entwurf beibehalten"
canonical.queue.notSavedQueueKept: "Eingabe nicht gespeichert: {0} — Warteschlange beibehalten"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[pausiert: beim Neustart verloren · ↑ wählen, Ctrl+X verwerfen] {0}"
canonical.queue.statusInputNotSaved: "Eingabe nicht gespeichert"
canonical.queue.unconfirmedPrefix: "[unbestätigt · Alt+K wiederholen] "
canonical.queue.unknownExecution: "unbekannte Ausführung — Ctrl+X zum Verwerfen vor erneutem Versuch"
diff --git a/locales/de.yaml b/locales/de.yaml
index 96a2f9bf105..0d85243855b 100644
--- a/locales/de.yaml
+++ b/locales/de.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "Nein"
queued: "**Wartende Folgenachrichten:** {count}"
platforms: "**Verbundene Plattformen:** {platforms}"
+ discard:
+ nothing: "Nichts zu verwerfen: In diesem Chat ging bei einem Neustart kein Turn verloren."
+ done: "🗑️ {count} verlorene(n) Turn(s) verworfen; sie wurden nicht erneut ausgeführt. Deine gespeicherten Nachrichten werden jetzt beantwortet."
stop:
stopped_pending: "⚡ Gestoppt. Der Agent hatte noch nicht begonnen — Sie können diese Sitzung fortsetzen."
stopped: "⚡ Gestoppt. Sie können diese Sitzung fortsetzen."
@@ -1530,6 +1533,8 @@ slash:
description: "Ein geteiltes Profilarchiv als neues Profil importieren"
stop:
description: "Alle laufenden Hintergrundprozesse beenden"
+ discard:
+ description: "Einen beim Neustart von Hermes verlorenen Turn verwerfen, damit die Warteschlange dieses Chats weiterläuft"
pause:
description: "Neue Arbeit global pausieren (Notstopp); '/pause off' setzt fort"
deny:
diff --git a/locales/en.yaml b/locales/en.yaml
index 1a773037e49..961bd90f97b 100644
--- a/locales/en.yaml
+++ b/locales/en.yaml
@@ -449,6 +449,9 @@ gateway:
state_no: "No"
queued: "**Queued follow-ups:** {count}"
platforms: "**Connected Platforms:** {platforms}"
+ discard:
+ nothing: "Nothing to discard: this chat has no turn lost in a restart."
+ done: "🗑️ Discarded {count} lost turn(s); they were not re-run. Your saved messages will be answered now."
stop:
stopped_pending: "⚡ Stopped. The agent hadn't started yet — you can continue this session."
stopped: "⚡ Stopped. You can continue this session."
@@ -1601,6 +1604,8 @@ slash:
description: "Import a shared profile archive as a new profile"
stop:
description: "Kill all running background processes"
+ discard:
+ description: "Drop a turn lost when Hermes restarted so this chat's queue runs again"
pause:
description: "Pause new work globally (emergency stop); '/pause off' resumes"
deny:
diff --git a/locales/es.tui.yaml b/locales/es.tui.yaml
index 9534faaae5f..653fc35029e 100644
--- a/locales/es.tui.yaml
+++ b/locales/es.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "entrada entregada; falló la limpieza del
canonical.queue.notSavedDraftKept: "entrada no guardada: {0} — borrador conservado"
canonical.queue.notSavedQueueKept: "entrada no guardada: {0} — cola conservada"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[en pausa: perdido al reiniciar · ↑ seleccionar, Ctrl+X descartar] {0}"
canonical.queue.statusInputNotSaved: "entrada no guardada"
canonical.queue.unconfirmedPrefix: "[sin confirmar · Alt+K reintentar] "
canonical.queue.unknownExecution: "ejecución desconocida — Ctrl+X para descartar antes de reintentar"
diff --git a/locales/es.yaml b/locales/es.yaml
index 25835352ec1..6f51f34607f 100644
--- a/locales/es.yaml
+++ b/locales/es.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "No"
queued: "**Seguimientos en cola:** {count}"
platforms: "**Plataformas conectadas:** {platforms}"
+ discard:
+ nothing: "Nada que descartar: este chat no tiene ningún turno perdido en un reinicio."
+ done: "🗑️ Se descartaron {count} turno(s) perdido(s); no se volvieron a ejecutar. Tus mensajes guardados se responderán ahora."
stop:
stopped_pending: "⚡ Detenido. El agente aún no había comenzado — puedes continuar esta sesión."
stopped: "⚡ Detenido. Puedes continuar esta sesión."
@@ -1530,6 +1533,8 @@ slash:
description: "Importar un archivo de perfil compartido como nuevo perfil"
stop:
description: "Terminar todos los procesos en segundo plano en ejecución"
+ discard:
+ description: "Descarta un turno perdido al reiniciar Hermes para que la cola de este chat continúe"
pause:
description: "Pausar todo el trabajo nuevo globalmente (parada de emergencia); '/pause off' reanuda"
deny:
diff --git a/locales/fr.tui.yaml b/locales/fr.tui.yaml
index d228e160851..6108c614c88 100644
--- a/locales/fr.tui.yaml
+++ b/locales/fr.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "saisie livrée ; échec du nettoyage du j
canonical.queue.notSavedDraftKept: "saisie non enregistrée : {0} — brouillon conservé"
canonical.queue.notSavedQueueKept: "saisie non enregistrée : {0} — file d'attente conservée"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[en pause : perdu au redémarrage · ↑ sélectionner, Ctrl+X ignorer] {0}"
canonical.queue.statusInputNotSaved: "saisie non enregistrée"
canonical.queue.unconfirmedPrefix: "[non confirmé · Alt+K réessayer] "
canonical.queue.unknownExecution: "exécution inconnue — Ctrl+X pour supprimer avant de réessayer"
diff --git a/locales/fr.yaml b/locales/fr.yaml
index 13b40dd9455..df50093d340 100644
--- a/locales/fr.yaml
+++ b/locales/fr.yaml
@@ -485,6 +485,9 @@ gateway:
state_no: "Non"
queued: "**Suivis en file :** {count}"
platforms: "**Plateformes connectées :** {platforms}"
+ discard:
+ nothing: "Rien à ignorer : ce chat n'a aucun tour perdu lors d'un redémarrage."
+ done: "🗑️ {count} tour(s) perdu(s) ignoré(s) ; ils n'ont pas été relancés. Vos messages enregistrés vont maintenant recevoir une réponse."
stop:
stopped_pending: "⚡ Arrêté. L'agent n'avait pas encore commencé — vous pouvez continuer cette session."
stopped: "⚡ Arrêté. Vous pouvez continuer cette session."
@@ -1782,6 +1785,8 @@ slash:
description: "Importer une archive de profil partagée comme nouveau profil"
stop:
description: "Tuer tous les processus en arrière-plan en cours"
+ discard:
+ description: "Ignorer un tour perdu au redémarrage de Hermes pour que la file de ce chat reprenne"
pause:
description: "Suspendre tout nouveau travail globalement (arrêt d'urgence) ; '/pause off' reprend"
deny:
diff --git a/locales/ga.tui.yaml b/locales/ga.tui.yaml
index 3508d02e2ff..f5bf5dea3f9 100644
--- a/locales/ga.tui.yaml
+++ b/locales/ga.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "ionchur seachadta; theip ar ghlanadh an d
canonical.queue.notSavedDraftKept: "ionchur gan sábháil: {0} — dréacht coinnithe"
canonical.queue.notSavedQueueKept: "ionchur gan sábháil: {0} — scuaine coinnithe"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[ar sos: caillte san atosú · ↑ roghnaigh, Ctrl+X caith amach] {0}"
canonical.queue.statusInputNotSaved: "ionchur gan sábháil"
canonical.queue.unconfirmedPrefix: "[gan dearbhú · Alt+K triail arís] "
canonical.queue.unknownExecution: "forghníomhú anaithnid — Ctrl+X le scriosadh roimh thriail arís"
diff --git a/locales/ga.yaml b/locales/ga.yaml
index 85f5164f5c2..42d681ea30a 100644
--- a/locales/ga.yaml
+++ b/locales/ga.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "Níl"
queued: "**Tascanna i scuaine:** {count}"
platforms: "**Ardáin Cheangailte:** {platforms}"
+ discard:
+ nothing: "Níl aon rud le caitheamh amach: níl aon seal caillte ag an gcomhrá seo i n-atosú."
+ done: "🗑️ Caitheadh amach {count} seal caillte; níor ritheadh arís iad. Freagrófar do theachtaireachtaí sábháilte anois."
stop:
stopped_pending: "⚡ Stoptha. Ní raibh an gníomhaire tosaithe fós — is féidir leat leanúint leis an seisiún seo."
stopped: "⚡ Stoptha. Is féidir leat leanúint leis an seisiún seo."
@@ -1530,6 +1533,8 @@ slash:
description: "Iompórtáil cartlann próifíle roinnte mar phróifíl nua"
stop:
description: "Maraigh gach próiseas cúlra atá ag rith"
+ discard:
+ description: "Caith amach seal a cailleadh nuair a atosaíodh Hermes ionas go ritheann scuaine an chomhrá seo arís"
pause:
description: "Cuir obair nua ar sos go domhanda (stop éigeandála); atosaíonn '/pause off' í"
deny:
diff --git a/locales/hu.tui.yaml b/locales/hu.tui.yaml
index 6b86562ed69..2a85ab30da2 100644
--- a/locales/hu.tui.yaml
+++ b/locales/hu.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "bevitel kézbesítve; a napló takarítá
canonical.queue.notSavedDraftKept: "bevitel nincs mentve: {0} — a piszkozat megmaradt"
canonical.queue.notSavedQueueKept: "bevitel nincs mentve: {0} — a várólista megmaradt"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[szüneteltetve: újraindításkor elveszett · ↑ kijelöl, Ctrl+X elvet] {0}"
canonical.queue.statusInputNotSaved: "bevitel nincs mentve"
canonical.queue.unconfirmedPrefix: "[nincs megerősítve · Alt+K újra] "
canonical.queue.unknownExecution: "ismeretlen végrehajtás — újrapróbálás előtt Ctrl+X az elvetéshez"
diff --git a/locales/hu.yaml b/locales/hu.yaml
index d73ed002d51..a9c122f30b7 100644
--- a/locales/hu.yaml
+++ b/locales/hu.yaml
@@ -448,6 +448,9 @@ gateway:
state_no: "Nem"
queued: "**Sorban álló folytatások:** {count}"
platforms: "**Csatlakoztatott platformok:** {platforms}"
+ discard:
+ nothing: "Nincs mit elvetni: ebben a csevegésben nem veszett el kör újraindításkor."
+ done: "🗑️ {count} elveszett kör elvetve; nem futottak újra. A mentett üzeneteidre most válasz érkezik."
stop:
stopped_pending: "⚡ Leállítva. Az ügynök még el sem kezdte — folytathatod ezt a munkamenetet."
stopped: "⚡ Leállítva. Folytathatod ezt a munkamenetet."
@@ -1547,6 +1550,8 @@ slash:
description: "Megosztott profilarchívum importálása új profilként"
stop:
description: "Minden futó háttérfolyamat leállítása"
+ discard:
+ description: "Egy Hermes újraindításakor elveszett kör elvetése, hogy a csevegés sora újra fusson"
pause:
description: "Új munka globális szüneteltetése (vészleállítás); a '/pause off' folytatja"
deny:
diff --git a/locales/it.tui.yaml b/locales/it.tui.yaml
index d4ad6ff5338..4eaf3766b40 100644
--- a/locales/it.tui.yaml
+++ b/locales/it.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "input consegnato; pulizia del journal non
canonical.queue.notSavedDraftKept: "input non salvato: {0} — bozza mantenuta"
canonical.queue.notSavedQueueKept: "input non salvato: {0} — coda mantenuta"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[in pausa: perso al riavvio · ↑ seleziona, Ctrl+X scarta] {0}"
canonical.queue.statusInputNotSaved: "input non salvato"
canonical.queue.unconfirmedPrefix: "[non confermato · Alt+K riprova] "
canonical.queue.unknownExecution: "esecuzione sconosciuta — Ctrl+X per eliminare prima di riprovare"
diff --git a/locales/it.yaml b/locales/it.yaml
index 23ed9d57f78..51df6a00b34 100644
--- a/locales/it.yaml
+++ b/locales/it.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "No"
queued: "**Follow-up in coda:** {count}"
platforms: "**Piattaforme connesse:** {platforms}"
+ discard:
+ nothing: "Niente da scartare: questa chat non ha turni persi in un riavvio."
+ done: "🗑️ Scartati {count} turni persi; non sono stati rieseguiti. I tuoi messaggi salvati riceveranno ora risposta."
stop:
stopped_pending: "⚡ Fermato. L'agente non era ancora partito — puoi continuare questa sessione."
stopped: "⚡ Fermato. Puoi continuare questa sessione."
@@ -1530,6 +1533,8 @@ slash:
description: "Importa un archivio di profilo condiviso come nuovo profilo"
stop:
description: "Termina tutti i processi in background in esecuzione"
+ discard:
+ description: "Scarta un turno perso al riavvio di Hermes così la coda di questa chat riprende"
pause:
description: "Metti in pausa globalmente il nuovo lavoro (arresto di emergenza); '/pause off' riprende"
deny:
diff --git a/locales/ja.tui.yaml b/locales/ja.tui.yaml
index ef45de1ab95..8951d56ac3f 100644
--- a/locales/ja.tui.yaml
+++ b/locales/ja.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "入力は配信されましたが、ジ
canonical.queue.notSavedDraftKept: "入力を保存できませんでした: {0} — 下書きは保持されています"
canonical.queue.notSavedQueueKept: "入力を保存できませんでした: {0} — キューは保持されています"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[一時停止: 再起動で失われました · ↑ 選択、Ctrl+X 破棄] {0}"
canonical.queue.statusInputNotSaved: "入力未保存"
canonical.queue.unconfirmedPrefix: "[未確認 · Alt+K で再試行] "
canonical.queue.unknownExecution: "実行状態が不明です — 再試行する前に Ctrl+X で破棄してください"
diff --git a/locales/ja.yaml b/locales/ja.yaml
index 992246f9d74..222af881a73 100644
--- a/locales/ja.yaml
+++ b/locales/ja.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "いいえ"
queued: "**キュー内の後続:** {count}"
platforms: "**接続プラットフォーム:** {platforms}"
+ discard:
+ nothing: "破棄するものはありません: このチャットに再起動で失われたターンはありません。"
+ done: "🗑️ 失われたターンを {count} 件破棄しました。再実行はしていません。保存されたメッセージにこれから応答します。"
stop:
stopped_pending: "⚡ 停止しました。エージェントはまだ開始していません — このセッションを続行できます。"
stopped: "⚡ 停止しました。このセッションを続行できます。"
@@ -1530,6 +1533,8 @@ slash:
description: "共有されたプロファイルアーカイブを新しいプロファイルとしてインポート"
stop:
description: "実行中のバックグラウンドプロセスをすべて終了"
+ discard:
+ description: "Hermes の再起動で失われたターンを破棄し、このチャットのキューを再開します"
pause:
description: "新しい作業を全体的に一時停止(緊急停止)。'/pause off' で再開"
deny:
diff --git a/locales/ko.tui.yaml b/locales/ko.tui.yaml
index 03f7b28d437..1d439b5034e 100644
--- a/locales/ko.tui.yaml
+++ b/locales/ko.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "입력은 전달됐지만 저널 정리
canonical.queue.notSavedDraftKept: "입력을 저장하지 못했어요: {0} — 입력 중인 내용은 유지돼요"
canonical.queue.notSavedQueueKept: "입력을 저장하지 못했어요: {0} — 대기열은 유지돼요"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[일시 중지: 재시작 중 손실 · ↑ 선택, Ctrl+X 버리기] {0}"
canonical.queue.statusInputNotSaved: "입력 미저장"
canonical.queue.unconfirmedPrefix: "[미확인 · Alt+K 재시도] "
canonical.queue.unknownExecution: "실행 상태를 알 수 없어요 — 다시 시도하기 전에 Ctrl+X로 버리세요"
diff --git a/locales/ko.yaml b/locales/ko.yaml
index a76da7f4ff2..407abe9526b 100644
--- a/locales/ko.yaml
+++ b/locales/ko.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "아니오"
queued: "**대기 중인 후속 작업:** {count}"
platforms: "**연결된 플랫폼:** {platforms}"
+ discard:
+ nothing: "버릴 것이 없습니다: 이 채팅에는 재시작으로 손실된 턴이 없습니다."
+ done: "🗑️ 손실된 턴 {count}개를 버렸습니다. 다시 실행하지 않았습니다. 저장된 메시지에 이제 응답합니다."
stop:
stopped_pending: "⚡ 중지되었습니다. 에이전트가 아직 시작되지 않았습니다 — 이 세션을 계속할 수 있습니다."
stopped: "⚡ 중지되었습니다. 이 세션을 계속할 수 있습니다."
@@ -1530,6 +1533,8 @@ slash:
description: "공유된 프로필 아카이브를 새 프로필로 가져오기"
stop:
description: "실행 중인 모든 백그라운드 프로세스 종료"
+ discard:
+ description: "Hermes 재시작 중 손실된 턴을 버리고 이 채팅의 대기열을 다시 실행합니다"
pause:
description: "새 작업을 전체 일시 중지 (긴급 정지); '/pause off'로 재개"
deny:
diff --git a/locales/pt.tui.yaml b/locales/pt.tui.yaml
index d8a3a8db081..0646eb6623c 100644
--- a/locales/pt.tui.yaml
+++ b/locales/pt.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "entrada entregue; falha ao limpar o diár
canonical.queue.notSavedDraftKept: "entrada não salva: {0} — rascunho mantido"
canonical.queue.notSavedQueueKept: "entrada não salva: {0} — fila mantida"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[pausado: perdido ao reiniciar · ↑ selecionar, Ctrl+X descartar] {0}"
canonical.queue.statusInputNotSaved: "entrada não salva"
canonical.queue.unconfirmedPrefix: "[não confirmado · Alt+K tenta de novo] "
canonical.queue.unknownExecution: "execução desconhecida — Ctrl+X para descartar antes de tentar de novo"
diff --git a/locales/pt.yaml b/locales/pt.yaml
index 0656f7b0b41..a212aa90b50 100644
--- a/locales/pt.yaml
+++ b/locales/pt.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "Não"
queued: "**Seguimentos em fila:** {count}"
platforms: "**Plataformas ligadas:** {platforms}"
+ discard:
+ nothing: "Nada para descartar: este chat não tem nenhum turno perdido em uma reinicialização."
+ done: "🗑️ {count} turno(s) perdido(s) descartado(s); não foram executados novamente. Suas mensagens salvas serão respondidas agora."
stop:
stopped_pending: "⚡ Parado. O agente ainda não tinha começado — podes continuar esta sessão."
stopped: "⚡ Parado. Podes continuar esta sessão."
@@ -1530,6 +1533,8 @@ slash:
description: "Importar um arquivo de perfil compartilhado como novo perfil"
stop:
description: "Encerrar todos os processos em segundo plano em execução"
+ discard:
+ description: "Descarta um turno perdido quando o Hermes reiniciou para que a fila deste chat continue"
pause:
description: "Pausar todo trabalho novo globalmente (parada de emergência); '/pause off' retoma"
deny:
diff --git a/locales/ru.tui.yaml b/locales/ru.tui.yaml
index dcd667d101c..23395845e54 100644
--- a/locales/ru.tui.yaml
+++ b/locales/ru.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "ввод доставлен; не уда
canonical.queue.notSavedDraftKept: "ввод не сохранён: {0} — черновик сохранён"
canonical.queue.notSavedQueueKept: "ввод не сохранён: {0} — очередь сохранена"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[пауза: потерян при перезапуске · ↑ выбрать, Ctrl+X отбросить] {0}"
canonical.queue.statusInputNotSaved: "ввод не сохранён"
canonical.queue.unconfirmedPrefix: "[не подтверждено · Alt+K — повтор] "
canonical.queue.unknownExecution: "неизвестное выполнение — Ctrl+X, чтобы сбросить перед повтором"
diff --git a/locales/ru.yaml b/locales/ru.yaml
index 8002a2140f5..25de05b911d 100644
--- a/locales/ru.yaml
+++ b/locales/ru.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "Нет"
queued: "**Очередь продолжений:** {count}"
platforms: "**Подключённые платформы:** {platforms}"
+ discard:
+ nothing: "Нечего отбрасывать: в этом чате нет хода, потерянного при перезапуске."
+ done: "🗑️ Отброшено потерянных ходов: {count}; они не выполнялись повторно. Сейчас будут даны ответы на сохранённые сообщения."
stop:
stopped_pending: "⚡ Остановлено. Агент ещё не начинал — вы можете продолжить этот сеанс."
stopped: "⚡ Остановлено. Вы можете продолжить этот сеанс."
@@ -1530,6 +1533,8 @@ slash:
description: "Импортировать общий архив профиля как новый профиль"
stop:
description: "Завершить все запущенные фоновые процессы"
+ discard:
+ description: "Отбросить ход, потерянный при перезапуске Hermes, чтобы очередь этого чата продолжилась"
pause:
description: "Приостановить всю новую работу (аварийная остановка); '/pause off' возобновляет"
deny:
diff --git a/locales/tr.tui.yaml b/locales/tr.tui.yaml
index 9532ac61915..973e2aa4be2 100644
--- a/locales/tr.tui.yaml
+++ b/locales/tr.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "girdi teslim edildi; günlük temizliği
canonical.queue.notSavedDraftKept: "girdi kaydedilmedi: {0} — taslak korundu"
canonical.queue.notSavedQueueKept: "girdi kaydedilmedi: {0} — sıra korundu"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[duraklatıldı: yeniden başlatmada kayboldu · ↑ seç, Ctrl+X at] {0}"
canonical.queue.statusInputNotSaved: "girdi kaydedilmedi"
canonical.queue.unconfirmedPrefix: "[doğrulanmadı · Alt+K yeniden dene] "
canonical.queue.unknownExecution: "bilinmeyen yürütme — yeniden denemeden önce atmak için Ctrl+X"
diff --git a/locales/tr.yaml b/locales/tr.yaml
index 6a6473c7429..e6db1b005ed 100644
--- a/locales/tr.yaml
+++ b/locales/tr.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "Hayır"
queued: "**Sıradaki devam:** {count}"
platforms: "**Bağlı platformlar:** {platforms}"
+ discard:
+ nothing: "Atılacak bir şey yok: bu sohbette yeniden başlatmada kaybolan bir tur yok."
+ done: "🗑️ Kaybolan {count} tur atıldı; yeniden çalıştırılmadı. Kaydedilen mesajların şimdi yanıtlanacak."
stop:
stopped_pending: "⚡ Durduruldu. Ajan henüz başlamamıştı — bu oturuma devam edebilirsin."
stopped: "⚡ Durduruldu. Bu oturuma devam edebilirsin."
@@ -1530,6 +1533,8 @@ slash:
description: "Paylaşılan bir profil arşivini yeni profil olarak içe aktar"
stop:
description: "Çalışan tüm arka plan süreçlerini sonlandır"
+ discard:
+ description: "Hermes yeniden başlarken kaybolan bir turu at, böylece bu sohbetin kuyruğu yeniden çalışsın"
pause:
description: "Yeni işleri genel olarak duraklat (acil durdurma); '/pause off' devam ettirir"
deny:
diff --git a/locales/uk.tui.yaml b/locales/uk.tui.yaml
index eea0250fe4e..d91788fdffc 100644
--- a/locales/uk.tui.yaml
+++ b/locales/uk.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "ввід доставлено; не вд
canonical.queue.notSavedDraftKept: "ввід не збережено: {0} — чернетку залишено"
canonical.queue.notSavedQueueKept: "ввід не збережено: {0} — чергу залишено"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[пауза: втрачено під час перезапуску · ↑ вибрати, Ctrl+X відкинути] {0}"
canonical.queue.statusInputNotSaved: "ввід не збережено"
canonical.queue.unconfirmedPrefix: "[не підтверджено · Alt+K повторити] "
canonical.queue.unknownExecution: "невідомий стан виконання — Ctrl+X, щоб відкинути перед повтором"
diff --git a/locales/uk.yaml b/locales/uk.yaml
index da3207f340b..9499f92dec9 100644
--- a/locales/uk.yaml
+++ b/locales/uk.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "Ні"
queued: "**Черга продовжень:** {count}"
platforms: "**Підключені платформи:** {platforms}"
+ discard:
+ nothing: "Нічого відкидати: у цьому чаті немає ходу, втраченого під час перезапуску."
+ done: "🗑️ Відкинуто втрачених ходів: {count}; їх не виконано повторно. Зараз буде відповідь на збережені повідомлення."
stop:
stopped_pending: "⚡ Зупинено. Агент ще не починав — можна продовжити цей сеанс."
stopped: "⚡ Зупинено. Можна продовжити цей сеанс."
@@ -1530,6 +1533,8 @@ slash:
description: "Імпортувати спільний архів профілю як новий профіль"
stop:
description: "Зупинити всі фонові процеси, що виконуються"
+ discard:
+ description: "Відкинути хід, втрачений під час перезапуску Hermes, щоб черга цього чату продовжилася"
pause:
description: "Призупинити нову роботу глобально (аварійна зупинка); '/pause off' відновлює"
deny:
diff --git a/locales/zh-hant.tui.yaml b/locales/zh-hant.tui.yaml
index 363d2a06cb2..a268be7e3c3 100644
--- a/locales/zh-hant.tui.yaml
+++ b/locales/zh-hant.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "輸入已送達;日誌清理失敗:{0
canonical.queue.notSavedDraftKept: "輸入未儲存:{0} — 已保留草稿"
canonical.queue.notSavedQueueKept: "輸入未儲存:{0} — 已保留佇列"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[已暫停:重新啟動時遺失 · ↑ 選取,Ctrl+X 捨棄] {0}"
canonical.queue.statusInputNotSaved: "輸入未儲存"
canonical.queue.unconfirmedPrefix: "[未確認 · Alt+K 重試] "
canonical.queue.unknownExecution: "執行狀態未知 — 重試前按 Ctrl+X 捨棄"
diff --git a/locales/zh-hant.yaml b/locales/zh-hant.yaml
index d2409716139..b61dc017227 100644
--- a/locales/zh-hant.yaml
+++ b/locales/zh-hant.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "否"
queued: "**排隊中的後續:** {count}"
platforms: "**已連線平台:** {platforms}"
+ discard:
+ nothing: "沒有可捨棄的內容:此聊天沒有在重新啟動時遺失的回合。"
+ done: "🗑️ 已捨棄 {count} 個遺失的回合;未重新執行。現在會回覆你已儲存的訊息。"
stop:
stopped_pending: "⚡ 已停止。代理尚未啟動 — 你可以繼續此工作階段。"
stopped: "⚡ 已停止。你可以繼續此工作階段。"
@@ -1530,6 +1533,8 @@ slash:
description: "將分享的設定檔封存檔匯入為新設定檔"
stop:
description: "終止所有執行中的背景程序"
+ discard:
+ description: "捨棄 Hermes 重新啟動時遺失的回合,讓此聊天的佇列繼續執行"
pause:
description: "全域暫停新工作(緊急停止);'/pause off' 恢復"
deny:
diff --git a/locales/zh.tui.yaml b/locales/zh.tui.yaml
index 917f6e61347..6a54e195ebd 100644
--- a/locales/zh.tui.yaml
+++ b/locales/zh.tui.yaml
@@ -112,6 +112,7 @@ canonical.queue.journalCleanupFailed: "输入已送达;日志清理失败:{0
canonical.queue.notSavedDraftKept: "输入未保存:{0} — 已保留草稿"
canonical.queue.notSavedQueueKept: "输入未保存:{0} — 已保留队列"
canonical.queue.serverRow: "[{0}] {1}"
+canonical.queue.lostRow: "[已暂停:重启时丢失 · ↑ 选择,Ctrl+X 丢弃] {0}"
canonical.queue.statusInputNotSaved: "输入未保存"
canonical.queue.unconfirmedPrefix: "[未确认 · Alt+K 重试] "
canonical.queue.unknownExecution: "执行状态未知 — 重试前按 Ctrl+X 丢弃"
diff --git a/locales/zh.yaml b/locales/zh.yaml
index ecb2348e2cf..8447f74c927 100644
--- a/locales/zh.yaml
+++ b/locales/zh.yaml
@@ -445,6 +445,9 @@ gateway:
state_no: "否"
queued: "**排队的后续:** {count}"
platforms: "**已连接平台:** {platforms}"
+ discard:
+ nothing: "没有可丢弃的内容:此聊天没有在重启时丢失的回合。"
+ done: "🗑️ 已丢弃 {count} 个丢失的回合;未重新执行。现在会回复你已保存的消息。"
stop:
stopped_pending: "⚡ 已停止。代理尚未启动 — 你可以继续此会话。"
stopped: "⚡ 已停止。你可以继续此会话。"
@@ -1530,6 +1533,8 @@ slash:
description: "将分享的配置档归档导入为新配置档"
stop:
description: "终止所有正在运行的后台进程"
+ discard:
+ description: "丢弃 Hermes 重启时丢失的回合,让此聊天的队列继续运行"
pause:
description: "全局暂停新工作(紧急停止);'/pause off' 恢复"
deny:
diff --git a/tests/gateway/test_unknown_automation_settles.py b/tests/gateway/test_unknown_automation_settles.py
index bec6e12d6bd..7fa90607d7f 100644
--- a/tests/gateway/test_unknown_automation_settles.py
+++ b/tests/gateway/test_unknown_automation_settles.py
@@ -158,3 +158,25 @@ async def test_automation_fenced_unknown_in_this_owner_settles_on_the_drain(tmp_
assert statuses[follower.admission_id] == ('terminal', 'completed')
finally:
store.close_all_db_handles()
+
+
+async def test_messaging_pause_notice_names_discard_and_discard_resumes_the_fifo(tmp_path, monkeypatch):
+ """Messaging: the paused notice says why and offers `/discard` in the chat; `/discard` there
+ resolves the person's lost turn through the same ``resolve_unknown`` and the follower runs."""
+ from gateway.session_ingress import pause_notice
+ from gateway.slash_commands_session import discard_lost_turns
+ executed = []
+ store, authority, head_id, _follower_id = await _lost_head_then_restart(tmp_path, monkeypatch, executed, _person_head)
+ try:
+ notice = pause_notice(authority, SessionRef('p', 's'), 'unknown_execution')
+ assert '/discard' in notice and 'restarted' in notice, notice
+ reply = await discard_lost_turns(authority, 's')
+ assert '1' in reply and 'discard' in reply.lower(), reply
+ live = authority.sessions['s']
+ await async_wait_until(lambda: live.task is not None and live.task.done(), what='drain finished')
+ assert executed == ['FOLLOWER']
+ assert _statuses(authority.db)[head_id] == ('terminal', 'interrupted')
+ assert 'nothing' in (await discard_lost_turns(authority, 's')).lower()
+ finally:
+ store.close_all_db_handles()
diff --git a/ui-tui/src/__tests__/busyQueueAdmission.test.tsx b/ui-tui/src/__tests__/busyQueueAdmission.test.tsx
index a8aa6a28e5e..b52b14bd905 100644
--- a/ui-tui/src/__tests__/busyQueueAdmission.test.tsx
+++ b/ui-tui/src/__tests__/busyQueueAdmission.test.tsx
@@ -175,12 +175,12 @@ it('discards unknown execution with its generation, retaining the row on refusal
try {
h.request.mockImplementation(async (method, params) => { h.calls.push({method, params}); throw new Error('stale_generation') })
h.fanout([{ ...row('unknown-admission', 'unknown-input', 'interrupted input', 'unknown'), execution_generation: 7 }])
- await expect.poll(() => h.queue.queuedDisplay).toEqual(['[unknown] interrupted input'])
+ await expect.poll(() => h.queue.queuedDisplay).toEqual(['[paused: lost in restart · ↑ select, Ctrl+X discard] interrupted input'])
h.queue.removeQ(0)
await expect.poll(() => h.calls.length).toBe(1)
expect(h.calls[0]).toEqual({ method: 'prompt.resolve_unknown', params: { session_id: 'owner', admission_id: 'unknown-admission', execution_generation: 7 } })
await expect.poll(() => $uiState.get().status).toContain('stale_generation')
- expect(h.queue.queuedDisplay).toEqual(['[unknown] interrupted input'])
+ expect(h.queue.queuedDisplay).toEqual(['[paused: lost in restart · ↑ select, Ctrl+X discard] interrupted input'])
} finally { h.cleanup() }
})
diff --git a/ui-tui/src/hooks/useQueue.ts b/ui-tui/src/hooks/useQueue.ts
index 9f83b51ff1b..7568aa1785b 100644
--- a/ui-tui/src/hooks/useQueue.ts
+++ b/ui-tui/src/hooks/useQueue.ts
@@ -205,7 +205,11 @@ export function useQueue(gw?: { request: (method: string, params: Record<string,
...queueRef.current.map(item => `${item.failed ? t('canonical.queue.unconfirmedPrefix') : ''}${item.display}`),
// A queued row reads as main's plain queue line; only an unknown execution keeps its status tag.
...serverRows.map(row =>
- row.status === 'queued' ? String(row.user) : t('canonical.queue.serverRow', String(row.status), String(row.user))
+ row.status === 'queued'
+ ? String(row.user)
+ : row.status === 'unknown'
+ ? t('canonical.queue.lostRow', String(row.user))
+ : t('canonical.queue.serverRow', String(row.status), String(row.user))
)
]
diff --git a/ui-tui/src/i18n/en/canonical.ts b/ui-tui/src/i18n/en/canonical.ts
index 6858eff07fc..3a7cc891045 100644
--- a/ui-tui/src/i18n/en/canonical.ts
+++ b/ui-tui/src/i18n/en/canonical.ts
@@ -41,6 +41,9 @@ export const canonicalEn = {
unconfirmedPrefix: '[unconfirmed · Alt+K retry] ',
// {0}=admission status identifier (unknown; queued rows render plain), {1}=input text
serverRow: (status: string, text: string) => `[${status}] ${text}`,
+ // {0}=input text of a turn lost when the gateway restarted (status unknown): it pauses the queue
+ // until the person drops it (select it with ↑, then Ctrl+X → prompt.resolve_unknown).
+ lostRow: (text: string) => `[paused: lost in restart · ↑ select, Ctrl+X discard] ${text}`,
discardFailed: (message: string) => `discard failed: ${message}`,
journalCleanupFailed: (message: string) => `input delivered; journal cleanup failed: ${message}`,
notSavedQueueKept: (message: string) => `input not saved: ${message} — queue kept`,
diff --git a/website/docs/developer-guide/gateway-command-parity.md b/website/docs/developer-guide/gateway-command-parity.md
index 59891960ca2..e4a1fe14008 100644
--- a/website/docs/developer-guide/gateway-command-parity.md
+++ b/website/docs/developer-guide/gateway-command-parity.md
@@ -26,7 +26,7 @@ narrower routes (`hermes_cli/gateway_chat_commands.py`).
setting to this local session (its next turn and `config.get`), saving config.yaml only where the
handler does; `client-local (cli_only)` commands are terminal/UI features of a client.
-103 registry commands: 29 control, 18 read, 56 refused.
+104 registry commands: 29 control, 18 read, 57 refused.
| Command | Gateway (`slash.exec`) | Classic CLI | Ink | Desktop | ACP | Notes |
|---|---|---|---|---|---|---|
@@ -54,6 +54,7 @@ handler does; `client-local (cli_only)` commands are terminal/UI features of a c
| `/debug` | control | HermesCLI._handle_debug_command | slash.exec | slash.exec | slash.exec | uploads logs to a public paste |
| `/deny` | control | messaging-only: unknown command | slash.exec | slash.exec | slash.exec | messaging-only |
| `/diff` | read | HermesCLI._handle_diff_command | slash.exec | slash.exec | slash.exec | |
+| `/discard` | refused | messaging-only: unknown command | slash.exec: refused | slash.exec: refused | prompt.resolve_unknown | messaging-only |
| `/egress` | control | HermesCLI._cmd_egress | slash.exec | slash.exec | slash.exec | |
| `/export` | refused | HermesCLI._handle_export_command | slash.exec: refused | slash.exec: refused | slash.exec: refused | client-local (cli_only) |
| `/fast` | control | HermesCLI._handle_fast_command | config.get, config.set | unavailable: advanced | slash.exec | per-session setting (gateway handler) |