Skip to main content
Qwen Code
$ cat ./qwen-code.md

Qwen Code

Qwen Code is a powerful CLI tool that leverages advanced large language models to assist developers with code generation, analysis, and optimization tasks. The tool provides intelligent code completion, bug detection, code refactoring suggestions, and multi-language programming support through an intuitive command-line interface. Key features include real-time code analysis, automated documentation generation, and seamless integration with existing development workflows. Qwen Code significantly enhances developer productivity by offering contextual code suggestions, identifying potential issues early in the development cycle, and supporting popular programming languages including Python, JavaScript, Java, and C++. Ideal for software engineers, DevOps teams, and code reviewers seeking to streamline their coding processes and maintain high-quality codebases through AI-powered assistance.

30,972 stars 3,590 forks TypeScript Apache License 2.0
QwenLM 5202 Dec 23, 2025
Login with GitHub to like and favorite this CLI tool
$ git release --latest

Latest Releases

All releases

Bundled CLI Version
This SDK release bundles CLI version: 0.28.7
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.28.6
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.28.0
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.4
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.3
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.2
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.1
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.0
Source: CLI built from source (same branch/ref as SDK)
---
See commit history for changes.

<!-- Release notes generated using configuration in .github/release.yml at release/v0.28.6-nightly.20261126.6b0cd79b -->
What's Changed
  • feat(qwen): add the Qwen Code CLI package on the Harness kernel by @sorrycc in https://github.com/QwenLM/qwen-code/pull/18351
  • fix(core): explain how to recover from a repeated-tool-call rejection by @qqqys in https://github.com/QwenLM/qwen-code/pull/18317
  • fix(web-shell): keep compact Git status badges visible and adapt status bar to width by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18359
  • test(verify-pr): use reaped child PIDs for torn-down worker fixtures by @wenshao in https://github.com/QwenLM/qwen-code/pull/18393
  • fix(core): append effective permission context before model requests by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18257
  • fix(serve): branch from nested workspace worktrees by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18232
  • feat(managed-agent): Release and reclaim suspended Harness placements by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18404
  • fix(i18n): correct Russian counts and settings descriptions by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18320
  • fix(web-shell): apply standalone reasoning at session startup by @chiga0 in https://github.com/QwenLM/qwen-code/pull/18326
  • docs(managed-agent): Sync Action parking rollout status by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18414
  • test(managed-agent): Cover healthy pool handover for parked Actions by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18410
  • perf(release): shallow-checkout prepare job and fetch version tags without trees by @yiliang114 in https://github.com/QwenLM/qwen-code/pull/18373
  • feat(managed-agent): Store terminal tickets in SQL by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18426
  • feat(managed-agent): Wake event streams for other instances' commits by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18431
  • fix(managed-agent): Reattach Hosted Harness sessions across control planes by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18433
  • fix(managed-agent): Preserve wake prompt IDs across Action parking by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18419
  • feat(web-shell): make arrow-key prompt history optional by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18399
  • feat(cli): persist reasoning effort and context window per model by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18316
  • fix(managed-agent): End released writer leases on takeover by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18443
  • fix(serve): Corroborate load-admission CPU signal with event-loop lag by @wenshao in https://github.com/QwenLM/qwen-code/pull/18420
  • fix(web-shell): require explicit follow-up acceptance with attachments by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18437
  • feat(cli): retain and restore worktree snapshots across workspaces by @wenshao in https://github.com/QwenLM/qwen-code/pull/18009
  • feat(web-shell): enable per-workspace management from sidebar menu and hover overview by @wenshao in https://github.com/QwenLM/qwen-code/pull/18140
  • refactor!: remove loop detection by @qqqys in https://github.com/QwenLM/qwen-code/pull/18418
  • feat(managed-agent): Read Harness recovery status across replicas by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18440
  • feat(mods): load and draw Mods written for Claude Code 2.1.332 by @qqqys in https://github.com/QwenLM/qwen-code/pull/18435
  • fix(web-shell): restore custom inline tags in composer drafts by @callmeYe in https://github.com/QwenLM/qwen-code/pull/18398
  • fix(web-templates): re-track export renderer budget and guard Docker cleanup by @yiliang114 in https://github.com/QwenLM/qwen-code/pull/18456
  • fix(managed-agent): Restore Action parking across Harness replacement by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18453
  • feat(kubernetes): Enable a two-member Hosted Harness pool by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18444
  • feat(serve): run the target's UserPromptSubmit on prompts from another session by @qqqys in https://github.com/QwenLM/qwen-code/pull/18450
  • fix(managed-agent): admit session skills on external Workspace creation by @yiliang114 in https://github.com/QwenLM/qwen-code/pull/18099
  • fix(managed-agent): Resume Managed Turns after Broker failover by @doudouOUC in https://github.com/QwenLM/qwen-code/pull/18455
  • feat(web-shell): switch ManagedSessionsPage chat column onto shared ChatSurface (slice 3c.3) by @wenshao in https://github.com/QwenLM/qwen-code/pull/18376
  • fix(ci): bypass host proxy env vars in apt mirror probe by @wenshao in https://github.com/QwenLM/qwen-code/pull/18467
  • fix(ci): honor the runner apt mirror for sandbox builds by @yiliang114 in https://github.com/QwenLM/qwen-code/pull/18462
  • fix(release): reconcile workflow-owned failure issues by @yiliang114 in https://github.com/QwenLM/qwen-code/pull/18432
  • ci: retire the main-CI failure backlog and land the fixes behind it by @yiliang114 in https://github.com/QwenLM/qwen-code/pull/18458

Full Changelog: https://github.com/QwenLM/qwen-code/compare/v0.28.6...v0.28.6-nightly.20261126.6b0cd79b

