docs(cli): cover AskQuestion tool behavior and TUI interaction (#11162)

* docs(cli): document AskQuestion tool behavior in TUI and permissions

* docs: brief AskQuestion section per review
This commit is contained in:
Siew's Capital Jarvis 2026-03-20 07:16:51 +08:00 • committed by GitHub
parent ccc504723d
commit 5d67e484d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View file

@ -12,7 +12,7 @@ Every tool has one of three permission levels:
## Defaults
Read-only tools (`Read`, `List`, `Search`, `Fetch`, `Diff`) default to `allow`. Write tools (`Edit`, `MultiEdit`, `Write`) and `Bash` default to `ask`. In [headless mode](/cli/headless-mode), `ask` tools are excluded since there's no one to approve them.
Read-only tools (`Read`, `List`, `Search`, `Fetch`, `Diff`, `AskQuestion`, `Checklist`, `Status`, `CheckBackgroundJob`, `ReportFailure`, `UploadArtifact`) default to `allow`. `AskQuestion` is a built-in read-only tool that lets the agent pause and ask for clarification before continuing. Write tools (`Edit`, `MultiEdit`, `Write`) and `Bash` default to `ask`. In [headless mode](/cli/headless-mode), `ask` tools are excluded since there's no one to approve them.
## Overriding with flags

View file

@ -49,6 +49,17 @@ cn --resume
This restores the full conversation history, so the agent remembers prior context.
## Interactive questions in TUI mode
The agent can use the `AskQuestion` tool to gather clarifications before it continues. You will see a quiz-style prompt directly in the terminal.
- Use <kbd>↑</kbd>/<kbd>↓</kbd> to highlight an option
- Press <kbd>Enter</kbd> to submit the highlighted option
- Start typing to send a custom answer (even when options are shown)
- If a default answer is provided, pressing <kbd>Enter</kbd> on an empty input submits that default
This is useful when the agent needs decisions like scope, preferences, or environment details before making edits.
## Tool Permissions
Tools that can modify your system (file writes, terminal commands) prompt for approval before executing. You get three options:
@ -57,4 +68,4 @@ Tools that can modify your system (file writes, terminal commands) prompt for ap
- **Continue + don't ask again** — approve and save a policy rule to `~/.continue/permissions.yaml`
- **No** — reject the call and give the agent new instructions
Read-only tools (`Read`, `List`, `Search`, `Fetch`) run automatically. See [tool permissions](/cli/tool-permissions) for the full policy system.
Read-only tools (`Read`, `List`, `Search`, `Fetch`, `Diff`, `AskQuestion`) run automatically. See [tool permissions](/cli/tool-permissions) for the full policy system.