Skip to content

Commit fb722be

Browse files
committed
Fix: allow typing in pending user input when environment is temporarily unavailable
The disabled condition on the composer textarea unconditionally disabled input when environmentUnavailable was set, even when a pending user input was active. This prevented users from typing custom answers during brief disconnects, even though those answers are queued locally. Now the environmentUnavailable check is skipped when activePendingProgress is present, matching the placeholder logic's priority order.
1 parent ef679d3 commit fb722be

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/web/src/components/chat/ChatComposer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,9 @@ export const ChatComposer = memo(
19891989
: "Ask anything, @tag files/folders, or use / to show available commands"
19901990
}
19911991
disabled={
1992-
isConnecting || isComposerApprovalState || environmentUnavailable !== null
1992+
isConnecting ||
1993+
isComposerApprovalState ||
1994+
(environmentUnavailable !== null && activePendingProgress === null)
19931995
}
19941996
/>
19951997
</div>

0 commit comments

Comments
 (0)