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.
This commit is contained in:
Cursor Agent committed 2026-06-10 08:05:24 +00:00
1 parent 4ad961da2f
commit b00c1115ff
1 file changed
-2
@@ -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,