Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6f2f9d0
feat(web-shell): adopt canonical Goal v3 controls
qqqys Aug 18, 2026
0434f9a
test(serve): count the two Goal routes in the telemetry guards
qqqys Aug 18, 2026
7e234d8
Merge upstream/main into feat/goal-v3-web-shell
qqqys Aug 19, 2026
42926fb
fix(webui): keep the Goal snapshot authoritative across replace, stal…
qqqys Aug 19, 2026
55ead3f
test(webui): pin the known-Goal-state branch of a failed session-load…
qqqys Aug 19, 2026
c58cd62
fix(web-shell): keep Goal controls and drafts owned by the surface th…
qqqys Aug 19, 2026
36c4a14
fix(web-shell): fail Goal gates closed while hydrating, and stop losi…
qqqys Aug 19, 2026
ea98b0b
Merge upstream/main into feat/goal-v3-web-shell
qqqys Aug 19, 2026
5657cbd
fix(acp): publish turn_complete when a Goal turn ends
qqqys Aug 19, 2026
4363bab
fix(web-shell): serialize held-prompt release, drop the dead insert a…
qqqys Aug 19, 2026
b89174e
fix(web-shell): localize Goal command errors and stop Goal surfaces s…
qqqys Aug 19, 2026
ed422f9
refactor(web-shell): retire the dead Goal footer paths and restore th…
qqqys Aug 19, 2026
011d65e
fix(sdk): expose limitKind, drop the unused expected-version type, co…
qqqys Aug 19, 2026
78758d9
test(web-shell): close the Goal coverage gaps the review probes found
qqqys Aug 19, 2026
c75a0ce
fix(web-shell): drop the imports the retired Goal paths stranded
qqqys Aug 19, 2026
c9597f6
fix(acp): surface Goal-turn activity in hasActivePrompt summaries
qqqys Aug 19, 2026
c3b81a6
fix(acp): let a mid-turn insert reach a running Goal turn
qqqys Aug 19, 2026
94ab2ca
fix(webui): stamp the session-load Goal read the way `getGoal` does
qqqys Aug 19, 2026
902504d
fix(web-shell): close two Goal-queue leaks in the composer and queue
qqqys Aug 19, 2026
2f124a4
fix(web-shell): re-check the Goal hold on every release-chain link
qqqys Aug 19, 2026
af13a6b
refactor(web-shell): stamp GoalsDialog's CAS fields through the share…
qqqys Aug 19, 2026
1d2cabe
merge: bring upstream/main into feat/goal-v3-web-shell
qqqys Aug 19, 2026
aa1d913
fix(web-shell): stop offering Goal controls the reducer will reject
qqqys Aug 19, 2026
3d885b1
fix(web-shell): stop Goal controls and the release chain racing each …
qqqys Aug 20, 2026
b74bab2
Merge remote-tracking branch 'upstream/main' into work/9393
qqqys Aug 20, 2026
a6e5ffd
merge(main): resolve conflicts and preserve goal replay
qqqys Aug 20, 2026
c52a223
test(cli): align merged replay expectations
qqqys Aug 20, 2026
03a3f49
Merge upstream/main into feat/goal-v3-web-shell
qqqys Aug 20, 2026
bf66d84
fix(web-shell): keep a prompt typed mid-drain behind the release chain
qqqys Aug 20, 2026
a39b824
Merge branch 'main' into feat/goal-v3-web-shell
qqqys Aug 20, 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
28 changes: 14 additions & 14 deletions docs/developers/daemon/17-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ This page collects every setting that affects the `qwen serve` daemon and its ad

### Read by `runQwenServe` / Express middleware

