qwen-code/packages
jinye ce803df22c
fix(acp-bridge): make detachClient idempotent via per-clientId attach-ref ledger (#7386)
* fix(acp-bridge): make detachClient idempotent via per-clientId attach-ref ledger

detachClient unconditionally decremented attachCount regardless of whether the detach actually released an attach reference. Duplicate detaches, unknown or anonymous clientIds, and a spawn owner detaching with its own clientId all stole another attacher's count, letting spawnOwnerWantedKill or close-on-last-detach kill a session that still had live clients.

* test(acp-bridge): make duplicate-detach case detect count theft under a live attacher

Mutation testing showed the original case also passed on the pre-fix code: with a single attacher the attachCount floor guard masked the double decrement. Add a second attacher so a stolen ref becomes observable through the owner's requireZeroAttaches kill.
2026-07-21 04:51:55 +00:00
..
acp-bridge fix(acp-bridge): make detachClient idempotent via per-clientId attach-ref ledger (#7386) 2026-07-21 04:51:55 +00:00
audio-capture chore(release): v0.20.0 (#7211) 2026-07-19 07:35:40 +00:00
channels fix(dingtalk): retry transient emotion failures (#7329) 2026-07-20 18:14:11 +00:00
chrome-extension chore(release): v0.20.0 (#7211) 2026-07-19 07:35:40 +00:00
cli fix(cli): show worktree branch in status line instead of workspace branch (#7367) 2026-07-21 04:38:12 +00:00
core fix(core): hide interaction tools in plain headless mode (#7285) 2026-07-21 04:19:41 +00:00
cua-driver docs(cua-driver): fix broken relative-coordinate design link (#7130) 2026-07-17 21:57:38 +00:00
desktop feat(core): improve subagent delegation defaults and guardrails (#7048) 2026-07-18 08:52:48 +00:00
mobile-mcp fix(mobile-mcp): restore UI dump bounds (#7321) 2026-07-20 09:02:26 +00:00
sdk-java fix(sdk-java): correct TIMEOUT_30_MINUTES to 30 minutes (#7188) 2026-07-18 22:36:22 +00:00
sdk-python fix(config): reject fractional session and tool-call limits (#6920) 2026-07-15 04:56:52 +00:00
sdk-typescript feat: support workspace display names (#7179) 2026-07-20 15:16:44 +00:00
vscode-ide-companion chore(release): v0.20.0 (#7211) 2026-07-19 07:35:40 +00:00
web-shell fix(cli): show worktree branch in status line instead of workspace branch (#7367) 2026-07-21 04:38:12 +00:00
web-templates chore(release): v0.20.0 (#7211) 2026-07-19 07:35:40 +00:00
webui feat: support workspace display names (#7179) 2026-07-20 15:16:44 +00:00
zed-extension chore(deps): upgrade ink 6.2.3 → 7.0.2 + bump Node engine to 22 (#3860) 2026-05-11 17:29:50 +08:00