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
9 changes: 9 additions & 0 deletions packages/core/src/services/sessionService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,15 @@ describe('SessionService', () => {
expect(unlinkSyncSpy).toHaveBeenCalledWith(
expect.stringContaining(`/chats/archive/${sessionIdA}.jsonl`),
);
// #7425 review follow-up: the archived copy's usage must be salvaged
// before deletion too — with a telemetry-less fresh active copy it is
// the only holder of the session's history. Pin the call so removing
// the "redundant-looking" archived salvage fails this test.
expect(
vi.mocked(persistUsageBeforeTranscriptDeletion),
).toHaveBeenCalledWith(
expect.stringContaining(`/chats/archive/${sessionIdA}.jsonl`),
);
});
});

Expand Down
Loading