@devries-cameron20 / t3code Mirror · read-only / commits / 33aa461478
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 23, 08:00 UTC

fix(web): every reconnect gets its own grace period before the unavailable banner (#20441)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 18:16 UTC 33aa4614783e856977a5f0b856dc65ebc1ce6794
1 file changed +9
apps/web/src/components/ChatView.tsx
+9
@@ -1943,6 +1943,15 @@ export default function ChatView(props: ChatViewProps) {
1943 : null;
1944 const [reconnectWarningGraceElapsedEnvironmentId, setReconnectWarningGraceElapsedEnvironmentId] =
1945 useState<EnvironmentId | null>(null);
1946 + // Each reconnect attempt gets its own grace period, including a later one to
1947 + // the same environment.
1948 + const [graceReconnectingEnvironmentId, setGraceReconnectingEnvironmentId] = useState(
1949 + activeReconnectingEnvironmentId,
1950 + );
1951 + if (graceReconnectingEnvironmentId !== activeReconnectingEnvironmentId) {
1952 + setGraceReconnectingEnvironmentId(activeReconnectingEnvironmentId);
1953 + setReconnectWarningGraceElapsedEnvironmentId(null);
1954 + }
1955 const reconnectWarningGraceElapsed = hasEnvironmentReconnectWarningGraceElapsed(
1956 activeReconnectingEnvironmentId,
1957 reconnectWarningGraceElapsedEnvironmentId,