Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): delay transient reconnect warnings #5670

Mergedt3-code-bot[bot](GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5670/headmerged by maria-rcks View on GitHub

Showing 3 changed files with 77 additions and 2 deletions.

x
0 of 3 viewed, 3 left
40 additions and 1 deletionapps/web/src/components/ChatView.logic.test.tsModified
View file
@@ -6,7 +6,7 @@
ThreadId,
TurnId,
} from "@t3tools/contracts";
-import { describe, expect, it } from "vite-plus/test";
+import { afterEach, describe, expect, it, vi } from "vite-plus/test";
​
import type { Thread, ThreadShell } from "../types";
import {
@@ -19,13 +19,16 @@
createLocalDispatchSnapshot,
deriveComposerSendState,
dismissBranchMismatchForSession,
+ ENVIRONMENT_RECONNECT_WARNING_GRACE_MS,
getStartedThreadModelChangeBlockReason,
+ hasEnvironmentReconnectWarningGraceElapsed,
hasServerAcknowledgedLocalDispatch,
isBranchMismatchDismissedForSession,
reconcileMountedTerminalThreadIds,
reconcileRetainedMountedThreadIds,
resolveThreadMetadataUpdateForNextTurn,
resolveSendEnvMode,
+ scheduleEnvironmentReconnectWarning,
startNewThreadForProject,
shouldShowBranchMismatchBanner,
shouldWriteThreadErrorToCurrentServerThread,
@@ -36,6 +39,42 @@
const threadId = ThreadId.make("thread-1");