| Env | Effect |
| ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `QWEN_SERVER_TOKEN` | Bearer token; trimmed at boot. |
| `QWEN_SERVE_DEBUG` | `1` / `true` / `on` / `yes` (case-insensitive) enables verbose stderr logs. See [`19-observability.md`](./19-observability.md). |
| `QWEN_SERVE_NO_MCP_POOL` | `1` disables the workspace MCP transport pool and falls back to per-session `McpClientManager`; capabilities stop advertising `mcp_workspace_pool` / `mcp_pool_restart`. |
| `QWEN_SERVE_PROMPT_DEADLINE_MS` | Env fallback for `--prompt-deadline-ms`. |
| `QWEN_SERVE_WRITER_IDLE_TIMEOUT_MS` | Env fallback for `--writer-idle-timeout-ms`. |
| `QWEN_SERVE_RATE_LIMIT` | `1` / `true` enables per-tier HTTP rate limiting; CLI `--rate-limit` / `--no-rate-limit` wins. |
| `QWEN_SERVE_RATE_LIMIT_PROMPT` | Env fallback for `--rate-limit-prompt`. |
| `QWEN_SERVE_RATE_LIMIT_MUTATION` | Env fallback for `--rate-limit-mutation`. |
| `QWEN_SERVE_RATE_LIMIT_READ` | Env fallback for `--rate-limit-read`. |
| `QWEN_SERVE_RATE_LIMIT_WINDOW_MS` | Env fallback for `--rate-limit-window-ms`. |
| `QWEN_SERVE_NEW_FILE_MODE` | New-file mode policy for daemon text writes: `owner` (default — NEW files are created `0600`, umask-independent) or `system` (NEW files follow `0o666 & ~umask`). Case-insensitive; the literal `0600` is accepted as an alias for `owner` (no other octal modes are supported), and unrecognized values warn on stderr and keep the `0600` default. Existing files always preserve their mode. See [`qwen-serve.md` — New-file mode for agent text writes](../../users/qwen-serve.md#new-file-mode-for-agent-text-writes). |
| `QWEN_CODE_MEMORY_PROJECT_SCOPE` | `workspace` keys project memory by the exact workspace dir; `git-root` selects the legacy shared scope. When unset, the daemon injects `workspace`; unrecognized values warn once and retain the legacy `git-root` behavior. Propagates via the runtime base env, not `childEnvOverrides`; `--memory-project-scope` wins. Each workspace remember/forget/dream lane caps pending tasks at `MAX_PENDING = 16`; N workspaces allow up to 16·N queued tasks with no daemon-wide cap. |
| Env | Effect |
| ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `QWEN_SERVER_TOKEN` | Bearer token; trimmed at boot. |
| `QWEN_SERVE_DEBUG` | `1` / `true` / `on` / `yes` (case-insensitive) enables verbose stderr logs. See [`19-observability.md`](./19-observability.md). |
| `QWEN_SERVE_NO_MCP_POOL` | `1` disables the workspace MCP transport pool and falls back to per-session `McpClientManager`; capabilities stop advertising `mcp_workspace_pool` / `mcp_pool_restart`. |
| `QWEN_SERVE_PROMPT_DEADLINE_MS` | Env fallback for `--prompt-deadline-ms`. |
| `QWEN_SERVE_WRITER_IDLE_TIMEOUT_MS` | Env fallback for `--writer-idle-timeout-ms`. |
| `QWEN_SERVE_RATE_LIMIT` | `1` / `true` enables per-tier HTTP rate limiting; CLI `--rate-limit` / `--no-rate-limit` wins. |
| `QWEN_SERVE_RATE_LIMIT_PROMPT` | Env fallback for `--rate-limit-prompt`. |
| `QWEN_SERVE_RATE_LIMIT_MUTATION` | Env fallback for `--rate-limit-mutation`. |
| `QWEN_SERVE_RATE_LIMIT_READ` | Env fallback for `--rate-limit-read`. |
| `QWEN_SERVE_RATE_LIMIT_WINDOW_MS` | Env fallback for `--rate-limit-window-ms`. |
| `QWEN_SERVE_NEW_FILE_MODE` | New-file mode policy for daemon text writes: `owner` (default — NEW files are created `0600`, umask-independent) or `system` (NEW files follow `0o666 & ~umask`). Case-insensitive; the literal `0600` is accepted as an alias for `owner` (no other octal modes are supported), and unrecognized values warn on stderr and keep the `0600` default. Existing files always preserve their mode. See [`qwen-serve.md` — New-file mode for agent text writes](../../users/qwen-serve.md#new-file-mode-for-agent-text-writes). |
| `QWEN_CODE_MEMORY_PROJECT_SCOPE` | `workspace` keys project memory by the exact workspace dir; `git-root` selects the legacy shared scope. When unset, the daemon injects `workspace`; unrecognized values warn once and retain the legacy `git-root` behavior. Propagates via the runtime base env, not `childEnvOverrides`; `--memory-project-scope` wins. Each workspace remember/forget/dream lane caps pending tasks at `MAX_PENDING = 16`; N workspaces allow up to 16·N queued tasks with no daemon-wide cap. |

Blank `QWEN_CODE_MEMORY_PROJECT_SCOPE` values are treated as unset and therefore default to `workspace`; unrecognized non-empty values still warn once and retain the legacy `git-root` behavior.

Expand Down
6 changes: 3 additions & 3 deletions docs/users/qwen-serve.md
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,9 @@ Agent text writes (`write_file`, `edit`, `notebook_edit`, and the shell tool's s

Operators whose deployment convention is umask-driven (e.g. a systemd unit with `UMask=0002`, shared-group repositories) can opt new files into the standard POSIX handling with:

| Env var | Values | Default | What it does |
| -------------------------- | ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `QWEN_SERVE_NEW_FILE_MODE` | `owner` \| `system` | `owner` | `system` creates NEW files at `0o666 & ~umask`, so agent-created files follow the daemon process's umask like any other process on the machine. `owner` keeps the umask-independent `0600` default. Values are case-insensitive; the literal `0600` is accepted as an alias for `owner` (no other octal modes are supported), and any other value is rejected with a stderr warning and the `0600` default is kept. |
| Env var | Values | Default | What it does |
| -------------------------- | ------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `QWEN_SERVE_NEW_FILE_MODE` | `owner` \| `system` | `owner` | `system` creates NEW files at `0o666 & ~umask`, so agent-created files follow the daemon process's umask like any other process on the machine. `owner` keeps the umask-independent `0600` default. Values are case-insensitive; the literal `0600` is accepted as an alias for `owner` (no other octal modes are supported), and any other value is rejected with a stderr warning and the `0600` default is kept. |

Scope and limits:

Expand Down
Loading
Loading