@qwen-code/qwen-code 0.15.7 → 0.15.8-nightly.20260508.0491252b2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/settings.md +32 -29
- package/cli.js +7530 -7761
- package/package.json +2 -2
|
@@ -469,15 +469,16 @@ Configures connections to one or more Model-Context Protocol (MCP) servers for d
|
|
|
469
469
|
|
|
470
470
|
Configures logging and metrics collection for Qwen Code. For more information, see [telemetry](/developers/development/telemetry).
|
|
471
471
|
|
|
472
|
-
| Setting
|
|
473
|
-
|
|
|
474
|
-
| `telemetry.enabled`
|
|
475
|
-
| `telemetry.target`
|
|
476
|
-
| `telemetry.otlpEndpoint`
|
|
477
|
-
| `telemetry.otlpProtocol`
|
|
478
|
-
| `telemetry.logPrompts`
|
|
479
|
-
| `telemetry.
|
|
480
|
-
| `telemetry.
|
|
472
|
+
| Setting | Type | Description | Default |
|
|
473
|
+
| ------------------------------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
474
|
+
| `telemetry.enabled` | boolean | Whether or not telemetry is enabled. | |
|
|
475
|
+
| `telemetry.target` | string | The destination for collected telemetry. Supported values are `local` and `gcp`. | |
|
|
476
|
+
| `telemetry.otlpEndpoint` | string | The endpoint for the OTLP Exporter. | |
|
|
477
|
+
| `telemetry.otlpProtocol` | string | The protocol for the OTLP Exporter (`grpc` or `http`). | |
|
|
478
|
+
| `telemetry.logPrompts` | boolean | Whether or not to include the content of user prompts in the logs. | |
|
|
479
|
+
| `telemetry.includeSensitiveSpanAttributes` | boolean | Whether to include `prompt`, `function_args`, and `response_text` in spans created by the log-to-span bridge. Only controls bridge spans; OTel logs and other telemetry sinks may still receive `response_text`. | `false` |
|
|
480
|
+
| `telemetry.outfile` | string | The file to write telemetry to when `target` is `local`. | |
|
|
481
|
+
| `telemetry.useCollector` | boolean | Whether to use an external OTLP collector. | |
|
|
481
482
|
|
|
482
483
|
### Example `settings.json`
|
|
483
484
|
|
|
@@ -519,7 +520,8 @@ Here is an example of a `settings.json` file with the nested structure, new as o
|
|
|
519
520
|
"enabled": true,
|
|
520
521
|
"target": "local",
|
|
521
522
|
"otlpEndpoint": "http://localhost:4317",
|
|
522
|
-
"logPrompts": true
|
|
523
|
+
"logPrompts": true,
|
|
524
|
+
"includeSensitiveSpanAttributes": false
|
|
523
525
|
},
|
|
524
526
|
"privacy": {
|
|
525
527
|
"usageStatisticsEnabled": true
|
|
@@ -565,25 +567,26 @@ For authentication-related variables (like `OPENAI_*`) and the recommended `.qwe
|
|
|
565
567
|
|
|
566
568
|
### Environment Variables Table
|
|
567
569
|
|
|
568
|
-
| Variable
|
|
569
|
-
|
|
|
570
|
-
| `QWEN_TELEMETRY_ENABLED`
|
|
571
|
-
| `QWEN_TELEMETRY_TARGET`
|
|
572
|
-
| `QWEN_TELEMETRY_OTLP_ENDPOINT`
|
|
573
|
-
| `QWEN_TELEMETRY_OTLP_PROTOCOL`
|
|
574
|
-
| `QWEN_TELEMETRY_LOG_PROMPTS`
|
|
575
|
-
| `
|
|
576
|
-
| `
|
|
577
|
-
| `
|
|
578
|
-
| `
|
|
579
|
-
| `
|
|
580
|
-
| `
|
|
581
|
-
| `
|
|
582
|
-
| `
|
|
583
|
-
| `
|
|
584
|
-
| `
|
|
585
|
-
| `
|
|
586
|
-
| `
|
|
570
|
+
| Variable | Description | Notes |
|
|
571
|
+
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
572
|
+
| `QWEN_TELEMETRY_ENABLED` | Set to `true` or `1` to enable telemetry. Any other value is treated as disabling it. | Overrides the `telemetry.enabled` setting. |
|
|
573
|
+
| `QWEN_TELEMETRY_TARGET` | Sets the telemetry target (`local` or `gcp`). | Overrides the `telemetry.target` setting. |
|
|
574
|
+
| `QWEN_TELEMETRY_OTLP_ENDPOINT` | Sets the OTLP endpoint for telemetry. | Overrides the `telemetry.otlpEndpoint` setting. |
|
|
575
|
+
| `QWEN_TELEMETRY_OTLP_PROTOCOL` | Sets the OTLP protocol (`grpc` or `http`). | Overrides the `telemetry.otlpProtocol` setting. |
|
|
576
|
+
| `QWEN_TELEMETRY_LOG_PROMPTS` | Set to `true` or `1` to enable or disable logging of user prompts. Any other value is treated as disabling it. | Overrides the `telemetry.logPrompts` setting. |
|
|
577
|
+
| `QWEN_TELEMETRY_INCLUDE_SENSITIVE_SPAN_ATTRIBUTES` | Set to `true` or `1` to include `prompt`, `function_args`, and `response_text` in spans created by the log-to-span bridge. Any other value disables it. | Overrides the `telemetry.includeSensitiveSpanAttributes` setting. Only controls bridge spans; OTel logs and other telemetry sinks may still receive `response_text`. |
|
|
578
|
+
| `QWEN_TELEMETRY_OUTFILE` | Sets the file path to write telemetry to when the target is `local`. | Overrides the `telemetry.outfile` setting. |
|
|
579
|
+
| `QWEN_TELEMETRY_USE_COLLECTOR` | Set to `true` or `1` to enable or disable using an external OTLP collector. Any other value is treated as disabling it. | Overrides the `telemetry.useCollector` setting. |
|
|
580
|
+
| `QWEN_SANDBOX` | Alternative to the `sandbox` setting in `settings.json`. | Accepts `true`, `false`, `docker`, `podman`, or a custom command string. |
|
|
581
|
+
| `QWEN_SANDBOX_IMAGE` | Overrides sandbox image selection for Docker/Podman. | Takes precedence over `tools.sandboxImage`. |
|
|
582
|
+
| `SEATBELT_PROFILE` | (macOS specific) Switches the Seatbelt (`sandbox-exec`) profile on macOS. | `permissive-open`: (Default) Restricts writes to the project folder (and a few other folders, see `packages/cli/src/utils/sandbox-macos-permissive-open.sb`) but allows other operations. `strict`: Uses a strict profile that declines operations by default. `<profile_name>`: Uses a custom profile. To define a custom profile, create a file named `sandbox-macos-<profile_name>.sb` in your project's `.qwen/` directory (e.g., `my-project/.qwen/sandbox-macos-custom.sb`). |
|
|
583
|
+
| `DEBUG` or `DEBUG_MODE` | (often used by underlying libraries or the CLI itself) Set to `true` or `1` to enable verbose debug logging, which can be helpful for troubleshooting. | **Note:** These variables are automatically excluded from project `.env` files by default to prevent interference with the CLI behavior. Use `.qwen/.env` files if you need to set these for Qwen Code specifically. |
|
|
584
|
+
| `NO_COLOR` | Set to any value to disable all color output in the CLI. | |
|
|
585
|
+
| `CLI_TITLE` | Set to a string to customize the title of the CLI. | |
|
|
586
|
+
| `CODE_ASSIST_ENDPOINT` | Specifies the endpoint for the code assist server. | This is useful for development and testing. |
|
|
587
|
+
| `QWEN_CODE_MAX_OUTPUT_TOKENS` | Overrides the default maximum output tokens per response. When not set, Qwen Code uses an adaptive strategy: starts with 8K tokens and automatically retries with 64K if the response is truncated. Set this to a specific value (e.g., `16000`) to use a fixed limit instead. | Takes precedence over the capped default (8K) but is overridden by `samplingParams.max_tokens` in settings. Disables automatic escalation when set. Example: `export QWEN_CODE_MAX_OUTPUT_TOKENS=16000` |
|
|
588
|
+
| `QWEN_CODE_UNATTENDED_RETRY` | Set to `true` or `1` to enable persistent retry mode. When enabled, transient API capacity errors (HTTP 429 Rate Limit and 529 Overloaded) are retried indefinitely with exponential backoff (capped at 5 minutes per retry) and heartbeat keepalives every 30 seconds on stderr. | Designed for CI/CD pipelines and background automation where long-running tasks should survive temporary API outages. Must be set explicitly — `CI=true` alone does **not** activate this mode. See [Headless Mode](../features/headless#persistent-retry-mode) for details. Example: `export QWEN_CODE_UNATTENDED_RETRY=1` |
|
|
589
|
+
| `QWEN_CODE_PROFILE_STARTUP` | Set to `1` to enable startup performance profiling. Writes a JSON timing report to `~/.qwen/startup-perf/` with per-phase durations. | Only active inside the sandbox child process. Zero overhead when not set. Example: `export QWEN_CODE_PROFILE_STARTUP=1` |
|
|
587
590
|
|
|
588
591
|
## Command-Line Arguments
|
|
589
592
|
|