qwen-code/packages/cli/src
jinye 27f8f2c95d
feat(cli): Add serve env isolation and total admission (#6416)
* feat(cli): add serve env isolation and total admission

Add runtime-local serve env snapshots, explicit env injection for low-cost workspace-scoped consumers, and sourceEnv support for ACP child spawn.

Add a daemon-wide maxTotalSessions admission reservation hook for fresh session creation while keeping multi-workspace sessions gated.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* codex: address PR review feedback (#6416)

Reject fractional maxTotalSessions values so the daemon-wide session cap remains an integer count and matches the documented limit semantics.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): address PR review feedback (#6416)

Always pass the runtime env to A2UI stdio transports, keep daemon runtime env metadata coherent after env reload fallback, and tighten total-admission coverage.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): address total admission review feedback (#6416)

Add retryable ACP error data for total session limits, log total-admission REST rejections, and keep session-limit response scopes explicit.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): address env review feedback (#6416)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): restore scheduled task serve deps (#6416)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): isolate runtime env reload base (#6416)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* codex: address PR review feedback (#6416)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* codex: address PR review feedback (#6416)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* codex: address PR review feedback (#6416)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* codex: address PR review feedback (#6416)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* codex: fix CI failure on PR #6416

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): address daemon admission review feedback

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): address runtime env review feedback

Scrub daemon bearer tokens from A2UI stdio MCP environments and prune reload-owned keys from the daemon runtime base before rebuilding runtime env snapshots.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): preserve daemon env base on reload

Keep runtime env rebuilds anchored to the boot-time daemon base snapshot, preventing reload-owned key pruning from dropping valid shell-exported values. Also carry env file read failure details into runtime metadata and daemon logs.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(cli): satisfy env metadata lint rules

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-07-08 00:52:36 +00:00
..
acp-integration fix(core): Support large text range reads (#6404) 2026-07-07 11:40:15 +00:00
commands feat(cli): Add serve env isolation and total admission (#6416) 2026-07-08 00:52:36 +00:00
config feat(cli): Add serve env isolation and total admission (#6416) 2026-07-08 00:52:36 +00:00
core perf(cli): defer startup prefetch tasks (#6303) 2026-07-07 15:31:55 +00:00
dualOutput fix(dual-output): prevent FIFO blocking on startup when no reader connected (#4894) 2026-06-15 06:04:06 +08:00
export feat(vscode-companion): support /export session command (#2592) 2026-04-24 17:55:26 +08:00
i18n feat(cli): add --project and --global flags to /model for per-project model persistence (#6060) 2026-07-07 04:49:36 +00:00
nonInteractive feat(core): model fallback chain — auto-switch to backup models on overload (#6273) 2026-07-05 12:29:10 +00:00
patches adh/bugfix/1563 (#4822) 2025-07-25 16:39:37 +00:00
remoteInput fix(cli): preserve partial remote input JSONL records (#6317) 2026-07-04 22:19:58 +00:00
serve feat(cli): Add serve env isolation and total admission (#6416) 2026-07-08 00:52:36 +00:00
services feat(cli): Add serve env isolation and total admission (#6416) 2026-07-08 00:52:36 +00:00
startup perf(cli): defer startup prefetch tasks (#6303) 2026-07-07 15:31:55 +00:00
test-utils feat(cli): add --project and --global flags to /model for per-project model persistence (#6060) 2026-07-07 04:49:36 +00:00
ui feat(cli): Add serve env isolation and total admission (#6416) 2026-07-08 00:52:36 +00:00
utils feat(cli): Add serve env isolation and total admission (#6416) 2026-07-08 00:52:36 +00:00
cli.test.ts fix(cli): add bootstrap fast paths (#6188) 2026-07-02 22:28:11 +00:00
cli.ts feat(core): model fallback chain — auto-switch to backup models on overload (#6273) 2026-07-05 12:29:10 +00:00
gemini.test.tsx perf(cli): defer startup prefetch tasks (#6303) 2026-07-07 15:31:55 +00:00
gemini.tsx perf(cli): defer startup prefetch tasks (#6303) 2026-07-07 15:31:55 +00:00
nonInteractiveCli.test.ts fix(core): give Stop-hook continuations a fresh per-turn tool-call budget; make the cap configurable (#6238) 2026-07-04 02:36:59 +00:00
nonInteractiveCli.ts feat(core): model fallback chain — auto-switch to backup models on overload (#6273) 2026-07-05 12:29:10 +00:00
nonInteractiveCliCommands.test.ts feat(cli): support stacked slash-skill invocations (#6361) 2026-07-07 06:38:04 +00:00
nonInteractiveCliCommands.ts feat(cli): support stacked slash-skill invocations (#6361) 2026-07-07 06:38:04 +00:00
validateNonInterActiveAuth.test.ts feat(auth): discontinue Qwen OAuth free tier (2026-04-15 cutoff) (#3291) 2026-04-15 22:30:20 +08:00
validateNonInterActiveAuth.ts Merge branch 'main' into feat/debug-logging-refactor 2026-02-01 20:47:38 +08:00