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:
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,
|
||||
|
||||
Reference in new issue
Block a user