@devries-cameron20 / t3code Mirror · read-only / commits / 23c18fda7a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 20:15 UTC

fix(web): keep composer editable while disconnected (#4241)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Theo Browne committed Jul 21, 2026 at 14:29 UTC 23c18fda7a969634a30888e36b2da45f6d66a83b
1 file changed +8 -12
apps/web/src/components/chat/ChatComposer.tsx
+8 -12
@@ -1159,6 +1159,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
1159 isSendBusy ||
1160 isConnecting ||
1161 projectSelectionRequired ||
1162 + environmentUnavailable !== null ||
1163 !composerSendState.hasSendableContent;
1164 const collapsedComposerPrimaryActionLabel = "Send message";
1165 const showMobilePendingAnswerActions =
@@ -1697,7 +1698,9 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
1698
1699 const shouldBlurMobileComposerOnSubmit = useCallback(() => {
1700 if (!isMobileViewport) return false;
1700 - if (isSendBusy || isConnecting || phase === "running") return false;
1701 + if (isSendBusy || isConnecting || environmentUnavailable !== null || phase === "running") {
1702 + return false;
1703 + }
1704 if (activePendingProgress) {
1705 return activePendingProgress.isLastQuestion && Boolean(activePendingResolvedAnswers);
1706 }
@@ -1706,6 +1709,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
1709 activePendingProgress,
1710 activePendingResolvedAnswers,
1711 composerSendState.hasSendableContent,
1712 + environmentUnavailable,
1713 isConnecting,
1714 isMobileViewport,
1715 isSendBusy,
@@ -1892,8 +1896,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
1896 isConnecting ||
1897 isComposerApprovalState ||
1898 pendingUserInputs.length > 0 ||
1895 - projectSelectionRequired ||
1896 - (environmentUnavailable !== null && activePendingProgress === null)
1899 + projectSelectionRequired
1900 ) {
1901 return false;
1902 }
@@ -2101,8 +2104,6 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
2104 isComposerApprovalState,
2105 pendingUserInputs.length,
2106 projectSelectionRequired,
2104 - environmentUnavailable,
2105 - activePendingProgress,
2107 applyPromptReplacement,
2108 isComposerModelPickerOpen,
2109 readComposerSnapshot,
@@ -2144,7 +2145,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
2145 className={cn(
2146 "chat-composer-glass rounded-[20px] border transition-[background-color] duration-200 has-focus-visible:border-ring/45",
2147 isDragOverComposer ? "border-primary/70 bg-accent/45" : "border-border",
2147 - environmentUnavailable || projectSelectionRequired ? "opacity-75" : null,
2148 + projectSelectionRequired ? "opacity-75" : null,
2149 composerProviderState.composerSurfaceClassName,
2150 )}
2151 onFocusCapture={(event) => {
@@ -2502,12 +2503,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
2503 ? "Ask for follow-up changes or attach images"
2504 : "Ask anything, @tag files/folders, $use skills, or / for commands"
2505 }
2505 - disabled={
2506 - isConnecting ||
2507 - isComposerApprovalState ||
2508 - projectSelectionRequired ||
2509 - (environmentUnavailable !== null && activePendingProgress === null)
2510 - }
2506 + disabled={isConnecting || isComposerApprovalState || projectSelectionRequired}
2507 />
2508 {showMobilePendingAnswerActions ? (
2509 <div