Skip to content

Commit a88fa29

Browse files
authored
chore(aio): align terminal-hydration test with single chain fetch
Main's #3744 (avoid redundant terminal history fetches) made a terminal resume-chain hydration issue one whole-chain fetch instead of an ancestor+current pair, so the expected call count after the terminal watch drops from 4 to 3. The regression the test pins is unchanged: the terminal hydration must start its own fetch rather than dedupe onto the in-flight resume-chain hydration (count would stay 2 if mode-keying broke). Generated-By: PostHog Code Task-Id: 0c511836-2180-455a-9b58-45df2a0661ec
1 parent 625c495 commit a88fa29

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/ui/src/features/sessions/sessionServiceHost.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,12 +1919,12 @@ describe("SessionService", () => {
19191919
{ resume_from_run_id: "previous-run" },
19201920
);
19211921

1922-
// The terminal hydration issues its own ancestor+current pair instead
1923-
// of being deduped onto the in-flight resume-chain hydration.
1922+
// The terminal hydration issues its own single terminal-chain fetch
1923+
// instead of being deduped onto the in-flight resume-chain hydration.
19241924
await vi.waitFor(() => {
19251925
expect(
19261926
mockAuthenticatedClient.getTaskRunSessionLogsResult,
1927-
).toHaveBeenCalledTimes(4);
1927+
).toHaveBeenCalledTimes(3);
19281928
});
19291929
resolveFirstHydration({ entries: [], complete: true });
19301930
});

0 commit comments

Comments
 (0)