<!-- qwen-release-notes:v2 -->
Highlights
  • Qwen Code CLI is now available on the Harness kernel, with usage statistics off by default unless privacy.usageStatisticsEnabled is true. ([#18351](https://github.com/QwenLM/qwen-code/pull/18351))
  • Repeated-tool-call rejections now explain the cause and suggest /compress or /clear to recover, across TUI, headless, and daemon sessions. ([#18317](https://github.com/QwenLM/qwen-code/pull/18317))
  • Web Shell applies the selected thinking level at session startup, so the first prompt uses it without a second request. ([#18326](https://github.com/QwenLM/qwen-code/pull/18326))
  • The interactive CLI saves reasoning effort and context window per model and restores them on model switch or relaunch. ([#18316](https://github.com/QwenLM/qwen-code/pull/18316))
  • Worktree snapshots are retained per workspace by a configurable count and restored on reopen; worktree.maxRetained set to zero disables sweeping. ([#18009](https://github.com/QwenLM/qwen-code/pull/18009))
  • Managed Web Terminal tickets are stored in SQL, so any control-plane instance can serve the WebSocket upgrade while keeping single-use and cluster-wide caps. ([#18426](https://github.com/QwenLM/qwen-code/pull/18426))

Breaking Changes
  • Qwen Code no longer detects model loops or caps tool calls; tool results and errors now reach the model unchanged on all surfaces. ([#18418](https://github.com/QwenLM/qwen-code/pull/18418)) by @qqqys
- Qwen Code 不再检测模型循环或限制工具调用次数,工具结果和错误在所有界面原样传给模型。
Qwen Code CLI and Mods
New Qwen Code CLI package on the Harness kernel, plus compatibility for Claude Code mods and simplified tool-call handling.
  • Adds the Qwen Code CLI product package on the Harness kernel, with usage statistics off by default unless privacy.usageStatisticsEnabled is set to true. ([#18351](https://github.com/QwenLM/qwen-code/pull/18351))
  • Mods written for Claude Code 2.1.332 now load in Qwen Code, registering their commands and drawing their band, with new hook names skipped via a one-line diagnostic. ([#18435](https://github.com/QwenLM/qwen-code/pull/18435))

Session Recovery and Takeover
Improves how sessions, leases, and hosted Harness instances hand off and recover across control planes.
  • Lets clean idle suspensions and Action parks release their Session placement so another healthy Harness can take over before the old writer lease expires. ([#18404](https://github.com/QwenLM/qwen-code/pull/18404))
  • managed-agent: Reattach Hosted Harness sessions across control planes ([#18433](https://github.com/QwenLM/qwen-code/pull/18433))
  • Hosted Harness takeovers now end the released writer's lease in the same transaction, letting another pool member take over sooner. ([#18443](https://github.com/QwenLM/qwen-code/pull/18443))
  • Managed Agent recovery and single-Session views now read committed Harness status across replicas, with authenticated access and input blocked during active Turns. ([#18440](https://github.com/QwenLM/qwen-code/pull/18440))
  • Added seven Hosted Harness process cases covering Action parking wake scenarios and widened parked-seal Prompt ID fields to 128 characters. ([#18419](https://github.com/QwenLM/qwen-code/pull/18419))
  • Added MySQL regression tests with two real Harness processes verifying that a second Harness takes over a parked public Shell Action and the tool runs exactly once. ([#18410](https://github.com/QwenLM/qwen-code/pull/18410))

Multi-Instance Event and Ticket Sync
Lets control-plane replicas share session events and Web Terminal tickets promptly and reliably.
  • Managed Web Terminal tickets are now stored in SQL, letting any control-plane instance serve the WebSocket upgrade while keeping single-use and cluster-wide ticket caps. ([#18426](https://github.com/QwenLM/qwen-code/pull/18426))
  • Session event streams now pick up events committed by other control-plane instances within a few hundred milliseconds instead of waiting for the 5-second store re-read. ([#18431](https://github.com/QwenLM/qwen-code/pull/18431))

Web Shell UI and Settings
Refines Web Shell settings, drafts, suggestions, and workspace management for a smoother experience.
  • Web Shell adds a Settings → UI switch, on by default, to make arrow-key prompt history optional; Ctrl+R still opens history search. ([#18399](https://github.com/QwenLM/qwen-code/pull/18399))
  • Web Shell now sends follow-up suggestions only when explicitly accepted, so attachments no longer include unadded suggested text. ([#18437](https://github.com/QwenLM/qwen-code/pull/18437))
  • Web Shell drafts now preserve custom inline chip positions across reloads and session switches, restoring chips instead of showing raw serialized references. ([#18398](https://github.com/QwenLM/qwen-code/pull/18398))
  • Every locally trusted workspace in the Web Shell sidebar now has its own management menu for MCP, Skills, Extensions, Channels and Settings, plus a Trust action for untrusted ones. ([#18140](https://github.com/QwenLM/qwen-code/pull/18140))
  • Web Shell now applies the selected thinking level during session startup on hosts that support startup configuration, so the first prompt uses it without a second request. ([#18326](https://github.com/QwenLM/qwen-code/pull/18326))

Model and Prompt Behavior
Improves how model requests, permission modes, and per-model settings are handled and persisted.
  • Appends the effective permission mode to model requests only when it changes, preserving the cacheable prompt prefix and persisting snapshots across resume and compaction. ([#18257](https://github.com/QwenLM/qwen-code/pull/18257))
  • The interactive CLI now saves reasoning effort and context window per model and restores them on model switch or relaunch. ([#18316](https://github.com/QwenLM/qwen-code/pull/18316))
![OpenTUI effort picker with medium highlighted](https://github.com/user-attachments/assets/4d2ef1b9-43a7-409e-a384-adfeb71edc55) ![OpenTUI confirms medium and updates the status line](https://github.com/user-attachments/assets/890d0e96-d0ee-44ef-8d33-04bd75049753)
  • core: explain how to recover from a repeated-tool-call rejection ([#18317](https://github.com/QwenLM/qwen-code/pull/18317))

Desktop and Worktree Management
Enhances desktop Git status display and adds configurable worktree snapshot retention.
  • Fixes missing compact Git status severity badges in the desktop toolbar and adds width-aware progressive disclosure for Git branch indicators and status bar typography. ([#18359](https://github.com/QwenLM/qwen-code/pull/18359))
  • Worktree snapshots are now retained per workspace by a configurable count and restored on reopen; worktree.maxRetained set to zero disables automatic sweeping. ([#18009](https://github.com/QwenLM/qwen-code/pull/18009))
![Retained overview on 9727ae7cbd](https://raw.githubusercontent.com/wenshao/qwen-code/ef8c1b02b27acd1fbfd1444a6fd8dbf9c517e553/pr18009/9727ae7cbd/browser-02-retained-overview.png) ![Secondary restore on 9727ae7cbd](https://raw.githubusercontent.com/wenshao/qwen-code/ef8c1b02b27acd1fbfd1444a6fd8dbf9c517e553/pr18009/9727ae7cbd/browser-03-restored-secondary.png)
Daemon and Localization Fixes
Fixes daemon admission under IO load and corrects Russian localization across the Web Shell.
  • The daemon's load-based admission gate now also checks event-loop lag, so IO storms no longer block new child spawns while CPUs are idle. ([#18420](https://github.com/QwenLM/qwen-code/pull/18420))
  • Fixes Russian plural forms for extension and MCP server counts and quota durations, uses singular capability names, and updates six Russian Web Shell settings descriptions. ([#18320](https://github.com/QwenLM/qwen-code/pull/18320))

Release and CI Reliability
Speeds up release preparation and stabilizes CI test fixtures and export budgets.
  • Release preparation now uses a shallow single-commit checkout and fetches only version tags, avoiding full history clones on every release run. ([#18373](https://github.com/QwenLM/qwen-code/pull/18373))
  • The document export renderer byte budget is re-tracked to the latest CI measurement, and Docker integration cleanup no longer fails when its helper script was not checked out. ([#18456](https://github.com/QwenLM/qwen-code/pull/18456))
  • Updates verify-pr lifecycle test fixtures to use reaped child PIDs, fixing a flaky Linux unit test failure in the finalize end-to-end case. ([#18393](https://github.com/QwenLM/qwen-code/pull/18393))

Other Changes
  • serve: branch from nested workspace worktrees ([#18232](https://github.com/QwenLM/qwen-code/pull/18232))
  • Updated the English and Chinese Action parking coverage designs to record merged stages, implemented Shell lanes, passing Linux/MySQL runs, and remaining CI evidence. ([#18414](https://github.com/QwenLM/qwen-code/pull/18414))

---
中文摘要
亮点
  • Qwen Code CLI 现已在 Harness 内核上提供,默认关闭使用统计,除非将 privacy.usageStatisticsEnabled 设为 true。 ([#18351](https://github.com/QwenLM/qwen-code/pull/18351))
  • 重复工具调用被拒时,错误信息会说明原因并建议使用 /compress 或 /clear 恢复,覆盖 TUI、无头模式和守护进程会话。 ([#18317](https://github.com/QwenLM/qwen-code/pull/18317))
  • Web Shell 在会话启动时应用所选思考级别,首个提示无需二次请求即可生效。 ([#18326](https://github.com/QwenLM/qwen-code/pull/18326))
  • 交互式 CLI 按模型保存 reasoning effort 和上下文窗口大小,并在切换模型或重新启动时恢复。 ([#18316](https://github.com/QwenLM/qwen-code/pull/18316))
  • 工作树快照按工作区按数量保留并在重新打开时恢复;worktree.maxRetained 设为零可关闭自动清理。 ([#18009](https://github.com/QwenLM/qwen-code/pull/18009))
  • Managed Web Terminal 票据存储于 SQL,任意控制平面实例均可处理 WebSocket 升级,同时保留一次性使用和集群级上限。 ([#18426](https://github.com/QwenLM/qwen-code/pull/18426))

Qwen Code CLI 与 Mods
在 Harness 内核上新增 Qwen Code CLI 产品包,兼容 Claude Code Mods,并简化工具调用处理。
  • 在 Harness 内核上新增 Qwen Code CLI 产品包,默认关闭使用统计,除非将 privacy.usageStatisticsEnabled 设为 true。 ([#18351](https://github.com/QwenLM/qwen-code/pull/18351))
  • 为 Claude Code 2.1.332 编写的 Mods 现在可在 Qwen Code 中加载、注册命令并绘制其 band,新钩子名称会以单行诊断跳过。 ([#18435](https://github.com/QwenLM/qwen-code/pull/18435))

会话恢复与接管
改进会话、租约和托管 Harness 实例在控制平面之间的交接与恢复。
  • 允许干净的空闲挂起和 Action 停驻释放其 Session 放置,使其他健康的 Harness 能在旧写入租约到期前接管。 ([#18404](https://github.com/QwenLM/qwen-code/pull/18404))
  • 附件缓存为空的控制平面现在可在常驻会话冲突后重新附加到现有 Hosted Harness 会话,并将其复用于首个 Turn 和审批。 ([#18433](https://github.com/QwenLM/qwen-code/pull/18433))
  • Hosted Harness 接管时会在同一事务中结束已释放写入者的租约,使其他池成员能更早接管。 ([#18443](https://github.com/QwenLM/qwen-code/pull/18443))
  • Managed Agent 的恢复视图和单会话视图现在可跨副本读取已提交的 Harness 状态,访问需认证,活跃 Turn 期间会阻止新输入。 ([#18440](https://github.com/QwenLM/qwen-code/pull/18440))
  • 新增七个 Hosted Harness 进程用例覆盖 Action parking 唤醒场景,并将停放封存 Prompt ID 字段扩展至 128 字符。 ([#18419](https://github.com/QwenLM/qwen-code/pull/18419))
  • 新增使用两个真实 Harness 进程的 MySQL 回归测试,验证第二个 Harness 接管已停放的公共 Shell Action,且工具仅执行一次。 ([#18410](https://github.com/QwenLM/qwen-code/pull/18410))

多实例事件与票据同步
让控制平面副本之间及时可靠地共享会话事件和 Web Terminal 票据。
  • Managed Web Terminal 票据现存储于 SQL,任意控制平面实例均可处理 WebSocket 升级,同时保留一次性使用和集群级票据上限。 ([#18426](https://github.com/QwenLM/qwen-code/pull/18426))
  • 会话事件流现在可在数百毫秒内获取其他控制平面实例提交的事件,而无需等待 5 秒的存储重读。 ([#18431](https://github.com/QwenLM/qwen-code/pull/18431))

Web Shell 界面与设置
优化 Web Shell 的设置、草稿、建议和工作区管理,带来更顺畅的体验。
  • Web Shell 在 Settings → UI 新增开关(默认开启),可关闭方向键调出历史提示;Ctrl+R 仍可搜索历史。 ([#18399](https://github.com/QwenLM/qwen-code/pull/18399))
  • Web Shell 仅在明确接受时才发送后续建议,附件提交不再夹带用户未添加的建议文本。 ([#18437](https://github.com/QwenLM/qwen-code/pull/18437))
  • Web Shell 草稿现在在刷新和切换会话后保留自定义内联 chip 的位置,恢复 chip 而非显示原始序列化引用。 ([#18398](https://github.com/QwenLM/qwen-code/pull/18398))
  • Web Shell 侧边栏中每个本地受信工作区现可管理 MCP、Skills、Extensions、Channels 和 Settings,未受信工作区可直接执行 Trust。 ([#18140](https://github.com/QwenLM/qwen-code/pull/18140))
  • 在支持启动配置的主机上,Web Shell 现在会在会话启动时应用所选的思考级别,使首个提示无需二次请求即可生效。 ([#18326](https://github.com/QwenLM/qwen-code/pull/18326))

模型与提示行为
改进模型请求、权限模式以及按模型设置的保存与处理方式。
  • 仅在权限模式变化时向模型请求追加有效权限模式,保留可缓存的提示前缀,并在恢复和压缩过程中持久化快照。 ([#18257](https://github.com/QwenLM/qwen-code/pull/18257))
  • 交互式 CLI 现按模型保存 reasoning effort 和上下文窗口大小,并在切换模型或重新启动时恢复。 ([#18316](https://github.com/QwenLM/qwen-code/pull/18316))
  • 当服务商因重复工具调用拒绝请求时,错误信息现在会说明原因并建议使用 /compress 或 /clear 恢复,覆盖 TUI、无头模式和守护进程会话。 ([#18317](https://github.com/QwenLM/qwen-code/pull/18317))

桌面与工作树管理
增强桌面 Git 状态显示,并新增可配置的工作树快照保留。
  • 修复桌面工具栏中紧凑 Git 状态严重性徽章缺失的问题,并为 Git 分支指示器和状态栏排版增加随宽度变化的渐进式显示。 ([#18359](https://github.com/QwenLM/qwen-code/pull/18359))
  • 工作树快照现按工作区按数量保留并在重新打开时恢复;worktree.maxRetained 设为零可关闭自动清理。 ([#18009](https://github.com/QwenLM/qwen-code/pull/18009))

守护进程与本地化修复
修复 IO 负载下的守护进程准入问题,并纠正 Web Shell 的俄语本地化。
  • 守护进程的负载准入现在同时检查事件循环延迟,IO 高峰时 CPU 空闲也不再阻止启动新子进程。 ([#18420](https://github.com/QwenLM/qwen-code/pull/18420))
  • 修复扩展和 MCP 服务器数量及配额时长的俄语复数形式,使用单数能力名称,并更新六条俄语 Web Shell 设置说明。 ([#18320](https://github.com/QwenLM/qwen-code/pull/18320))

发布与 CI 可靠性
加快发布准备,并稳定 CI 测试夹具与导出预算。
  • 发布准备现在使用浅层单提交检出并仅获取版本标签,避免每次发布运行都克隆完整历史。 ([#18373](https://github.com/QwenLM/qwen-code/pull/18373))
  • 文档导出渲染器的字节预算已按最新 CI 测量更新,Docker 集成清理步骤在辅助脚本未检出时不再失败。 ([#18456](https://github.com/QwenLM/qwen-code/pull/18456))
  • 更新 verify-pr 生命周期测试夹具以使用已回收的子进程 PID,修复 finalize 端到端用例中不稳定的 Linux 单元测试失败。 ([#18393](https://github.com/QwenLM/qwen-code/pull/18393))

其他变更
  • serve: branch from nested workspace worktrees ([#18232](https://github.com/QwenLM/qwen-code/pull/18232))
  • 更新中英文 Action parking 覆盖设计文档,记录已合并阶段、已实现的 Shell 通道、通过的 Linux/MySQL 运行及剩余 CI 证据。 ([#18414](https://github.com/QwenLM/qwen-code/pull/18414))

<details><summary>Complete Change List (27 pull requests)</summary>
Features
  • qwen: add the Qwen Code CLI package on the Harness kernel ([#18351](https://github.com/QwenLM/qwen-code/pull/18351)) by @sorrycc
  • managed-agent: Release and reclaim suspended Harness placements ([#18404](https://github.com/QwenLM/qwen-code/pull/18404)) by @doudouOUC
  • managed-agent: Store terminal tickets in SQL ([#18426](https://github.com/QwenLM/qwen-code/pull/18426)) by @doudouOUC
  • managed-agent: Wake event streams for other instances' commits ([#18431](https://github.com/QwenLM/qwen-code/pull/18431)) by @doudouOUC
  • web-shell: make arrow-key prompt history optional ([#18399](https://github.com/QwenLM/qwen-code/pull/18399)) by @callmeYe
  • cli: persist reasoning effort and context window per model ([#18316](https://github.com/QwenLM/qwen-code/pull/18316)) by @callmeYe
  • cli: retain and restore worktree snapshots across workspaces ([#18009](https://github.com/QwenLM/qwen-code/pull/18009)) by @wenshao
  • managed-agent: Read Harness recovery status across replicas ([#18440](https://github.com/QwenLM/qwen-code/pull/18440)) by @doudouOUC
  • mods: load and draw Mods written for Claude Code 2.1.332 ([#18435](https://github.com/QwenLM/qwen-code/pull/18435)) by @qqqys

Bug Fixes
  • core: explain how to recover from a repeated-tool-call rejection ([#18317](https://github.com/QwenLM/qwen-code/pull/18317)) by @qqqys
  • web-shell: keep compact Git status badges visible and adapt status bar to width ([#18359](https://github.com/QwenLM/qwen-code/pull/18359)) by @callmeYe
  • core: append effective permission context before model requests ([#18257](https://github.com/QwenLM/qwen-code/pull/18257)) by @callmeYe
  • serve: branch from nested workspace worktrees ([#18232](https://github.com/QwenLM/qwen-code/pull/18232)) by @callmeYe
  • i18n: correct Russian counts and settings descriptions ([#18320](https://github.com/QwenLM/qwen-code/pull/18320)) by @callmeYe
  • web-shell: apply standalone reasoning at session startup ([#18326](https://github.com/QwenLM/qwen-code/pull/18326)) by @chiga0
  • managed-agent: Reattach Hosted Harness sessions across control planes ([#18433](https://github.com/QwenLM/qwen-code/pull/18433)) by @doudouOUC
  • managed-agent: Preserve wake prompt IDs across Action parking ([#18419](https://github.com/QwenLM/qwen-code/pull/18419)) by @doudouOUC
  • managed-agent: End released writer leases on takeover ([#18443](https://github.com/QwenLM/qwen-code/pull/18443)) by @doudouOUC
  • serve: Corroborate load-admission CPU signal with event-loop lag ([#18420](https://github.com/QwenLM/qwen-code/pull/18420)) by @wenshao
  • web-shell: require explicit follow-up acceptance with attachments ([#18437](https://github.com/QwenLM/qwen-code/pull/18437)) by @callmeYe
  • web-shell: restore custom inline tags in composer drafts ([#18398](https://github.com/QwenLM/qwen-code/pull/18398)) by @callmeYe
  • web-templates: re-track export renderer budget and guard Docker cleanup ([#18456](https://github.com/QwenLM/qwen-code/pull/18456)) by @yiliang114

Performance
  • release: shallow-checkout prepare job and fetch version tags without trees ([#18373](https://github.com/QwenLM/qwen-code/pull/18373)) by @yiliang114

Documentation
  • managed-agent: Sync Action parking rollout status ([#18414](https://github.com/QwenLM/qwen-code/pull/18414)) by @doudouOUC
  • web-shell: enable per-workspace management from sidebar menu and hover overview ([#18140](https://github.com/QwenLM/qwen-code/pull/18140)) by @wenshao

Internal Changes
  • test(verify-pr): use reaped child PIDs for torn-down worker fixtures ([#18393](https://github.com/QwenLM/qwen-code/pull/18393)) by @wenshao
  • test(managed-agent): Cover healthy pool handover for parked Actions ([#18410](https://github.com/QwenLM/qwen-code/pull/18410)) by @doudouOUC

</details>
Full Changelog: https://github.com/QwenLM/qwen-code/compare/v0.28.6...v0.28.7

Bundled CLI Version
This SDK release bundles CLI version: 0.28.6
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.28.0
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.4
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.3
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.2
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.1
Source: CLI built from source (same branch/ref as SDK)
---
Bundled CLI Version
This SDK release bundles CLI version: 0.27.0
Source: CLI built from source (same branch/ref as SDK)
---
See commit history for changes.

<!-- qwen-release-notes:v2 -->
Highlights
  • Managed sessions can now suspend while awaiting tool approvals, questions, or background work, and resume after Harness crashes via cold recovery. ([#17953](https://github.com/QwenLM/qwen-code/pull/17953), [#18115](https://github.com/QwenLM/qwen-code/pull/18115), [#18164](https://github.com/QwenLM/qwen-code/pull/18164), [#18166](https://github.com/QwenLM/qwen-code/pull/18166), [#18170](https://github.com/QwenLM/qwen-code/pull/18170), [#18187](https://github.com/QwenLM/qwen-code/pull/18187), [#18194](https://github.com/QwenLM/qwen-code/pull/18194), [#18224](https://github.com/QwenLM/qwen-code/pull/18224), [#18236](https://github.com/QwenLM/qwen-code/pull/18236), [#18303](https://github.com/QwenLM/qwen-code/pull/18303))
  • Headless sessions and the Ink TUI now run on the event-bus kernel by default, with cancelled runs settling within 10 seconds. ([#18154](https://github.com/QwenLM/qwen-code/pull/18154), [#18213](https://github.com/QwenLM/qwen-code/pull/18213))
  • New general.displayLanguage setting (off, zh-CN, en) shows translated replies and thoughts in Ink, OpenTUI, and Web Shell while keeping originals stored. ([#18175](https://github.com/QwenLM/qwen-code/pull/18175))
  • Send no longer stops a running shell command; it moves to the background and keeps running, with the model receiving its id, output location, and status. ([#17926](https://github.com/QwenLM/qwen-code/pull/17926))
  • Web Shell submits prompts with idempotency keys, silently retries transient failures twice, and shows a message-level resend indicator instead of a blocking banner. ([#18177](https://github.com/QwenLM/qwen-code/pull/18177))
  • Generated UI cards gain ui.state view persistence plus ui.copy and ui.download, letting clicks copy text or download a small text file via Web Shell. ([#17922](https://github.com/QwenLM/qwen-code/pull/17922), [#18158](https://github.com/QwenLM/qwen-code/pull/18158))

Breaking Changes
  • Removes MessageRewriteMiddleware, the extra model call that rewrote ACP replies; reply and thought rewriting now goes through the hook-based route in Ink, OpenTUI, and Web Shell. ([#18156](https://github.com/QwenLM/qwen-code/pull/18156)) by @qqqys
- 移除 MessageRewriteMiddleware 这一额外模型调用;回复和思考的重写现在通过 Ink、OpenTUI 和 Web Shell 中基于 hook 的路径实现。
Managed session parking & recovery
Turns can now park while awaiting approvals, questions, or background work, and recover after Harness restarts or crashes.
  • Moves managed-agent background capture into the worker so Harness restarts no longer lose output, and sessions with live background work can suspend safely. ([#17953](https://github.com/QwenLM/qwen-code/pull/17953))
  • Idle hosted sessions can now suspend while a recoverable tool-approval Action awaits a decision, resuming on approval, cancel, or mode change. ([#18115](https://github.com/QwenLM/qwen-code/pull/18115))
  • Action parking now reports why a waiting Turn stays resident, and parking and cold recovery share one set of Session-shape checks. ([#18157](https://github.com/QwenLM/qwen-code/pull/18157))
  • Approval waits whose Prompt contains only images or attachments can now park and survive a Harness crash via cold recovery. ([#18164](https://github.com/QwenLM/qwen-code/pull/18164))
  • Approval waits requested by extension command steps, such as Shell commands inside extensions, can now park while awaiting a decision. ([#18166](https://github.com/QwenLM/qwen-code/pull/18166))
  • A wake-started Turn waiting on tool approval now resumes that approval wait on the next Harness after a crash, instead of being settled as an error. ([#18170](https://github.com/QwenLM/qwen-code/pull/18170))
  • Tool approval waits can now park while a certified background hold covers the Session's background runs, instead of keeping the Session resident until the human decides. ([#18187](https://github.com/QwenLM/qwen-code/pull/18187))
  • Turns started by wake inputs such as monitor notifications, automation runs, loop fires, or child results can now park while awaiting tool approval and resume when due. ([#18194](https://github.com/QwenLM/qwen-code/pull/18194))
  • managed-agent: park channel and pr_event Turns' approval waits ([#18203](https://github.com/QwenLM/qwen-code/pull/18203))
  • Child Session Turns can now park while awaiting tool approval or a question, and cold recovery resumes them instead of keeping the Session resident. ([#18224](https://github.com/QwenLM/qwen-code/pull/18224))
  • Managed agents can now park Hooks and MCP Session approval waits instead of blocking, landing alongside the Harness-side MCP plan. ([#18236](https://github.com/QwenLM/qwen-code/pull/18236))
  • Prevent the parked-MCP reclamation job from retiring the MCP owner of a Session whose seal parks a Turn awaiting an Action. ([#18234](https://github.com/QwenLM/qwen-code/pull/18234))
  • Fixes Managed Agent recovery after a turn is cancelled before Harness admission by requesting session-level evidence and rechecking cleanup when permitted. ([#18132](https://github.com/QwenLM/qwen-code/pull/18132))
  • managed-agent: advance a crashed wake Turn's await_action wait ([#18172](https://github.com/QwenLM/qwen-code/pull/18172))
  • Unadmitted cancellations now settle with their owed runtime cleanup preserved for retry, so earlier settled turns' cleanup obligations remain available. ([#18212](https://github.com/QwenLM/qwen-code/pull/18212))
  • Version-0 public Shell Sessions now park approval waits on both Shell lanes, and public Shell profiles admit Shell calls into saved plans. ([#18303](https://github.com/QwenLM/qwen-code/pull/18303))
  • Managed sessions now use the shared question card, adding draft persistence, multi-line text, and submit-only blocking for a consistent chat experience. ([#18273](https://github.com/QwenLM/qwen-code/pull/18273))
  • The instance metrics route now reports suspension counts, including clean suspensions, reverted attempts, eligibility failures, and cold opens. ([#18173](https://github.com/QwenLM/qwen-code/pull/18173))
  • Adds English and Chinese design docs for widening Action parking coverage and confirming its pre-start checks. ([#18151](https://github.com/QwenLM/qwen-code/pull/18151))
  • Corrects the Action parking design so MCP reclamation skipping parked owners is assigned to S6 rather than described as existing behavior. ([#18186](https://github.com/QwenLM/qwen-code/pull/18186))
  • Documents the design and pre-start checks for parking tool approvals on Sessions with Hooks; no production code changes. ([#18218](https://github.com/QwenLM/qwen-code/pull/18218))
  • Adds English and Chinese design docs for S8a Shell approval parking plus the two pre-start check tests, both passing. ([#18279](https://github.com/QwenLM/qwen-code/pull/18279))
  • Adds real-process Action parking acceptance tests covering Allow, Deny, cancellation, approval-mode change, and expiry, including control plane restarts. ([#18276](https://github.com/QwenLM/qwen-code/pull/18276))
  • Restored Workspace registration for Action parking acceptance and aligned approval validation with durable Hooks and MCP formats. ([#18353](https://github.com/QwenLM/qwen-code/pull/18353))

Reasoning effort & model routing
Adds xhigh effort for Gemini 4 models, automatic Kimi K3 effort inference, and fixes for Gemini and DashScope request schemas.
  • Gemini 4 Neon and Hydrogen models now support xhigh reasoning effort (default high) across Gemini and Vertex routes, including dated, preview, and suffixed aliases. ([#18121](https://github.com/QwenLM/qwen-code/pull/18121))
  • Kimi K3 models on custom OpenAI-compatible gateways now infer low/high/max reasoning effort with max as default and mandatory thinking, without per-route declarations. ([#18095](https://github.com/QwenLM/qwen-code/pull/18095))
  • Moves text out of Gemini functionResponse nested parts into the tool response payload, omitting empty parts, so Gemini requests stay schema-valid. ([#18220](https://github.com/QwenLM/qwen-code/pull/18220))
![Gemini functionResponse.parts verification output](https://raw.githubusercontent.com/wenshao/qwen-code/800f2d37aa7d6d22086692b174c5eecc8af2ca6a/fix-gemini-function-response-parts/verification-output.png)
  • DashScope tool schemas now send omitted additionalProperties as true at object levels with declared properties, while explicit false stays closed. ([#18256](https://github.com/QwenLM/qwen-code/pull/18256))
  • Fixes compression deadlocks in long reasoning sessions by stripping unsigned reasoning blocks and retrying with reduced input when output is truncated. ([#18209](https://github.com/QwenLM/qwen-code/pull/18209))
  • Streams that stall mid tool-call arguments now get a single retry instead of repeated replays, and the error explains the likely provider behavior. ([#18242](https://github.com/QwenLM/qwen-code/pull/18242))
  • ACP sessions can opt in to replaying retryable transport cuts after reasoning and tool calls, and errors now retain their underlying cause. ([#18228](https://github.com/QwenLM/qwen-code/pull/18228))
  • Context overflow errors worded as "is longer than the model's context length" are now recognized, triggering automatic compaction instead of failing. ([#18176](https://github.com/QwenLM/qwen-code/pull/18176))
![Before vs After reproduction and test verification on real Kimi 400 error](https://raw.githubusercontent.com/wenshao/qwen-code/09eeedfd567e5fbfaa3cb91fa74b983ebc7bceeb/kimi-context-length-verification.png)
Web Shell & chat UI
Improves composer reliability, settings, history, and mobile layout across the shared chat surface.
  • Web Shell now submits prompts with idempotency keys, silently retries transient failures twice, and shows a message-level resend indicator instead of a blocking banner. ([#18177](https://github.com/QwenLM/qwen-code/pull/18177))
![Before: blocking banner and locked composer](https://github.com/user-attachments/assets/6a74187f-f5f8-4daf-b315-ac62c346e564) ![After: uncertain delivery with left exclamation button and hover tooltip](https://github.com/user-attachments/assets/b760c283-3248-476f-9d83-af886d8ce60b)
  • Generated UI cards gain ui.copy and ui.download, letting a click copy text or download a small text file via Web Shell. ([#18158](https://github.com/QwenLM/qwen-code/pull/18158))
![Copied](https://raw.githubusercontent.com/qqqys/qwen-code/b0a4ff099e7e4eed7d5e565ae2c63135d7b19a69/copied.png) ![Copy blocked, with the bar's Copy button](https://raw.githubusercontent.com/qqqys/qwen-code/b0a4ff099e7e4eed7d5e565ae2c63135d7b19a69/copy-pending.png)
  • Generated UI cards can now persist view state via ui.state, with model guidance on restoring and saving values and acceptance tests measuring the result. ([#17922](https://github.com/QwenLM/qwen-code/pull/17922))
  • The touch composer editing bar now stays on one compact row across phones and iPads while keeping all six editing controls. ([#18126](https://github.com/QwenLM/qwen-code/pull/18126))
  • Narrow touch-session rows now wrap status metadata instead of covering it, keeping the More hit area clear and closing hover details while menus are open. ([#18092](https://github.com/QwenLM/qwen-code/pull/18092))
  • Prevents Safari on iOS from zooming the page when focusing text inputs, textareas, editable content, and the composer, including inputs inside portaled dialogs. ([#17938](https://github.com/QwenLM/qwen-code/pull/17938))
  • The floating environment panel in Web Shell now stops above a pending question and scrolls internally, updating its height on resize and returning to normal once answered. ([#18013](https://github.com/QwenLM/qwen-code/pull/18013))
  • Clicking a single-task composer chip again now collapses its task detail, while multi-task chips still open their list and row selection switches tasks. ([#18128](https://github.com/QwenLM/qwen-code/pull/18128))
  • Fix embedded Web Shell approval buttons losing theme colors, borders, and padding when a late scoped button reset loads. ([#18243](https://github.com/QwenLM/qwen-code/pull/18243))
  • The Web Shell settings panel now shows a Not set badge for unset boolean settings, and the first click writes the schema's unsetToggleValue when present. ([#18301](https://github.com/QwenLM/qwen-code/pull/18301))
  • Web Shell now stores composer prompt and shell command history on the local daemon per workspace, so desktop and mobile clients share history. ([#18120](https://github.com/QwenLM/qwen-code/pull/18120))
  • Show short Skill names in the slash menu and /skills list, and highlight the owning Extension in the details tooltip. ([#18227](https://github.com/QwenLM/qwen-code/pull/18227))
![Before: slash menu shows extension:skill and tooltip extension blends into description](https://raw.githubusercontent.com/callmeYe/qwen-code/2213c3707ddc97eff3272b3d9ac2001342cd89e4/pr-18227/before-dark-en.png) ![After: slash menu shows skill name only and tooltip highlights owning extension](https://raw.githubusercontent.com/callmeYe/qwen-code/2213c3707ddc97eff3272b3d9ac2001342cd89e4/pr-18227/after-dark-en.png)
  • Skips redundant root scope guards in Web Shell CSS, cutting median click-to-visible history from 1,308 ms to 815 ms. ([#18223](https://github.com/QwenLM/qwen-code/pull/18223))
  • web-shell: scope library CSS with native @scope and remove :has() subtree wildcards ([#18239](https://github.com/QwenLM/qwen-code/pull/18239))
  • Coalesce transcript bottom-follow into one resize observer after layout, skipping redundant scroll writes when already at the bottom. ([#18180](https://github.com/QwenLM/qwen-code/pull/18180))
  • The shared chat surface can now render and operate a live Managed session, with host integrations defaulting to off when no daemon context is present. ([#18246](https://github.com/QwenLM/qwen-code/pull/18246))
  • web-shell: add pure Managed SessionChatController adapter core (slice 3a) ([#18117](https://github.com/QwenLM/qwen-code/pull/18117))
  • web-shell: bind Managed provider to SessionChatController (slice 3b) ([#18205](https://github.com/QwenLM/qwen-code/pull/18205))
  • Adds older-history pagination state to the chat controllers and scopes ChatSurface cancel errors to the owning session and active turn. ([#18091](https://github.com/QwenLM/qwen-code/pull/18091))

Hooks & permissions
Refines hook lifecycle, stop behavior, permission rules, and warning surfacing.
  • A Stop or SubagentStop hook returning continue: false now ends the turn, and stopReason text is shown to users in terminal, headless, and ACP sessions. ([#18229](https://github.com/QwenLM/qwen-code/pull/18229))
  • PermissionRequest hooks that allow a tool call can now return updatedPermissions rules, applied like Always allow in the terminal UI and ACP sessions. ([#18237](https://github.com/QwenLM/qwen-code/pull/18237))
  • UserPromptSubmit hooks now run once per fresh user message, skipping tool-result requests, retries, and automated prompts to cut latency and stray context. ([#18266](https://github.com/QwenLM/qwen-code/pull/18266))
  • Hooks that cannot run as written now surface warnings at session start, in headless stderr, and after /hooks reloads, identifying source, event, and position. ([#18299](https://github.com/QwenLM/qwen-code/pull/18299))
  • A tool hook returning continue: false now ends the turn, keeping batch results in the conversation and showing the stop reason to the user. ([#18345](https://github.com/QwenLM/qwen-code/pull/18345))

Agent runtime & kernel
Moves headless and Ink sessions onto the event-bus kernel and improves tool execution, cancellation, and load handling.
  • Headless sessions (-p, stream-json, SDK) now run on the event-bus kernel by default, with an opt-out setting and env var; cancelled runs settle within 10 seconds. ([#18154](https://github.com/QwenLM/qwen-code/pull/18154))
  • The Ink TUI now runs the shared agent loop on the event-bus kernel by default, with Esc-cancelled turns settling within 10 seconds. ([#18213](https://github.com/QwenLM/qwen-code/pull/18213))
  • Send now no longer stops a running shell command: it moves to the background and keeps running, and the model receives the background id, output location, and status. ([#17926](https://github.com/QwenLM/qwen-code/pull/17926))
  • cli: refuse new sessions under sustained host load ([#18052](https://github.com/QwenLM/qwen-code/pull/18052))
  • Grep now prefers a healthy system rg on PATH and falls back to the bundled binary, avoiding slow first launches on macOS; useBuiltinRipgrep false still means system-only. ([#17698](https://github.com/QwenLM/qwen-code/pull/17698))
  • Very large session transcripts now stay openable across daemon load and replay, with the streaming file limit raised to 1 GiB and new memory guards. ([#18111](https://github.com/QwenLM/qwen-code/pull/18111))
  • Archiving a session now blocks stale recorders from recreating its live transcript or title, while newly loaded recorders resume normally. ([#18012](https://github.com/QwenLM/qwen-code/pull/18012))
  • Deleting a live workspace session now waits for the recorder to flush and close, preserving files on timeout while other sessions keep running. ([#17707](https://github.com/QwenLM/qwen-code/pull/17707))
  • Token usage in the daemon dashboard and /stats now comes from the per-request usage ledger, attributing usage to the day each response occurred. ([#17902](https://github.com/QwenLM/qwen-code/pull/17902))
  • MCP approvals now persist after a session changes directory, so approved servers no longer appear disconnected or require re-approval. ([#18262](https://github.com/QwenLM/qwen-code/pull/18262))
  • The Java SDK now allows lifecycle v2 requests for the Hosted Workspace files profile when the Harness advertises hosted-workspace-files/1. ([#18268](https://github.com/QwenLM/qwen-code/pull/18268))
  • Managed Agent Runtime Broker now discovers providers using the application class loader, fixing provider lookup from threads that cannot see application providers. ([#18125](https://github.com/QwenLM/qwen-code/pull/18125))
  • Clear all high and critical production dependency audit findings, including direct package bumps and workspace overrides for transitive advisories. ([#18075](https://github.com/QwenLM/qwen-code/pull/18075))

Prompt & context efficiency
Reduces prompt size, speeds up transcript loading, and improves compaction behavior.
  • Shortens the inline memory policy and first-request prompts, omits empty memory catalogs in fresh sessions, and trims repeated tool examples to cut prompt size. ([#17789](https://github.com/QwenLM/qwen-code/pull/17789))
  • Session creation no longer loads saved workflow snapshots or recovers interrupted workflows until workflow history is requested, removing 30 snapshot reads with 30 saved runs. ([#17896](https://github.com/QwenLM/qwen-code/pull/17896))
  • After Summary compaction, a runtime hint now points the model to the local transcript for older details, without adding a new tool or retaining more history. ([#18018](https://github.com/QwenLM/qwen-code/pull/18018))
  • The daemon now builds transcript catalog summaries from single bounded reads and loads Goal metadata only for the selected page, speeding up the sidebar's first page. ([#18146](https://github.com/QwenLM/qwen-code/pull/18146))
  • Serve now pins Skills and extensions for the duration of a prompt turn and refreshes them on the next prompt in the same session. ([#18179](https://github.com/QwenLM/qwen-code/pull/18179))
  • Corrects two misleading comments and test titles in the managed DingTalk witness tests; no assertions, fixtures, or production code change. ([#18046](https://github.com/QwenLM/qwen-code/pull/18046))
  • Aligns transcript history documentation with the implemented live-flush barrier and in-process liveness check, clarifying the security boundary in English and Chinese. ([#18094](https://github.com/QwenLM/qwen-code/pull/18094))

PR review & CI security
Adds hardware-isolated execution for PR verification and hardens CI credentials and workflows.
  • verify-pr now runs hardware-isolated microVM rounds end to end, with per-round token issuance and revocation, model proxy enforcement, and fail-closed teardown. ([#18221](https://github.com/QwenLM/qwen-code/pull/18221))
  • NIC-less /verify-pr microVMs can now receive per-round source inputs, call the host model proxy with an ephemeral token, and stream artifacts back. ([#18277](https://github.com/QwenLM/qwen-code/pull/18277))
  • PR reviews can now execute inside hardware-isolated local microVMs over a framed Unix socket/vsock bridge without host directory mounts, with fail-closed fallback. ([#18280](https://github.com/QwenLM/qwen-code/pull/18280))
  • PR review code execution now uses tiered, trust-aware sandboxing with mandatory escalation for high-risk changes, while existing sandbox modes stay compatible. ([#18226](https://github.com/QwenLM/qwen-code/pull/18226))
  • Adds tiered hardware-isolated execution design for /verify-pr, classifying PRs by author trust and risk and blocking publication unless host execution is verified. ([#18181](https://github.com/QwenLM/qwen-code/pull/18181))
  • Fork PR code and forged approval markers can no longer reach CI credentials or trigger automatic approvals in review and triage pipelines. ([#18270](https://github.com/QwenLM/qwen-code/pull/18270))
  • Make the main failure reporter work without its bot PAT and stop test fixtures from spinning the provider reconnect loop. ([#18238](https://github.com/QwenLM/qwen-code/pull/18238))
  • triage: fall back to GITHUB_TOKEN when bot PATs are absent ([#18282](https://github.com/QwenLM/qwen-code/pull/18282))
  • The GitHub channel now posts its public failure receipt only for explicit bot mentions and skips machine-authored comments that do not name the bot. ([#18281](https://github.com/QwenLM/qwen-code/pull/18281))
  • Release workflow checkouts now use a size-bounded blob filter so sparse checkout fetches complete within the action's retry window. ([#18309](https://github.com/QwenLM/qwen-code/pull/18309))
  • Release workflows now use an inline runner bootstrap instead of a self-repository action, avoiding full repository archive downloads. ([#18366](https://github.com/QwenLM/qwen-code/pull/18366))
  • Fixes the CI Failure Patrol checkout failure by keeping Git config isolation while skipping the global safe.directory write that tried to lock /dev/null. ([#18300](https://github.com/QwenLM/qwen-code/pull/18300))
  • CI now provisions zip and unzip tools without sudo, so Linux unit tests no longer fail on runners lacking root access. ([#18343](https://github.com/QwenLM/qwen-code/pull/18343))
  • Managed Agent CI now runs Java and daemon checks only for relevant changed paths, while the full suite still runs on maintainer approval and schedule. ([#18310](https://github.com/QwenLM/qwen-code/pull/18310))
  • Repairs reproducible main CI failures across command IDs, storage guards, load admission, Windows socket tests, crash recovery and class sizes. ([#18297](https://github.com/QwenLM/qwen-code/pull/18297))
  • capture-tui now drains queued signals across a full event loop turn before exiting, fixing the recurring SIGTERM CI flake. ([#18312](https://github.com/QwenLM/qwen-code/pull/18312))
  • Fixed the Web Shell package publish failure by keeping private core imports out of published type declarations. ([#18377](https://github.com/QwenLM/qwen-code/pull/18377))

SDK, packaging & docs
Adds Harness packages as workspaces, fixes SDK behavior, and updates bilingual design documentation.
  • Adds the Harness CLI, core and resource packages as workspaces so they install, build and typecheck with the repository. ([#18314](https://github.com/QwenLM/qwen-code/pull/18314))
  • Adds a complete zh-display example Mod to the Mods guide that shows model replies and thinking in Simplified Chinese across Ink, OpenTUI, and Web Shell. ([#18150](https://github.com/QwenLM/qwen-code/pull/18150))
  • New general.displayLanguage setting (off, zh-CN, en) shows translated replies and thoughts in Ink, OpenTUI, and Web Shell while keeping originals stored. ([#18175](https://github.com/QwenLM/qwen-code/pull/18175))
  • Updates bilingual sidebar background-work design docs to the running-green active-work contract and adds stylesheet tests pinning the running color override precedence. ([#18105](https://github.com/QwenLM/qwen-code/pull/18105))
  • Test-only follow-up syncing the bilingual sidebar background-work indicator design doc and pinning hover/dot precedence rules, with no production changes. ([#18093](https://github.com/QwenLM/qwen-code/pull/18093))
  • Updates the mobile follow-up suggestion design doc to mark the feature as implemented and merged into main, with no product behavior changes. ([#18103](https://github.com/QwenLM/qwen-code/pull/18103))
  • Registers the /artifacts page as pre-auth so reloads return the Web Shell while APIs stay authenticated, and adds stale-jump and interval guards. ([#18102](https://github.com/QwenLM/qwen-code/pull/18102))
  • Adds a Disposable background services rule to AGENTS.md with four concrete rules for throwaway mysqld, proxy, and worker processes started during a session. ([#18168](https://github.com/QwenLM/qwen-code/pull/18168))
  • Moves the disposable MySQL procedure into the managed-agent-server module docs, leaving a short generic rule in the root instructions. ([#18183](https://github.com/QwenLM/qwen-code/pull/18183))
  • Documentation now marks the GitHub registration-identity keying design as merged, with merge verification and deferred follow-ups recorded. ([#17923](https://github.com/QwenLM/qwen-code/pull/17923))
  • The Hosted Harness Session implementation is split into 16 responsibility-focused modules while preserving the HTTP contract and route registration order. ([#18290](https://github.com/QwenLM/qwen-code/pull/18290))
  • Split the Hosted Harness Session test suite into 33 independently runnable files while preserving all 905 existing test cases. ([#18216](https://github.com/QwenLM/qwen-code/pull/18216))
  • Managed agent identity columns now use bounded VARCHAR with canonical references instead of hashed values, fixing the actor ID length validation failure in the SDK Java tests. ([#18058](https://github.com/QwenLM/qwen-code/pull/18058))
  • Restores index usage on MySQL for several identity joins by aligning VARCHAR types and widths, improving query performance after the identity dehash change. ([#18190](https://github.com/QwenLM/qwen-code/pull/18190))
  • MySQL integration tests now verify recovery lookups use both target ID and revision, and cancel evidence uses Turn ID when probing the Turn key. ([#18211](https://github.com/QwenLM/qwen-code/pull/18211))

Other Changes
  • Extracts tool-publication object-key construction into a shared component and lowers size ratchet ceilings, with no change to SQL identities, object layouts, or validation. ([#18083](https://github.com/QwenLM/qwen-code/pull/18083))
  • Speeds up the HTML export formatter test by using a lightweight web-templates copy and async operations, fixing repeated Linux shard failures while keeping all assertions. ([#18104](https://github.com/QwenLM/qwen-code/pull/18104))
  • Retires the Kubernetes Harness deployment templates and removes archived CSI remnants as a single cleanup change, with no user-facing behavior impact. ([#18118](https://github.com/QwenLM/qwen-code/pull/18118))
  • managed-agent: close three confirmed post-merge observation audit findings ([#18110](https://github.com/QwenLM/qwen-code/pull/18110))
  • Removes an unreachable helper-download fallback in the reference build and adds bounded cleanup for helpers downloaded by older SDK source checkouts. ([#18101](https://github.com/QwenLM/qwen-code/pull/18101))
  • The conversation Change Overview now lists bound pull requests newest-bound first, so the latest delivery appears right after Uncommitted. ([#18134](https://github.com/QwenLM/qwen-code/pull/18134))
  • Fixes the failing actor admission test to match the UTF-16 VARCHAR(36) identity cap; admission behavior itself is unchanged. ([#18195](https://github.com/QwenLM/qwen-code/pull/18195))
  • Test-only change: monitor-wake recovery cases now wait for the resumed Turn to free the Session before closing, avoiding 409 failures. ([#18233](https://github.com/QwenLM/qwen-code/pull/18233))
  • Add tests confirming Shell execution supports prepare-without-dispatch and replay semantics, and pin existing Shell parking behavior. ([#18231](https://github.com/QwenLM/qwen-code/pull/18231))
  • Runtime tool-result diagnostics metadata now uses a named typed envelope across transport and persistence, with English and Chinese design docs. ([#18278](https://github.com/QwenLM/qwen-code/pull/18278))
  • test(triage): supply HASBOTPAT in re-run workflow fixtures ([#18328](https://github.com/QwenLM/qwen-code/pull/18328))
  • Managed Agent Server production code now uses Java imports and short type names, with the Harness SDK adapter keeping one qualified name. ([#18325](https://github.com/QwenLM/qwen-code/pull/18325))
  • Managed Agent JSON structures now use explicit typed fields while preserving existing payloads, database representation, and digest inputs. ([#18267](https://github.com/QwenLM/qwen-code/pull/18267))
  • Pins the clock in scheduled-tasks reseat tests so they no longer fail depending on CI run time, and removes duplicate test fixture keys. ([#18315](https://github.com/QwenLM/qwen-code/pull/18315))
  • Strengthens Maven cache-helper failure test coverage, distinguishing real permission denials from inconclusive probes and preserving cleanup warnings and process statuses. ([#18143](https://github.com/QwenLM/qwen-code/pull/18143))
  • Daemon E2E fixtures now start with the host-load admission gate disabled, matching existing fixtures; production behavior stays default-on. ([#18308](https://github.com/QwenLM/qwen-code/pull/18308))
  • Adds a test pinning the embed listener force-close path for upgraded sockets and documents the drain pairing-teardown contract. ([#18275](https://github.com/QwenLM/qwen-code/pull/18275))
  • Updated the submitted-prompt provenance E2E test to expect a single UserPromptSubmit invocation per user message, matching the new hook lifecycle. ([#18363](https://github.com/QwenLM/qwen-code/pull/18363))
  • Fixed a flaky workflow-runner test cleanup race by waiting for run settlement before removing temporary directories. ([#18371](https://github.com/QwenLM/qwen-code/pull/18371))
  • Docker integration runs now report the workspace input-history suite as skipped instead of failing with an empty-suite error. ([#18395](https://github.com/QwenLM/qwen-code/pull/18395))

---
中文摘要
亮点
  • 托管会话现在可在等待工具审批、提问或后台任务时挂起,并在 Harness 崩溃后通过冷恢复继续。 ([#17953](https://github.com/QwenLM/qwen-code/pull/17953), [#18115](https://github.com/QwenLM/qwen-code/pull/18115), [#18164](https://github.com/QwenLM/qwen-code/pull/18164), [#18166](https://github.com/QwenLM/qwen-code/pull/18166), [#18170](https://github.com/QwenLM/qwen-code/pull/18170), [#18187](https://github.com/QwenLM/qwen-code/pull/18187), [#18194](https://github.com/QwenLM/qwen-code/pull/18194), [#18224](https://github.com/QwenLM/qwen-code/pull/18224), [#18236](https://github.com/QwenLM/qwen-code/pull/18236), [#18303](https://github.com/QwenLM/qwen-code/pull/18303))
  • 无头会话和 Ink TUI 现默认在事件总线内核上运行,取消的运行会在 10 秒内结束。 ([#18154](https://github.com/QwenLM/qwen-code/pull/18154), [#18213](https://github.com/QwenLM/qwen-code/pull/18213))
  • 新增 general.displayLanguage 设置(off、zh-CN、en),在 Ink、OpenTUI 和 Web Shell 中显示翻译后的回复和思考,原文仍保留。 ([#18175](https://github.com/QwenLM/qwen-code/pull/18175))
  • Send 不再停止正在运行的 shell 命令,而是将其移到后台继续运行,模型会收到后台 id、输出位置和状态。 ([#17926](https://github.com/QwenLM/qwen-code/pull/17926))
  • Web Shell 使用幂等键提交提示,对瞬时失败静默重试两次,并以消息级重发提示取代阻塞式横幅。 ([#18177](https://github.com/QwenLM/qwen-code/pull/18177))
  • Generated UI 卡片新增 ui.state 视图持久化及 ui.copy 和 ui.download,点击即可通过 Web Shell 复制文本或下载小型文本文件。 ([#17922](https://github.com/QwenLM/qwen-code/pull/17922), [#18158](https://github.com/QwenLM/qwen-code/pull/18158))

托管会话挂起与恢复
Turn 现在可在等待审批、提问或后台任务时挂起,并在 Harness 重启或崩溃后恢复。
  • 将 managed-agent 后台捕获移至 worker,使 Harness 重启不再丢失输出,且存在后台任务的会话可安全挂起。 ([#17953](https://github.com/QwenLM/qwen-code/pull/17953))
  • 空闲的托管会话现在可在可恢复的工具审批 Action 等待决定时挂起,并在批准、取消或模式变更时恢复。 ([#18115](https://github.com/QwenLM/qwen-code/pull/18115))
  • Action parking 现在会说明等待中的 Turn 为何保持驻留,且 parking 与冷恢复共用同一套 Session 形态检查。 ([#18157](https://github.com/QwenLM/qwen-code/pull/18157))
  • 仅含图片或附件的 Prompt 审批等待现在可以 parking,并可通过冷恢复在 Harness 崩溃后继续。 ([#18164](https://github.com/QwenLM/qwen-code/pull/18164))
  • 扩展命令步骤请求的审批等待(例如扩展内的 Shell 命令)现在可以在等待决定时 parking。 ([#18166](https://github.com/QwenLM/qwen-code/pull/18166))
  • 由唤醒启动的 Turn 在等待工具审批时若 Harness 崩溃,现在会在下一个 Harness 上恢复该审批等待,而不是被判定为错误。 ([#18170](https://github.com/QwenLM/qwen-code/pull/18170))
  • 当已验证的后台保持覆盖会话的后台运行时,工具审批等待现在可以挂起,而不再让会话一直驻留到用户做出决定。 ([#18187](https://github.com/QwenLM/qwen-code/pull/18187))
  • 由监控通知、自动化运行、循环触发或子结果等唤醒输入启动的 Turn,现在可在等待工具审批时挂起,并在到期时恢复。 ([#18194](https://github.com/QwenLM/qwen-code/pull/18194))
  • managed-agent: park channel and pr_event Turns' approval waits ([#18203](https://github.com/QwenLM/qwen-code/pull/18203))
  • 子 Session 的 Turn 现在可在等待工具审批或提问时挂起,冷恢复可继续执行,无需全程驻留。 ([#18224](https://github.com/QwenLM/qwen-code/pull/18224))
  • 托管代理现可挂起 Hooks 和 MCP Session 审批等待而不再阻塞,并与 Harness 侧 MCP 方案一同落地。 ([#18236](https://github.com/QwenLM/qwen-code/pull/18236))
  • 防止 parked-MCP 回收任务回收因等待 Action 而暂停 Turn 的 Session 的 MCP owner。 ([#18234](https://github.com/QwenLM/qwen-code/pull/18234))
  • 修复 Managed Agent 在 Harness 准入前取消轮次后的恢复,改为请求会话级证据并在允许时重新检查清理。 ([#18132](https://github.com/QwenLM/qwen-code/pull/18132))
  • managed-agent: advance a crashed wake Turn's await_action wait ([#18172](https://github.com/QwenLM/qwen-code/pull/18172))
  • 未准入的取消现在会结算并保留待执行的运行时清理以便重试,先前已结算轮次的清理义务仍可用。 ([#18212](https://github.com/QwenLM/qwen-code/pull/18212))
  • 版本 0 的公共 Shell 会话现在在两个 Shell 通道上等待审批,公共 Shell 配置允许将 Shell 调用纳入已保存计划。 ([#18303](https://github.com/QwenLM/qwen-code/pull/18303))
  • Managed 会话现在使用共享问题卡片,新增草稿持久化、多行文本和仅提交时阻塞,带来一致的聊天体验。 ([#18273](https://github.com/QwenLM/qwen-code/pull/18273))
  • 实例 metrics 路由现在会报告挂起计数,包括正常挂起、回滚尝试、资格失败和冷启动。 ([#18173](https://github.com/QwenLM/qwen-code/pull/18173))
  • 新增中英文设计文档,说明如何扩大 Action parking 覆盖范围并确认其启动前检查。 ([#18151](https://github.com/QwenLM/qwen-code/pull/18151))
  • 修正 Action parking 设计,将 MCP 回收跳过已 parking 所有者的行为明确归入 S6,而非描述为现有行为。 ([#18186](https://github.com/QwenLM/qwen-code/pull/18186))
  • 记录了带 Hooks 的 Session 上工具审批挂起的设计与启动前检查,无生产代码变更。 ([#18218](https://github.com/QwenLM/qwen-code/pull/18218))
  • 新增 S8a Shell 审批挂起的中英文设计文档,并加入两项启动前检查测试,均已通过。 ([#18279](https://github.com/QwenLM/qwen-code/pull/18279))
  • 新增真实进程 Action 挂起验收测试,覆盖 Allow、Deny、取消、审批模式变更和过期,包括控制平面重启。 ([#18276](https://github.com/QwenLM/qwen-code/pull/18276))
  • 恢复了用于 Action 停放验收的 Workspace 注册,并使审批校验与持久化 Hooks 和 MCP 格式保持一致。 ([#18353](https://github.com/QwenLM/qwen-code/pull/18353))

推理强度与模型路由
为 Gemini 4 模型新增 xhigh 强度,自动推断 Kimi K3 强度,并修复 Gemini 与 DashScope 请求 schema。
  • Gemini 4 Neon 和 Hydrogen 模型现支持 xhigh 推理强度(默认 high),覆盖 Gemini 与 Vertex 路由及带日期、preview 和后缀的别名。 ([#18121](https://github.com/QwenLM/qwen-code/pull/18121))
  • 自定义 OpenAI 兼容网关上的 Kimi K3 模型现自动推断 low/high/max 推理强度,默认 max 并强制思考,无需逐路由声明。 ([#18095](https://github.com/QwenLM/qwen-code/pull/18095))
  • 将文本从 Gemini functionResponse 的嵌套 parts 移入工具响应负载,空 parts 时省略该字段,确保请求符合 Gemini schema。 ([#18220](https://github.com/QwenLM/qwen-code/pull/18220))
  • DashScope 工具 schema 现在对声明了属性的对象层级将省略的 additionalProperties 发送为 true,显式 false 仍保持关闭。 ([#18256](https://github.com/QwenLM/qwen-code/pull/18256))
  • 修复长时间推理会话中的压缩死锁:移除无签名推理块,并在输出被截断时以缩减输入重试。 ([#18209](https://github.com/QwenLM/qwen-code/pull/18209))
  • 在工具调用参数中途停滞的流现在只重试一次而非反复重放,错误信息会说明可能的提供方行为。 ([#18242](https://github.com/QwenLM/qwen-code/pull/18242))
  • ACP 会话可选择在推理和工具调用后重放可重试的传输中断,错误信息现保留底层原因。 ([#18228](https://github.com/QwenLM/qwen-code/pull/18228))
  • 现在能识别“is longer than the model's context length”形式的上下文溢出错误,触发自动压缩而非直接失败。 ([#18176](https://github.com/QwenLM/qwen-code/pull/18176))

Web Shell 与聊天界面
改进共享聊天界面的输入可靠性、设置、历史记录和移动端布局。
  • Web Shell 现在使用幂等键提交提示,对瞬时失败静默重试两次,并以消息级重发提示取代阻塞式横幅。 ([#18177](https://github.com/QwenLM/qwen-code/pull/18177))
  • Generated UI 卡片新增 ui.copy 和 ui.download,点击即可通过 Web Shell 复制文本或下载小型文本文件。 ([#18158](https://github.com/QwenLM/qwen-code/pull/18158))
  • Generated UI 卡片现在可通过 ui.state 持久化视图状态,并提供模型使用指引与验收测试来衡量效果。 ([#17922](https://github.com/QwenLM/qwen-code/pull/17922))
  • 触屏编辑器的编辑栏现在在手机和 iPad 上保持单行紧凑布局,同时保留全部六个编辑控件。 ([#18126](https://github.com/QwenLM/qwen-code/pull/18126))
  • 窄屏触控会话行现在换行显示状态元数据而非遮挡,保持 More 点击区域可用,并在菜单打开时关闭悬停详情。 ([#18092](https://github.com/QwenLM/qwen-code/pull/18092))
  • 修复 iOS Safari 聚焦文本输入框、文本域、可编辑内容和输入框时页面缩放的问题,包括弹窗中的输入框。 ([#17938](https://github.com/QwenLM/qwen-code/pull/17938))
  • Web Shell 中浮动的环境面板现在会停在待回答问题上方并在内部滚动,尺寸变化时更新高度,回答后恢复正常。 ([#18013](https://github.com/QwenLM/qwen-code/pull/18013))
  • 再次点击单任务 composer chip 现在会折叠其任务详情,多任务 chip 仍打开列表,选择行会切换任务。 ([#18128](https://github.com/QwenLM/qwen-code/pull/18128))
  • 修复嵌入式 Web Shell 中审批按钮在延迟加载的 scoped 按钮重置后丢失主题颜色、边框和内边距的问题。 ([#18243](https://github.com/QwenLM/qwen-code/pull/18243))
  • Web Shell 设置面板现在为未设置的布尔项显示 Not set 徽章,首次点击时若存在 schema 的 unsetToggleValue 则写入该值。 ([#18301](https://github.com/QwenLM/qwen-code/pull/18301))
  • Web Shell 现在按工作区将输入提示和 shell 命令历史存储在本地守护进程上,使桌面和移动客户端共享历史记录。 ([#18120](https://github.com/QwenLM/qwen-code/pull/18120))
  • 在斜杠菜单和 /skills 列表中显示简短 Skill 名称,并在详情提示中高亮所属 Extension。 ([#18227](https://github.com/QwenLM/qwen-code/pull/18227))
  • 跳过 Web Shell CSS 中冗余的根作用域守卫,历史记录点击到可见的中位耗时从 1,308 ms 降至 815 ms。 ([#18223](https://github.com/QwenLM/qwen-code/pull/18223))
  • web-shell: scope library CSS with native @scope and remove :has() subtree wildcards ([#18239](https://github.com/QwenLM/qwen-code/pull/18239))
  • 将 transcript 底部跟随合并为布局后的单个 resize observer,在已处于底部时跳过冗余滚动写入。 ([#18180](https://github.com/QwenLM/qwen-code/pull/18180))
  • 共享聊天界面现可渲染并操作实时 Managed 会话,无 daemon 上下文时宿主集成默认关闭。 ([#18246](https://github.com/QwenLM/qwen-code/pull/18246))
  • 新增纯 Managed SessionChatController 适配器核心,将 Managed 能力和会话状态映射到共享聊天模型,支持取消、分页和恢复。 ([#18117](https://github.com/QwenLM/qwen-code/pull/18117))
  • 新增 React 绑定,将 Managed Agent 会话、转录流、审批、提问与取消接入后端无关的聊天控制器;在后续页面切换前不生效。 ([#18205](https://github.com/QwenLM/qwen-code/pull/18205))
  • 为聊天控制器新增更早历史分页状态,并将 ChatSurface 取消错误限定到所属会话和当前轮次。 ([#18091](https://github.com/QwenLM/qwen-code/pull/18091))

钩子与权限
完善钩子生命周期、停止行为、权限规则和警告提示。
  • Stop 或 SubagentStop 钩子返回 continue: false 时现会结束回合,stopReason 文本会在终端、无头和 ACP 会话中显示。 ([#18229](https://github.com/QwenLM/qwen-code/pull/18229))
  • 允许工具调用的 PermissionRequest 钩子现可返回 updatedPermissions 规则,在终端 UI 和 ACP 会话中按 Always allow 方式应用。 ([#18237](https://github.com/QwenLM/qwen-code/pull/18237))
  • UserPromptSubmit 钩子现在每条新用户消息只运行一次,跳过工具结果请求、重试和自动提示,减少延迟和多余上下文。 ([#18266](https://github.com/QwenLM/qwen-code/pull/18266))
  • 无法按原样运行的钩子现在会在会话启动、无头 stderr 及 /hooks 重载后显示警告,并标明来源、事件和位置。 ([#18299](https://github.com/QwenLM/qwen-code/pull/18299))
  • 工具钩子返回 continue: false 时现在会结束本轮,保留批次结果于对话中,并向用户显示停止原因。 ([#18345](https://github.com/QwenLM/qwen-code/pull/18345))

代理运行时与内核
将无头与 Ink 会话迁移到事件总线内核,并改进工具执行、取消和负载处理。
  • 无头会话(-p、stream-json、SDK)现在默认在 event-bus 内核上运行,可通过设置和环境变量关闭;取消的运行会在 10 秒内结束。 ([#18154](https://github.com/QwenLM/qwen-code/pull/18154))
  • Ink TUI 现默认在事件总线内核上运行共享代理循环,按 Esc 取消的回合会在 10 秒内结束。 ([#18213](https://github.com/QwenLM/qwen-code/pull/18213))
  • Send now 不再停止正在运行的 shell 命令,而是将其移到后台继续运行,模型会收到后台 id、输出位置和状态。 ([#17926](https://github.com/QwenLM/qwen-code/pull/17926))
  • cli: refuse new sessions under sustained host load ([#18052](https://github.com/QwenLM/qwen-code/pull/18052))
  • Grep 现在优先使用 PATH 中可用的系统 rg,再回退到内置二进制,避免 macOS 首次启动缓慢;useBuiltinRipgrep 设为 false 时仍仅用系统版本。 ([#17698](https://github.com/QwenLM/qwen-code/pull/17698))
  • 超大会话记录现可在 daemon 加载和重放时正常打开,流式文件上限提升至 1 GiB 并新增内存保护。 ([#18111](https://github.com/QwenLM/qwen-code/pull/18111))
  • 归档会话后,旧记录器无法再重建活动转录或标题,新加载的记录器可正常恢复。 ([#18012](https://github.com/QwenLM/qwen-code/pull/18012))
  • 删除活动工作区会话时现在会等待 recorder 刷新并关闭,超时则保留文件,其他会话继续运行。 ([#17707](https://github.com/QwenLM/qwen-code/pull/17707))
  • 守护进程仪表盘和 /stats 中的 token 用量现在来自按请求的使用账本,按每次响应实际发生的日期归属用量。 ([#17902](https://github.com/QwenLM/qwen-code/pull/17902))
  • 会话切换目录后 MCP 审批现在会保留,已批准的服务器不再显示为断开或需要重新审批。 ([#18262](https://github.com/QwenLM/qwen-code/pull/18262))
  • 当 Harness 声明 hosted-workspace-files/1 时,Java SDK 现在允许为 Hosted Workspace 文件配置发送 lifecycle v2 请求。 ([#18268](https://github.com/QwenLM/qwen-code/pull/18268))
  • Managed Agent Runtime Broker 现使用应用类加载器发现提供者,修复无法看到应用提供者的线程中的查找问题。 ([#18125](https://github.com/QwenLM/qwen-code/pull/18125))
  • 清除所有高危和严重级别的生产依赖审计问题,包括直接升级依赖包及为传递依赖添加 workspace overrides。 ([#18075](https://github.com/QwenLM/qwen-code/pull/18075))

提示与上下文效率
减小提示体积、加快 transcript 加载并改进压缩行为。
  • 精简内联记忆策略和首次请求提示,新会话省略空记忆目录,并删减重复工具示例以减小提示体积。 ([#17789](https://github.com/QwenLM/qwen-code/pull/17789))
  • 创建会话时不再加载已保存的工作流快照或恢复中断的工作流,直到请求工作流历史时才执行;在保存 30 个运行时减少 30 次快照读取。 ([#17896](https://github.com/QwenLM/qwen-code/pull/17896))
  • Summary 压缩后,运行时提示会引导模型查看本地 transcript 获取旧细节,不新增工具也不保留更多历史。 ([#18018](https://github.com/QwenLM/qwen-code/pull/18018))
  • 守护进程现在通过单次有界读取构建 transcript 目录摘要,仅为所选页加载 Goal 元数据,加快侧边栏首页加载。 ([#18146](https://github.com/QwenLM/qwen-code/pull/18146))
  • Serve 现在在一次 prompt 回合内固定 Skills 和扩展,并在同一会话的下一次 prompt 时刷新。 ([#18179](https://github.com/QwenLM/qwen-code/pull/18179))
  • 修正托管 DingTalk witness 测试中两处与代码不符的注释和测试标题,不改变断言、fixture 或生产代码。 ([#18046](https://github.com/QwenLM/qwen-code/pull/18046))
  • 使 transcript 历史文档与已实现的 live-flush 屏障和进程内存活检查保持一致,并在中英文中明确安全边界。 ([#18094](https://github.com/QwenLM/qwen-code/pull/18094))

PR 审查与 CI 安全
为 PR 验证新增硬件隔离执行,并加固 CI 凭据与工作流。
  • verify-pr 现可端到端运行硬件隔离 microVM 轮次,含每轮令牌签发与吊销、模型代理强制及失败关闭式清理。 ([#18221](https://github.com/QwenLM/qwen-code/pull/18221))
  • 无网卡的 /verify-pr microVM 现可接收每轮源码输入、用临时令牌调用主机模型代理,并将产物流式回传。 ([#18277](https://github.com/QwenLM/qwen-code/pull/18277))
  • PR 审查现可在硬件隔离的本地 microVM 中通过带帧的 Unix socket/vsock 桥执行,无需挂载主机目录,并保留失败即关闭的回退。 ([#18280](https://github.com/QwenLM/qwen-code/pull/18280))
  • PR 审查代码执行现采用分级、信任感知的沙箱,高风险变更强制升级,同时保持现有沙箱模式兼容。 ([#18226](https://github.com/QwenLM/qwen-code/pull/18226))
  • 为 /verify-pr 新增分级硬件隔离执行设计,按作者信任度和风险分类 PR,未验证宿主执行则阻止发布。 ([#18181](https://github.com/QwenLM/qwen-code/pull/18181))
  • 在审查与分诊流水线中,fork PR 代码和伪造的批准标记不再能接触 CI 凭据或触发自动批准。 ([#18270](https://github.com/QwenLM/qwen-code/pull/18270))
  • 使 main 失败报告器在缺少 bot PAT 时仍可运行,并阻止测试夹具触发 provider 重连循环。 ([#18238](https://github.com/QwenLM/qwen-code/pull/18238))
  • triage: fall back to GITHUB_TOKEN when bot PATs are absent ([#18282](https://github.com/QwenLM/qwen-code/pull/18282))
  • GitHub 频道现在仅对显式提及 bot 的事件发布公开失败回执,并跳过未提及 bot 的机器账号评论。 ([#18281](https://github.com/QwenLM/qwen-code/pull/18281))
  • 发布工作流检出改用有大小上限的 blob 过滤器,使稀疏检出在操作的 retry 窗口内完成。 ([#18309](https://github.com/QwenLM/qwen-code/pull/18309))
  • 发布工作流现在使用内联 runner 引导而非自仓库 action,避免下载完整仓库归档。 ([#18366](https://github.com/QwenLM/qwen-code/pull/18366))
  • 修复 CI Failure Patrol 的 checkout 失败:保留 Git 配置隔离,同时跳过会尝试锁定 /dev/null 的全局 safe.directory 写入。 ([#18300](https://github.com/QwenLM/qwen-code/pull/18300))
  • CI 现在无需 sudo 即可安装 zip 和 unzip,Linux 单元测试不再因运行器缺少 root 权限而失败。 ([#18343](https://github.com/QwenLM/qwen-code/pull/18343))
  • Managed Agent CI 现仅针对相关变更路径运行 Java 和 daemon 检查,完整测试套件仍在维护者批准和定时计划下运行。 ([#18310](https://github.com/QwenLM/qwen-code/pull/18310))
  • 修复 main 上可复现的 CI 失败,涉及命令 ID、存储校验、负载准入、Windows socket 测试、崩溃恢复和类大小。 ([#18297](https://github.com/QwenLM/qwen-code/pull/18297))
  • capture-tui 现在退出前会跨完整事件循环轮次排空排队信号,修复反复出现的 SIGTERM CI 偶发失败。 ([#18312](https://github.com/QwenLM/qwen-code/pull/18312))
  • 通过将私有 core 导入排除在发布的类型声明之外,修复了 Web Shell 包发布失败的问题。 ([#18377](https://github.com/QwenLM/qwen-code/pull/18377))

SDK、打包与文档
将 Harness 包添加为 workspace,修复 SDK 行为,并更新双语设计文档。
  • 将 Harness CLI、core 和 resource 包添加为 workspace,使其随仓库一起安装、构建和类型检查。 ([#18314](https://github.com/QwenLM/qwen-code/pull/18314))
  • 在 Mods 指南中新增完整的 zh-display 示例 Mod,在 Ink、OpenTUI 和 Web Shell 中以简体中文显示模型回复和思考内容。 ([#18150](https://github.com/QwenLM/qwen-code/pull/18150))
  • 新增 general.displayLanguage 设置(off、zh-CN、en),在 Ink、OpenTUI 和 Web Shell 中显示翻译后的回复和思考,原文仍保留。 ([#18175](https://github.com/QwenLM/qwen-code/pull/18175))
  • 更新中英文侧边栏后台任务设计文档以匹配运行中绿色状态,并新增样式测试固定运行色覆盖优先级。 ([#18105](https://github.com/QwenLM/qwen-code/pull/18105))
  • 仅测试与文档的后续改动:同步侧边栏后台工作指示器的双语设计文档,并固定悬停与圆点的优先级规则,无生产代码变更。 ([#18093](https://github.com/QwenLM/qwen-code/pull/18093))
  • 更新移动端后续建议设计文档,标记该功能已实现并合并到 main,不涉及产品行为变更。 ([#18103](https://github.com/QwenLM/qwen-code/pull/18103))
  • 将 /artifacts 页面注册为预认证路由以便刷新返回 Web Shell 且 API 仍需认证,并新增过期跳转与间隔保护。 ([#18102](https://github.com/QwenLM/qwen-code/pull/18102))
  • 在 AGENTS.md 中新增 Disposable background services 规则,为会话期间启动的临时 mysqld、代理和工作进程提供四条具体规则。 ([#18168](https://github.com/QwenLM/qwen-code/pull/18168))
  • 将一次性 MySQL 流程移入 managed-agent-server 模块文档,根指令中仅保留简短的通用规则。 ([#18183](https://github.com/QwenLM/qwen-code/pull/18183))
  • 文档现将 GitHub 注册身份键控设计标记为已合并,并记录合并验证与后续跟进事项。 ([#17923](https://github.com/QwenLM/qwen-code/pull/17923))
  • Hosted Harness Session 实现已拆分为 16 个按职责划分的模块,同时保留 HTTP 契约和路由注册顺序。 ([#18290](https://github.com/QwenLM/qwen-code/pull/18290))
  • 将 Hosted Harness Session 测试套件拆分为 33 个可独立运行的文件,并保留全部 905 个现有测试用例。 ([#18216](https://github.com/QwenLM/qwen-code/pull/18216))
  • Managed agent 身份列改用有界 VARCHAR 和规范引用而非哈希值,修复 SDK Java 测试中 actor ID 长度校验失败的问题。 ([#18058](https://github.com/QwenLM/qwen-code/pull/18058))
  • 通过统一 VARCHAR 类型和宽度,恢复 MySQL 上多个身份关联的索引使用,改善身份去哈希后的查询性能。 ([#18190](https://github.com/QwenLM/qwen-code/pull/18190))
  • MySQL 集成测试现在验证恢复查询同时使用 target ID 和 revision,取消证据在探测 Turn key 时使用 Turn ID。 ([#18211](https://github.com/QwenLM/qwen-code/pull/18211))

其他变更
  • 将工具发布对象键构造提取为共享组件并降低体积上限,不改变 SQL 标识、对象布局或校验逻辑。 ([#18083](https://github.com/QwenLM/qwen-code/pull/18083))
  • 通过轻量 web-templates 副本和异步操作加速 HTML 导出格式化测试,修复 Linux 分片反复失败并保留全部断言。 ([#18104](https://github.com/QwenLM/qwen-code/pull/18104))
  • 一次性清理退役 Kubernetes Harness 部署模板并移除归档的 CSI 残留,不影响用户可见行为。 ([#18118](https://github.com/QwenLM/qwen-code/pull/18118))
  • 修复三个已确认的审计问题:校验客户端资源 ID 为单一路径段、会话接管前增加租户范围预检查、修复测试辅助函数的 drain 等待。 ([#18110](https://github.com/QwenLM/qwen-code/pull/18110))
  • 移除参考构建中不可达的辅助工具下载回退,并为旧版 SDK 源码检出下载的辅助工具增加有界清理。 ([#18101](https://github.com/QwenLM/qwen-code/pull/18101))
  • 会话的 Change Overview 现在按最新绑定优先列出关联 PR,最新交付紧跟在 Uncommitted 之后显示。 ([#18134](https://github.com/QwenLM/qwen-code/pull/18134))
  • 修复失败的 actor 准入测试,使其符合 UTF-16 VARCHAR(36) 身份上限;准入逻辑本身不变。 ([#18195](https://github.com/QwenLM/qwen-code/pull/18195))
  • 仅测试变更:monitor-wake 恢复用例现在等待恢复的 Turn 释放 Session 后再关闭,避免 409 失败。 ([#18233](https://github.com/QwenLM/qwen-code/pull/18233))
  • 新增测试确认 Shell 执行支持先准备后派发及重放语义,并固定现有 Shell 暂停行为。 ([#18231](https://github.com/QwenLM/qwen-code/pull/18231))
  • 运行时工具结果诊断元数据现跨传输与持久化使用具名类型化封装,并附中英文设计文档。 ([#18278](https://github.com/QwenLM/qwen-code/pull/18278))
  • test(triage): supply HASBOTPAT in re-run workflow fixtures ([#18328](https://github.com/QwenLM/qwen-code/pull/18328))
  • Managed Agent Server 生产代码改用 Java 导入和短类型名,Harness SDK 适配器保留一个限定名。 ([#18325](https://github.com/QwenLM/qwen-code/pull/18325))
  • Managed Agent 的 JSON 结构改用显式类型字段,同时保持现有载荷、数据库表示和摘要输入不变。 ([#18267](https://github.com/QwenLM/qwen-code/pull/18267))
  • 在 scheduled-tasks 重排测试中固定时钟,使其不再因 CI 运行时间而失败,并移除重复的测试夹具键。 ([#18315](https://github.com/QwenLM/qwen-code/pull/18315))
  • 加强 Maven 缓存辅助脚本的失败测试覆盖,区分真正的权限拒绝与不确定的探测,并保留清理警告和进程状态。 ([#18143](https://github.com/QwenLM/qwen-code/pull/18143))
  • 守护进程 E2E 夹具现在在禁用主机负载准入闸门的情况下启动,与现有夹具一致;生产行为仍默认开启。 ([#18308](https://github.com/QwenLM/qwen-code/pull/18308))
  • 新增测试固定升级套接字下嵌入监听器的强制关闭路径,并记录 drain 配对拆除约定。 ([#18275](https://github.com/QwenLM/qwen-code/pull/18275))
  • 更新了提交提示来源的 E2E 测试,改为每个用户消息只期望一次 UserPromptSubmit 调用,以匹配新的 hook 生命周期。 ([#18363](https://github.com/QwenLM/qwen-code/pull/18363))
  • 修复了 workflow-runner 测试清理中的不稳定竞态,在删除临时目录前先等待运行结束。 ([#18371](https://github.com/QwenLM/qwen-code/pull/18371))
  • Docker 集成运行现在将 workspace input-history 测试套件标记为跳过,而不再因空套件报错失败。 ([#18395](https://github.com/QwenLM/qwen-code/pull/18395))

<details><summary>Complete Change List (128 pull requests)</summary>
Features
  • managed-agent: runtime-owned background observation with suspend-safe staging and drain (Phase 3b) ([#17953](https://github.com/QwenLM/qwen-code/pull/17953)) by @doudouOUC
  • web-shell: bind transcript history pagination facts and scope ChatSurface cancel errors to the owning session ([#18091](https://github.com/QwenLM/qwen-code/pull/18091)) by @wenshao
  • core: infer reasoning defaults for Kimi K3 routes ([#18095](https://github.com/QwenLM/qwen-code/pull/18095)) by @wenshao
  • managed-agent: park recoverable Action waits behind a sealed certificate (Phase 4) ([#18115](https://github.com/QwenLM/qwen-code/pull/18115)) by @doudouOUC
  • generated-ui: teach cards to keep their state with ui.state ([#17922](https://github.com/QwenLM/qwen-code/pull/17922)) by @qqqys
  • core: run headless sessions on the event-bus kernel by default ([#18154](https://github.com/QwenLM/qwen-code/pull/18154)) by @qqqys
  • acp: move running shells to the background when queued input is sent now ([#17926](https://github.com/QwenLM/qwen-code/pull/17926)) by @qqqys
  • managed-agent: name why a waiting Turn cannot park ([#18157](https://github.com/QwenLM/qwen-code/pull/18157)) by @doudouOUC
  • managed-agent: report suspension counts on the instance metrics route ([#18173](https://github.com/QwenLM/qwen-code/pull/18173)) by @doudouOUC
  • web-shell: keep touch composer editing bar single-row across phone and iPad ([#18126](https://github.com/QwenLM/qwen-code/pull/18126)) by @wenshao
  • managed-agent: park and recover image-only approval waits ([#18164](https://github.com/QwenLM/qwen-code/pull/18164)) by @doudouOUC
  • managed-agent: park extension command-step approval waits ([#18166](https://github.com/QwenLM/qwen-code/pull/18166)) by @doudouOUC
  • managed-agent: park an approval wait beside a certified background hold ([#18187](https://github.com/QwenLM/qwen-code/pull/18187)) by @doudouOUC
  • managed-agent: park a wake-started Turn's approval wait ([#18194](https://github.com/QwenLM/qwen-code/pull/18194)) by @doudouOUC
  • web-shell: add pure Managed SessionChatController adapter core (slice 3a) ([#18117](https://github.com/QwenLM/qwen-code/pull/18117)) by @wenshao
  • managed-agent: park channel and pr_event Turns' approval waits ([#18203](https://github.com/QwenLM/qwen-code/pull/18203)) by @doudouOUC
  • core: point the compacted summary at its local transcript ([#18018](https://github.com/QwenLM/qwen-code/pull/18018)) by @callmeYe
  • managed-agent: park a child Session's approval wait ([#18224](https://github.com/QwenLM/qwen-code/pull/18224)) by @doudouOUC
  • web-shell: idempotent prompt auto-retry and message-level resend ([#18177](https://github.com/QwenLM/qwen-code/pull/18177)) by @callmeYe
  • generated-ui: let a click copy or download through the host ([#18158](https://github.com/QwenLM/qwen-code/pull/18158)) by @qqqys
  • web-shell: bind Managed provider to SessionChatController (slice 3b) ([#18205](https://github.com/QwenLM/qwen-code/pull/18205)) by @wenshao
  • managed-agent: park Hooks and MCP Session approval waits ([#18236](https://github.com/QwenLM/qwen-code/pull/18236)) by @doudouOUC
  • cli: add built-in display translation for replies and thoughts ([#18175](https://github.com/QwenLM/qwen-code/pull/18175)) by @qqqys
  • cli: refuse new sessions under sustained host load ([#18052](https://github.com/QwenLM/qwen-code/pull/18052)) by @wenshao
  • core: run the Ink TUI on the event-bus kernel by default ([#18213](https://github.com/QwenLM/qwen-code/pull/18213)) by @qqqys
  • web-shell: ready ChatSurface for Managed hosts (slice 3c.1) ([#18246](https://github.com/QwenLM/qwen-code/pull/18246)) by @wenshao
  • verify-pr: add executable hardware microVM round orchestrator and token-revoked model proxy ([#18221](https://github.com/QwenLM/qwen-code/pull/18221)) by @wenshao
  • serve: pin Skills and extensions for a turn and refresh them on the next prompt ([#18179](https://github.com/QwenLM/qwen-code/pull/18179)) by @chiga0
  • managed-agent: park Shell approvals on version-0 public Shell Sessions (S8a) ([#18303](https://github.com/QwenLM/qwen-code/pull/18303)) by @doudouOUC
  • harness: import the Harness cli, core and resource packages ([#18314](https://github.com/QwenLM/qwen-code/pull/18314)) by @sorrycc
  • verify-pr: add NIC-less microVM vsock input channel and model proxy bridge ([#18277](https://github.com/QwenLM/qwen-code/pull/18277)) by @wenshao
  • web-shell: unify Managed question card onto shared AskUserQuestion (slice 3c.2) ([#18273](https://github.com/QwenLM/qwen-code/pull/18273)) by @wenshao
  • serve,web-shell: share workspace input history across devices ([#18120](https://github.com/QwenLM/qwen-code/pull/18120)) by @wenshao

Bug Fixes
  • managed-agent: extract publication object key construction ([#18083](https://github.com/QwenLM/qwen-code/pull/18083)) by @wenshao
  • managed-agent: close three confirmed post-merge observation audit findings ([#18110](https://github.com/QwenLM/qwen-code/pull/18110)) by @doudouOUC
  • core: support xhigh reasoning effort for Gemini 4 Neon and Hydrogen ([#18121](https://github.com/QwenLM/qwen-code/pull/18121)) by @wenshao
  • ci: clean up Maven seed helper downloads ([#18101](https://github.com/QwenLM/qwen-code/pull/18101)) by @wenshao
  • managed-agent: Discover runtime providers with the application loader ([#18125](https://github.com/QwenLM/qwen-code/pull/18125)) by @doudouOUC
  • managed-agent: Use session recovery after unadmitted cancellation ([#18132](https://github.com/QwenLM/qwen-code/pull/18132)) by @doudouOUC
  • web-shell: order Change Overview PRs by newest binding ([#18134](https://github.com/QwenLM/qwen-code/pull/18134)) by @wenshao
  • core: prefer a healthy system rg over the bundled binary ([#17698](https://github.com/QwenLM/qwen-code/pull/17698)) by @callmeYe
  • web-shell: prevent narrow actions from covering metadata ([#18092](https://github.com/QwenLM/qwen-code/pull/18092)) by @wenshao
  • web-shell: keep the environment panel reachable above pending questions ([#18013](https://github.com/QwenLM/qwen-code/pull/18013)) by @callmeYe
  • managed-agent: advance a crashed wake Turn's await_action wait ([#18172](https://github.com/QwenLM/qwen-code/pull/18172)) by @doudouOUC
  • web-shell: prevent iOS focus zoom in portaled inputs ([#17938](https://github.com/QwenLM/qwen-code/pull/17938)) by @callmeYe
  • managed-agent: resume a wake Turn's approval wait after a Harness crash ([#18170](https://github.com/QwenLM/qwen-code/pull/18170)) by @doudouOUC
  • managed-agent: align actor admission test with the UTF-16 VARCHAR(36) cap ([#18195](https://github.com/QwenLM/qwen-code/pull/18195)) by @doudouOUC
  • web-shell: allow composer task chips to collapse on repeat click ([#18128](https://github.com/QwenLM/qwen-code/pull/18128)) by @wenshao
  • serve: isolate session deletion from sibling sessions ([#17707](https://github.com/QwenLM/qwen-code/pull/17707)) by @callmeYe
  • core: recognize Kimi longer-than-context-length overflow errors ([#18176](https://github.com/QwenLM/qwen-code/pull/18176)) by @wenshao
  • managed-agent: Settle unadmitted cancellations with owed cleanup ([#18212](https://github.com/QwenLM/qwen-code/pull/18212)) by @doudouOUC
  • core: keep text out of Gemini functionResponse.parts ([#18220](https://github.com/QwenLM/qwen-code/pull/18220)) by @wenshao
  • web-shell: preserve approval button styling in embeds ([#18243](https://github.com/QwenLM/qwen-code/pull/18243)) by @callmeYe
  • managed-agent: keep an Action-parked Session's MCP owner from reclamation ([#18234](https://github.com/QwenLM/qwen-code/pull/18234)) by @doudouOUC
  • deps: clear the current high-and-critical prod audit findings ([#18075](https://github.com/QwenLM/qw

Installation

curl -qL https://www.npmjs.com/install.sh | sh
npm install -g @qwen-code/qwen-code@latest
brew install qwen-code
$ tail ./comments.log

Comments (0)

Login with GitHub to post a comment
No comments yet. Be the first to comment!