The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(gateway): one-shot stdout is the reply plus the resume block, and exit 3 covers a crash-lost turn
Teknium96ab1749a4e5
diff --git a/website/docs/developer-guide/gateway-classic-cli.md b/website/docs/developer-guide/gateway-classic-cli.mdindex 90ae5262795..448b7e33b2f 100644--- a/website/docs/developer-guide/gateway-classic-cli.md+++ b/website/docs/developer-guide/gateway-classic-cli.md@@ -33,9 +33,13 @@ rest print `/x is not available on the shared gateway yet` with a link to the[command parity table](gateway-command-parity.md), which lists what every localclient does with every command.-One-shot stdout contains only the final reply. Exit status is 0 for a completed+One-shot stdout ends with the final reply. Without `-Q`, a resumed session first+prints its stored history (`user:` / `assistant:` lines), and the reply is followed by+the `Resume this session with:` block (see Launch options); `-Q` prints the reply+alone. Exit status is 0 for a completedadmission, 1 for failed execution/connection, 2 for unsupported frontend options,-3 for a pending control that requires interactive reattachment, and 130 for a+3 for a pending control that requires interactive reattachment or a turn lost in a+gateway crash (clear it with `hermes sessions discard <id> --yes`), and 130 for akeyboard detach. A pending control does not imply cancellation. `-z` no longerimplicitly bypasses approval policy.