From 5d67e484d724cefd3a362949523f1adf97a91198 Mon Sep 17 00:00:00 2001 From: Siew's Capital Jarvis Date: Fri, 20 Mar 2026 07:16:51 +0800 Subject: [PATCH] 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 --- docs/cli/tool-permissions.mdx | 2 +- docs/cli/tui-mode.mdx | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/cli/tool-permissions.mdx b/docs/cli/tool-permissions.mdx index 5273a116d..321755c72 100644 --- a/docs/cli/tool-permissions.mdx +++ b/docs/cli/tool-permissions.mdx @@ -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 diff --git a/docs/cli/tui-mode.mdx b/docs/cli/tui-mode.mdx index 44999ed60..d4c585991 100644 --- a/docs/cli/tui-mode.mdx +++ b/docs/cli/tui-mode.mdx @@ -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 ↑/↓ to highlight an option +- Press Enter to submit the highlighted option +- Start typing to send a custom answer (even when options are shown) +- If a default answer is provided, pressing Enter 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.