Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): show working state while provider sessions start #23590

Mergedonly21mil(GitHub profile, opens in a new tab)merged 10 commits intomain fromrefs/pull/23590/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 47 additions and 2 deletions.

x
0 of 3 viewed, 3 left
24 additions and 0 deletionsapps/web/src/components/ChatView.logic.test.tsModified
View file
@@ -4,6 +4,7 @@
buildExpiredTerminalContextToastCopy,
mergeDirectPreviewAnnotation,
planComposerTurn,
+ deriveTimelineWorking,
snapshotComposerSend,
withMessageContext,
deriveAvailableRevertTurnCounts,
@@ -45,6 +46,7 @@
import { environmentThreadDetails } from "../state/threads";
​
import type { Thread } from "../types";
+import { derivePhase } from "../session-logic";
import { makeThreadFixture, makeThreadProjectionFixture } from "../test-fixtures";
import {
getAntigravitySendBlockReason,
@@ -1129,6 +1131,28 @@
+describe("deriveTimelineWorking", () => {
+ it.each(["preparing", "starting", "queued"] as const)(
+ "restores activity from a persisted %s session without a local send",
+ (status) => {
+ const state = {
+ phase: derivePhase({ ...readySession, status }),
+ isSendBusy: false,
+ isCompacting: false,