mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 07:17:54 +08:00
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:
@@ -278,6 +278,8 @@ Type `/help` in the REPL for the live list. Common ones:
|
||||
|
||||
User messages are saved immediately. On API error or Ctrl+C, partial assistant/tool output is discarded but the user message stays so `/retry` works after resume. Interactive auto-retry waits 5s, 10s, 15s, 20s, then +10s each step (10 attempts); an attempt that gets a full model round back **resets that budget**, so a connection that recovers and drops again starts over from 5s.
|
||||
|
||||
Ctrl+C cancels the in-flight turn, and during the auto-retry countdown it cancels the retry. Model-initiated prompts run off the event loop: a `wait` prompt is cancelled by Ctrl+C (the tool reports `cancelled by user` and the turn continues), while `ask_user_*` and confirm prompts ignore it with a one-line hint — answer them to continue. Ctrl+C never exits the REPL (use Ctrl+D or `/quit`), and MCP servers run in their own process group, so it never kills them either.
|
||||
|
||||
## Workspace model
|
||||
|
||||
- **Workspace** = root for file/process/VCS tools (default cwd).
|
||||
|
||||
Reference in New Issue
Block a user