fix(ui): clean archived session state reads

This commit is contained in:
Vincent Koc
2026-05-04 00:36:17 -07:00
parent f2e7f33d69
commit 87e3b1a241

View File

@@ -770,6 +770,7 @@ describe("switchChatSession", () => {
chatQueue: [{ id: "queued", text: "message B", createdAt: 1 }],
chatQueueBySession: {},
chatRunId: "run-1",
sessionsShowArchived: false,
chatSideResultTerminalRuns: new Set(["btw-run-1"]),
chatStreamStartedAt: 1,
sessionsShowArchived: false,
@@ -835,6 +836,7 @@ describe("switchChatSession", () => {
chatQueue: [{ id: "queued-1", text: "message B", createdAt: 1 }],
chatQueueBySession: {},
chatRunId: "run-1",
sessionsShowArchived: false,
chatSideResultTerminalRuns: new Set<string>(),
chatStreamStartedAt: 1,
settings,
@@ -879,6 +881,7 @@ describe("switchChatSession", () => {
chatQueue: [],
chatQueueBySession: {},
chatRunId: null,
sessionsShowArchived: false,
chatSideResultTerminalRuns: new Set<string>(),
chatStreamStartedAt: null,
settings,