qwen-code/docs/developers/daemon
jinye fd613eae56
feat(cli): Add channel worker settings reload for serve --channel (#6598)
The daemon-managed channel worker reads each channel's settings (tokens, proxy, per-channel model) once when it starts, so applying settings.json changes previously required restarting the whole daemon. This adds an explicit reload that stops and relaunches the worker so it re-reads settings.json, without bouncing the daemon or its live sessions.

The reload is exposed as a strict-gated POST /workspace/channel/reload route, an SDK reloadChannelWorker() method, and a qwen channel reload CLI command, advertised through a channel_reload capability only when the daemon was started with --channel. The worker supervisor gains a restart() that coalesces concurrent reloads onto a single relaunch, resets the crash-restart budget so a failed worker recovers, and latches a disposed flag on hard shutdown so a racing reload cannot relaunch a worker into a tearing-down daemon.

Refs #5976
2026-07-09 13:08:30 +00:00
..
00-index.md feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
01-architecture.md feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
02-serve-runtime.md feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
03-acp-bridge.md feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00
04-permission-mediation.md docs(daemon): refresh daemon docs for recent PRs (wave 2) (#5954) 2026-06-28 08:36:30 +00:00
05-mcp-transport-pool.md docs(daemon): Refresh daemon docs in English (#5144) 2026-06-15 22:38:01 +08:00
06-mcp-budget-guardrails.md docs(daemon): Refresh daemon docs in English (#5144) 2026-06-15 22:38:01 +08:00
07-workspace-filesystem.md refactor(cli): rename serve files to kebab-case (#5592) 2026-06-22 13:13:07 +08:00
08-session-lifecycle.md feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00
09-event-schema.md feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00
10-event-bus.md feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00
11-capabilities-versioning.md feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
12-auth-security.md fix(core): Align MCP OAuth guidance and docs (#5589) 2026-06-24 07:09:53 +08:00
13-sdk-daemon-client.md feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00
14-cli-tui-adapter.md feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00
15-channel-adapters.md feat(cli): Add channel worker settings reload for serve --channel (#6598) 2026-07-09 13:08:30 +00:00
16-vscode-ide-adapter.md feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
17-configuration.md feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
18-error-taxonomy.md refactor(cli): rename serve files to kebab-case (#5592) 2026-06-22 13:13:07 +08:00
19-observability.md feat(cli): Surface daemon prompt queue status (#6325) 2026-07-05 08:25:42 +00:00
20-quickstart-operations.md feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
_meta.ts docs(daemon): Refresh daemon docs in English (#5144) 2026-06-15 22:38:01 +08:00