The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(gateway): describe the messaging pause notice and /reset escape
teknium16cdf7815defd
diff --git a/tests/gateway/test_native_pause_notice.py b/tests/gateway/test_native_pause_notice.pyindex 7c1d64857c3..f7a2a36273d 100644--- a/tests/gateway/test_native_pause_notice.py+++ b/tests/gateway/test_native_pause_notice.py@@ -81,7 +81,7 @@ def test_crash_mid_turn_then_platform_message_gets_one_pause_notice_and_reset_un'base_url': f'http://127.0.0.1:{bot.server_port}/bot', 'dm_policy': 'allowlist'}}},'auxiliary': {'title_generation': {'enabled': False}},'platform_toolsets': {'telegram': []}, 'terminal': {'cwd': str(home)}}- (home / 'config.yaml').write_text(json.dumps(cfg))+ (home / 'config.yaml').write_text(json.dumps(cfg), encoding='utf-8')env = child_env()env.update(HOME=str(user), USERPROFILE=str(user), HERMES_HOME=str(home), PYTHONPATH=str(root),OPENAI_API_KEY='loopback-only', OPENAI_BASE_URL=base, PYTHONUNBUFFERED='1',@@ -102,7 +102,7 @@ def test_crash_mid_turn_then_platform_message_gets_one_pause_notice_and_reset_undef diagnostic():return repr(rows()) + '\n' + repr(sent_texts()) + '\n' + '\n'.join(- p.read_text() for p in (home / 'logs').glob('*.log'))+ p.read_text(encoding='utf-8') for p in (home / 'logs').glob('*.log'))update_id = 0diff --git a/website/docs/developer-guide/gateway-internals.md b/website/docs/developer-guide/gateway-internals.mdindex 499f21b5127..254af8b2dd2 100644--- a/website/docs/developer-guide/gateway-internals.md+++ b/website/docs/developer-guide/gateway-internals.md@@ -78,6 +78,13 @@ row is refused with `stale_generation`. Desktop shows such a row in the queue pa"Turn lost during restart" with a **Discard** button; the gateway CLI exposes it as`/discard <admission_id>`. The lost input stays in the transcript for the user to resend.+A messaging user (Telegram, Discord, ...) whose session is paused this way is told once per+pause episode, through the adapter's ordinary reply path, that the conversation is paused and+that `/reset` starts a fresh one; later messages onto the same pause are admitted silently and+stay queued. Their delivery waiters are released with the pause reason instead of parking the+adapter loop. `/reset` rotates the route to a new session (the lost turn and its followers stay+on the old one); the operator can alternatively resolve the unknown row from Desktop or the CLI.+## Shared authority prompt attachments`prompt.submit` accepts an optional `attachments: [{path, mime}]` list beside `text`.