mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
* 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> |
||
|---|---|---|
| .. | ||
| src | ||
| index.ts | ||
| package.json | ||
| test-setup.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||