qwen-code/packages
pikachu 3e8b3c688f
fix(cli): serialize subagent confirmation focus to prevent concurrent input conflicts (#2930)
* fix: serialize subagent confirmation focus to prevent concurrent input conflicts

When multiple subagents run in parallel and each triggers a confirmation
prompt, all prompts previously received keyboard focus simultaneously,
causing a single keypress to be dispatched to every active confirmation.

This change introduces a first-come-first-served focus lock mechanism:
- Track subagents with pending confirmations via a type guard
- Use a useRef-based lock so only one confirmation is focused at a time
- Automatically promote focus to the next pending subagent on resolution
- Show a waiting indicator on non-focused confirmations

Fixes #2929

* fix(cli): use dedicated prop for subagent approval waiting state

---------

Co-authored-by: 思晗 <housihan.hsh@alibaba-inc.com>
2026-04-09 14:24:59 +08:00
..
channels fix(release): run release:version 0.14.2 to sync all package versions (#3026) 2026-04-08 21:33:40 +08:00
cli fix(cli): serialize subagent confirmation focus to prevent concurrent input conflicts (#2930) 2026-04-09 14:24:59 +08:00
core feat: add wasm build config (#2985) 2026-04-09 14:21:00 +08:00
sdk-java feat: simplify subagent model configuration with model selector 2026-03-27 11:49:45 +08:00
sdk-typescript Merge pull request #2698 from QwenLM/refactor/subagent-model-selection 2026-04-01 16:17:54 +08:00
test-utils fix(release): run release:version 0.14.2 to sync all package versions (#3026) 2026-04-08 21:33:40 +08:00
vscode-ide-companion feat: add wasm build config (#2985) 2026-04-09 14:21:00 +08:00
web-templates fix(release): run release:version 0.14.2 to sync all package versions (#3026) 2026-04-08 21:33:40 +08:00
webui fix(webui): fix chat input scrollbar not draggable in VS Code plugin (#2883) (#3038) 2026-04-09 10:53:39 +08:00
zed-extension chore(zed-extension): update package version to 0.10.0 2026-02-06 14:26:01 +08:00