fix(webui): preserve session caches during history revalidation (#6636)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-12 16:08:48 +08:00
1 parent 1046a37be1
commit 0ce10533d3
7 files changed
+68 -43

No files matched your search

+3 -3
View File
@@ -3263,7 +3263,7 @@ describe("ThreadShell", () => {
);
});
it("recovers an uncommitted reset lineage on the next canonical hydrate", async () => {
it("adopts a disjoint latest window immediately when returning to a cached session", async () => {
const client = makeClient();
let chatACalls = 0;
vi.stubGlobal(
@@ -3309,8 +3309,8 @@ describe("ThreadShell", () => {
rerender(view("lineage-chat-a"));
await waitFor(() => expect(chatACalls).toBe(2));
expect(screen.getByText("committed old lineage")).toBeInTheDocument();
expect(screen.queryByText("disjoint new lineage")).not.toBeInTheDocument();
expect(await screen.findByText("disjoint new lineage")).toBeInTheDocument();
expect(screen.queryByText("committed old lineage")).not.toBeInTheDocument();
act(() => client._emitSessionUpdate("lineage-chat-a", "thread"));