From b00c1115ffb43f20d782caf25ccca2385d11ce94 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 10 Jun 2026 08:05:24 +0000 Subject: [PATCH] fix: allow type-to-focus to insert text during pending user input prompts Remove the blanket pendingUserInputs.length > 0 guard from insertTextAtEnd. The downstream applyPromptReplacement already handles the pending-question path correctly by routing through onChangeActivePendingUserInputCustomAnswer, so the guard was unnecessarily blocking custom free-text answers from being started via global keystrokes. --- apps/web/src/components/chat/ChatComposer.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index 8d89ccdd39..182d0a234b 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -1894,7 +1894,6 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) text.length === 0 || isConnecting || isComposerApprovalState || - pendingUserInputs.length > 0 || (environmentUnavailable !== null && activePendingProgress === null) ) { return false; @@ -1988,7 +1987,6 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) composerTerminalContextsRef, isConnecting, isComposerApprovalState, - pendingUserInputs.length, environmentUnavailable, activePendingProgress, applyPromptReplacement,