Skip to content

Commit 25aae9f

Browse files
committed
test: align ChatView browser running fixture
1 parent 3dd7b59 commit 25aae9f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/web/src/components/ChatView.browser.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
type ProjectId,
1010
type ServerConfig,
1111
type ThreadId,
12+
type TurnId,
1213
type WsWelcomePayload,
1314
WS_CHANNELS,
1415
WS_METHODS,
@@ -193,6 +194,7 @@ function createSnapshotForTargetUser(options: {
193194
targetText: string;
194195
targetAttachmentCount?: number;
195196
sessionStatus?: OrchestrationSessionStatus;
197+
activeTurnId?: TurnId | null;
196198
}): OrchestrationReadModel {
197199
const messages: Array<OrchestrationReadModel["threads"][number]["messages"][number]> = [];
198200

@@ -266,7 +268,7 @@ function createSnapshotForTargetUser(options: {
266268
status: options.sessionStatus ?? "ready",
267269
providerName: "codex",
268270
runtimeMode: "full-access",
269-
activeTurnId: null,
271+
activeTurnId: options.activeTurnId ?? null,
270272
lastError: null,
271273
updatedAt: NOW_ISO,
272274
},
@@ -1546,6 +1548,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
15461548
targetMessageId: "msg-user-stop-button-cursor" as MessageId,
15471549
targetText: "stop button cursor target",
15481550
sessionStatus: "running",
1551+
activeTurnId: "turn-stop-button-cursor" as TurnId,
15491552
}),
15501553
});
15511554

0 commit comments

Comments
 (0)