-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(cli): select an output style via general.outputStyle or --output-style #10283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
0b34f32
72689c3
2713c78
31180a0
6e4824e
4ba2441
0e6aa86
2fa3a5b
67edf9e
b6e9068
34d5874
e730ed1
2b84a16
66393b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,7 @@ Settings are organized into categories. Most settings should be placed within th | |
| | Setting | Type | Description | Default | | ||
| | ------------------------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | | ||
| | `general.preferredEditor` | string | The preferred editor to open files in. | `undefined` | | ||
| | `general.outputStyle` | string | Name of the output style that shapes how responses are written: `Concise`, `Proactive`, `Explanatory`, or `Learning` (case-insensitive). Leave unset, or set `default`, for the default style. `--output-style` overrides it for one run. | `undefined` | | ||
| | `general.vimMode` | boolean | Enable Vim keybindings. | `false` | | ||
| | `general.enableAutoUpdate` | boolean | Enable automatic update checks and installations on startup. | `true` | | ||
| | `general.showSessionRecap` | boolean | Auto-show a one-line "where you left off" recap when returning to the terminal after being away. Off by default. Use `/recap` to trigger manually regardless of this setting. | `false` | | ||
|
|
@@ -800,6 +801,7 @@ For sandbox image selection, precedence is: | |
| | `--prompt-interactive` | `-i` | Starts an interactive session with the provided prompt as the initial input. | Your prompt text | The prompt is processed within the interactive session, not before it. Cannot be used when piping input from stdin. Example: `qwen -i "explain this code"` | | ||
| | `--system-prompt` | | Overrides the built-in main session system prompt for this run. | Your prompt text | Loaded context files such as `QWEN.md` are still appended after this override. Can be combined with `--append-system-prompt`. | | ||
| | `--append-system-prompt` | | Appends extra instructions to the main session system prompt for this run. | Your prompt text | Applied after the built-in prompt and loaded context files. Can be combined with `--system-prompt`. See [Headless Mode](../features/headless) for examples. | | ||
| | `--output-style` | | Selects the output style that shapes how responses are written for this run. | Style name | `Concise`, `Proactive`, `Explanatory`, `Learning`, or `default` for no style (case-insensitive). Overrides the `general.outputStyle` setting. An unknown name prints a warning and the session starts with the default style. Has no effect when `--system-prompt` or `QWEN_SYSTEM_MD` replaces the built-in prompt. See [Headless Mode](../features/headless) for examples. | | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Suggestion] R8-1: [probe] The added doc rows omit that The new Witness: Extend both added rows (settings.md:83 and :805, plus the headless.md note) to state that The downgrade itself is intentional — packages/core/src/core/prompts.ts:462 comments 中文说明新增的 证据(在未修改的 PR 上运行探针):headless 运行时 建议:扩展两处新增的行(settings.md:83 与 :805,以及 headless.md 的说明块),写明 降级本身是有意为之——prompts.ts:462 的注释写明 "Learning requires a reply to its handoff, which a headless run cannot receive."——因此修复应当围绕它做说明/警告,而不是移除它。如果在降级处新增警告,请补一个测试:当 — qwen3.8-max via Qwen Code /review (v0.22.3) |
||
| | `--output-format` | `-o` | Specifies the format of the CLI output for non-interactive mode. | `text`, `json`, `stream-json` | `text`: (Default) The standard human-readable output. `json`: A machine-readable JSON output emitted at the end of execution. `stream-json`: Streaming JSON messages emitted as they occur during execution. For structured output and scripting, use the `--output-format json` or `--output-format stream-json` flag. See [Headless Mode](../features/headless) for detailed information. | | ||
| | `--input-format` | | Specifies the format consumed from standard input. | `text`, `stream-json` | `text`: (Default) Standard text input from stdin or command-line arguments. `stream-json`: JSON message protocol via stdin for bidirectional communication. Requirement: `--input-format stream-json` requires `--output-format stream-json` to be set. When using `stream-json`, stdin is reserved for protocol messages. See [Headless Mode](../features/headless) for detailed information. | | ||
| | `--include-partial-messages` | | Include partial assistant messages when using `stream-json` output format. When enabled, emits stream events (message_start, content_block_delta, etc.) as they occur during streaming. | | Default: `false`. Requirement: Requires `--output-format stream-json` to be set. See [Headless Mode](../features/headless) for detailed information about stream events. | | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.