Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/cli/src/ui/hooks/session-swap-telemetry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ function makeFakeEnv() {
return { filePath: `/tmp/${to}.jsonl`, copiedCount: 2 };
}),
loadSession: async (id: string) => sessionServiceMocks.sessions.get(id),
getSessionDisplayName: vi.fn().mockResolvedValue(undefined),
// Realistic like SessionService.removeSession (deletes the fork JSONL):
// the branch hook calls it in exactly the failure path these tests
// drive (forkCreated && !uiSwapped), so the fork must not survive in
Expand All @@ -209,6 +210,7 @@ function makeFakeEnv() {
finalize: vi.fn(),
flush: vi.fn().mockResolvedValue(undefined),
rebuildTurnBoundaries: vi.fn(),
getCurrentCustomTitle: vi.fn().mockReturnValue(undefined),
}),
getSessionService: () => sessionService,
getGoalRuntimeReady: vi.fn().mockResolvedValue({}),
Expand Down
Loading