diff --git a/docs/users/features/commands.md b/docs/users/features/commands.md index 3afa04dd7d84..b3270edf0fd4 100644 --- a/docs/users/features/commands.md +++ b/docs/users/features/commands.md @@ -119,7 +119,7 @@ Commands for managing AI tools and models. | `/permissions` | Manage permission rules | `/permissions` | | `/agents` | Manage subagents | `/agents manage`, `/agents create` | | `/arena` | Manage Arena sessions | `/arena start`, `/arena stop`, `/arena status`, `/arena select` (alias `choose`) | -| `/goal` | Set a goal — keep working until condition met (see [Goals](./goals.md)) | `/goal `, `/goal clear` | +| `/goal` | Set a Goal — keep working until a verifier confirms it (see [Goals](./goals.md)) | `/goal `, `/goal edit `, `/goal pause`, `/goal resume`, `/goal clear` | | `/tasks` | List background tasks | `/tasks` | | `/workflows` | Inspect workflow runs; cooperatively pause/resume a background run | `/workflows`, `/workflows `, `/workflows p ` | | `/lsp` | Show LSP server status | `/lsp` | diff --git a/docs/users/features/goals.md b/docs/users/features/goals.md index 52b829074548..d93fd89bbe10 100644 --- a/docs/users/features/goals.md +++ b/docs/users/features/goals.md @@ -1,6 +1,6 @@ # Goals -A Goal keeps Qwen Code working across turns until a stated condition is met. Set one with `/goal `; after each turn an independent verifier checks the transcript, and the session keeps going until the objective is verified complete, verified blocked, paused, or cleared. +A Goal keeps Qwen Code working across turns until a stated condition is met. Set one with `/goal `, and the session keeps going on its own. Each turn is recorded as evidence; when the model proposes that the objective is complete or blocked, an independent verifier judges that proposal from the evidence alone. The session stops when the verifier accepts, or when the Goal is paused, cleared, or stopped by a limit. ## Commands @@ -40,7 +40,7 @@ Put these into the objective, in this order: | `On block:` | What to report when stuck, and which decision a human must make. | | `Context:` | Only facts the agent cannot find in the workspace: branch, environment, earlier decisions. | -Keep it to one objective and roughly under 1,200 characters. `/goal set` and `/goal edit` collapse newlines to spaces, so number the items rather than relying on line breaks. +Keep it to one objective. `/goal set` and `/goal edit` accept any length, but stay roughly under 1,200 characters: the objective is re-sent on every Goal turn. An objective the model proposes through `propose_goal` is capped at 1,500 characters. Both commands collapse newlines to spaces, so number the items rather than relying on line breaks. | Weak | Why it fails | Stronger | | -------------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -57,7 +57,7 @@ Pass an existing objective to tighten it: `/goal-draft all tests pass and the li ### Approve a Goal the model proposes -In an interactive terminal session the model has a `propose_goal` tool. When `/goal-draft` finishes, or when you ask for an outcome that spans several turns, it can propose the objective instead of printing a `/goal set …` line for you to copy. The proposal appears as an approval dialog showing the full objective. Approving it sets the Goal exactly as `/goal set` would, the moment the current turn ends (the model acknowledges and stops; the first Goal turn then starts on its own), and declining sets nothing — the model is told only that the Goal was not set, and must not propose it again. The approval is bound to the turn that asked for it: if that turn is cancelled or otherwise never reaches its end, the approval is dropped rather than applied under a later message or an automated turn. No permission rule or approval mode (including YOLO) skips this dialog, and the tool refuses while another Goal is active, in plan mode, in subagents, and in untrusted folders. It is not available in headless runs, nor yet in Web Shell or other ACP-driven sessions (they do not pass through the turn boundary that applies the approval); there the printed `/goal set` line remains the hand-off. +In an interactive terminal session the model has a `propose_goal` tool. When `/goal-draft` finishes, or when you ask for an outcome that spans several turns, it can propose the objective instead of printing a `/goal set …` line for you to copy. The proposal appears as an approval dialog showing the full objective. Approving it sets the Goal exactly as `/goal set` would, the moment the current turn ends (the model acknowledges and stops; the first Goal turn then starts on its own), and declining sets nothing — the model sees only that the tool call was not allowed, and its instructions tell it not to ask why and not to propose the same objective again. The approval is bound to the turn that asked for it: if that turn is cancelled or otherwise never reaches its end, the approval is dropped rather than applied under a later message or an automated turn. No permission rule or approval mode (including YOLO) skips this dialog, and the tool refuses while another Goal is active, in plan mode, and in untrusted folders; subagents are never offered it. It is not available in headless runs, nor yet in Web Shell or other ACP-driven sessions (they do not pass through the turn boundary that applies the approval); there the printed `/goal set` line remains the hand-off. Turn it off with `goals.modelProposed: "disabled"` in your user settings. Because the setting decides whether the model may ask you to start an autonomous loop, it is honored only from user and system scope; a workspace `.qwen/settings.json` value is ignored with a warning. diff --git a/docs/users/features/headless.md b/docs/users/features/headless.md index 694d44ca17bb..2750ed8d22c0 100644 --- a/docs/users/features/headless.md +++ b/docs/users/features/headless.md @@ -89,7 +89,7 @@ With `--output-format stream-json`, each Goal status change emits a `stream_even > [!note] > -> This behavior applies to standard headless CLI runs. ACP still uses the legacy Goal command path. +> This behavior applies to standard headless CLI runs. ACP-driven sessions (IDE integrations, Web Shell) drive the same Goal runtime through the `sessionGoalControl` extension method, and receive each status change as a `session/update` notification carrying `_meta.goalState` instead of a `goal_state` stream event. ## Customize the Main Session Prompt