docs: document SIGINT routing and MCP process-group isolation

Ctrl+C now cancels the turn (or the auto-retry countdown), cancels a poll-based
prompt read such as wait's, and is ignored with a hint for off-loop readline
prompts; it never exits the REPL and never reaches MCP servers, which spawn in
their own session. Also drop ask_into_pty's stale "Ctrl+C cancels" claim: that
prompt is readline-based and empty input is its cancel.
This commit is contained in:
2026-09-22 19:44:31 +08:00
parent dfd45a1d57
commit bbed7c87cd
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ async def ask_into_pty(
``message`` is shown to the human (what to enter), not the secret itself.
``secret=true`` uses no-echo input. ``submit=true`` (default) appends a
newline after the answer. Empty input and Ctrl+C cancel without writing.
newline after the answer. Empty input cancels without writing.
"""
label = message.strip() or ("Secret" if secret else "Input")
try: