fix: PromptInput 在 local-jsx 命令激活时跳过键盘处理

PromptInput 的 useInput 没有 isLocalJSXCommandActive 检查,
导致所有键盘事件被 PromptInput 消费,local-jsx 命令面板
(如 /pokemon-battle)无法接收输入。新增该检查。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-22 08:58:56 +08:00
parent af0a7054c7
commit 1b777a25ac

View File

@@ -2242,7 +2242,8 @@ function PromptInput({
showTeamsDialog || showTeamsDialog ||
showQuickOpen || showQuickOpen ||
showGlobalSearch || showGlobalSearch ||
showHistoryPicker showHistoryPicker ||
isLocalJSXCommandActive
) { ) {
return return
} }