Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f43ef80
feat(core): support QWEN_CONFIG_DIR env var to customize config direc…
tanzhenxin Apr 7, 2026
bd4c51e
fix(core): use path.resolve/join in QWEN_CONFIG_DIR tests for Windows…
tanzhenxin Apr 7, 2026
6685301
test(cli): remove flaky 'should keep restart prompt when switching sc…
tanzhenxin Apr 7, 2026
930d55a
feat(core): route remaining hardcoded ~/.qwen/ paths through Storage.…
tanzhenxin Apr 7, 2026
f330894
fix(tests): mock os.homedir before makeFakeConfig for Storage.getGlob…
tanzhenxin Apr 8, 2026
c74d847
fix(core): respect QWEN_CONFIG_DIR for .env discovery and install source
tanzhenxin Apr 8, 2026
702a396
refactor(core): rename QWEN_CONFIG_DIR to QWEN_HOME and fix runtime p…
tanzhenxin Apr 8, 2026
54add11
fix(core): address critical review issues for QWEN_HOME support
tanzhenxin Apr 9, 2026
5ccd9aa
fix(sandbox): whitelist QWEN_RUNTIME_DIR in macOS Seatbelt profiles
tanzhenxin Apr 9, 2026
690316b
fix(core): add tilde expansion to QWEN_HOME and align satellite path …
tanzhenxin Apr 9, 2026
4103ba1
fix(core): add tilde expansion to scripts and fix extension cache QWE…
tanzhenxin Apr 9, 2026
78d807a
merge: resolve conflict in settings.md env vars table
tanzhenxin Apr 9, 2026
4eada2a
test: remove flaky InputPrompt tab-suggestion test on Windows
tanzhenxin Apr 10, 2026
b10373b
Merge origin/main into feat/qwen-config-dir
tanzhenxin Apr 10, 2026
bab8848
Merge remote-tracking branch 'origin/main' into feat/qwen-config-dir
tanzhenxin Apr 27, 2026
939b2a1
test: remove flaky tests that fail intermittently on Windows
tanzhenxin Apr 27, 2026
0ed2fc6
revert(core): keep system.md path project-local under .qwen/
tanzhenxin Apr 27, 2026
5da4126
refactor(core): unify QWEN_CONFIG_DIR into the canonical QWEN_DIR
tanzhenxin Apr 27, 2026
d749c98
fix(integration-tests): use 'extensions list' to trigger settings mig…
tanzhenxin Apr 27, 2026
6dbbe0e
fix(memory): route auto-memory base dir through Storage.getGlobalQwen…
tanzhenxin Apr 27, 2026
478eaea
fix(cli): treat custom QWEN_HOME .env as user-level
tanzhenxin Apr 27, 2026
299ea45
fix(cli): drop legacy .qwen substring check from env-file classification
tanzhenxin Apr 28, 2026
a9fd4c0
fix(core): align plain-text hook output with documented exit-code sem…
tanzhenxin Apr 28, 2026
1639026
chore: trigger CI
tanzhenxin Apr 28, 2026
2ed129f
fix(cli): pass QWEN_HOME and QWEN_RUNTIME_DIR into docker/podman sandbox
tanzhenxin Apr 28, 2026
9d7471a
Merge remote-tracking branch 'origin/main' into feat/qwen-config-dir
tanzhenxin Apr 28, 2026
18c68e0
fix(cli): canonicalize sandbox QWEN/RUNTIME paths and pin IDE lock dir
tanzhenxin Apr 29, 2026
8cb1e55
fix(cli): finish QWEN_HOME plumbing across env, memory, rules, sandbox
tanzhenxin Apr 29, 2026
ccd219d
fix(cli): block project .env from redirecting QWEN_HOME and QWEN_RUNT…
tanzhenxin Apr 29, 2026
e786f54
fix(cli): keep workspace .qwen/.env unfiltered and pre-resolve user Q…
tanzhenxin Apr 29, 2026
2333d79
fix(cli): make user-settings paths lazy to pick up bootstrapped QWEN_…
tanzhenxin May 6, 2026
80aa30f
Merge branch 'main' of https://github.com/QwenLM/qwen-code into feat/…
tanzhenxin May 6, 2026
c56e4ed
fix(cli): address qwen home review follow-ups
tanzhenxin May 6, 2026
b711bbe
test(cli): normalize path in QWEN_HOME freshness assertion for Windows
tanzhenxin May 6, 2026
1eac6f8
Merge remote-tracking branch 'origin/main' into feat/qwen-config-dir
tanzhenxin May 7, 2026
6fd9604
fix(cli): close storage-routing leaks via settings.env and project sa…
tanzhenxin May 7, 2026
8c7d200
test: cover QWEN_HOME / QWEN_RUNTIME_DIR in duplicated path helpers
tanzhenxin May 7, 2026
f6323ca
fix: bootstrap QWEN_HOME before yargs handlers and in VS Code companion
tanzhenxin May 7, 2026
df4bdb9
Merge remote-tracking branch 'origin/main' into feat/qwen-config-dir
tanzhenxin May 8, 2026
85641f0
fix(config): preserve credentials in legacy ~/.qwen/.env when QWEN_HO…
tanzhenxin May 8, 2026
ed8eea5
refactor(cli): simplify QWEN_HOME plumbing — dedupe helpers, latch, c…
tanzhenxin May 8, 2026
e54ef42
fix(cli): align QWEN_HOME .env bootstrap across CLI, sandbox, telemetry
tanzhenxin May 9, 2026
02523cf
Merge remote-tracking branch 'origin/main' into feat/qwen-config-dir
tanzhenxin May 9, 2026
5240d37
test(integration-tests): update QWEN_HOME assertions for v4 schema
tanzhenxin May 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/users/configuration/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ For authentication-related variables (like `OPENAI_*`) and the recommended `.qwe

| Variable | Description | Notes |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `QWEN_HOME` | Customizes the global configuration directory (default: `~/.qwen`). Accepts an absolute or relative path (relative paths are resolved from the current working directory). Leading `~` is expanded to the user's home directory. | Stores credentials, settings, memory, skills, and other global state. When set, project-level `.qwen/` directories are unaffected. An empty string is treated as unset. |
| `QWEN_RUNTIME_DIR` | Overrides the runtime output directory (conversations, logs, todos). When unset, defaults to the `QWEN_HOME` directory. | Use this to separate ephemeral runtime data from persistent config. Useful when `QWEN_HOME` is on a shared/slow filesystem. |
| `QWEN_TELEMETRY_ENABLED` | Set to `true` or `1` to enable telemetry. Any other value is treated as disabling it. | Overrides the `telemetry.enabled` setting. |
| `QWEN_TELEMETRY_TARGET` | Sets the telemetry target (`local` or `gcp`). | Overrides the `telemetry.target` setting. |
| `QWEN_TELEMETRY_OTLP_ENDPOINT` | Sets the OTLP endpoint for telemetry. | Overrides the `telemetry.otlpEndpoint` setting. |
Expand All @@ -589,6 +591,10 @@ For authentication-related variables (like `OPENAI_*`) and the recommended `.qwe
| `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` |
| `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` |

When both user-level `.env` files define the same variable, the Qwen-specific
file wins: `<QWEN_HOME>/.env` (or `~/.qwen/.env` when `QWEN_HOME` is unset) is
loaded before `~/.env`, and existing environment values are not overwritten.

## Command-Line Arguments

Arguments passed directly when running the CLI can override other configurations for that specific session.
Expand Down
Loading
Loading