From 1b777a25ace054dba61c5ed3237f65510da978e3 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Wed, 22 Apr 2026 08:58:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PromptInput=20=E5=9C=A8=20local-jsx=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=BF=80=E6=B4=BB=E6=97=B6=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E9=94=AE=E7=9B=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PromptInput 的 useInput 没有 isLocalJSXCommandActive 检查, 导致所有键盘事件被 PromptInput 消费,local-jsx 命令面板 (如 /pokemon-battle)无法接收输入。新增该检查。 Co-Authored-By: Claude Opus 4.6 --- src/components/PromptInput/PromptInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/PromptInput/PromptInput.tsx b/src/components/PromptInput/PromptInput.tsx index 03b627602..b57345187 100644 --- a/src/components/PromptInput/PromptInput.tsx +++ b/src/components/PromptInput/PromptInput.tsx @@ -2242,7 +2242,8 @@ function PromptInput({ showTeamsDialog || showQuickOpen || showGlobalSearch || - showHistoryPicker + showHistoryPicker || + isLocalJSXCommandActive ) { return }