fix stale state in /rewind

This commit is contained in:
Your Name
2026-04-30 20:20:15 +00:00
parent 0ccc5ce58f
commit 602d6858f9
8 changed files with 196 additions and 9 deletions
@@ -196,7 +196,9 @@ describe('ChatCompressionService', () => {
} as unknown as Config;
vi.mocked(getInitialChatHistory).mockImplementation(
async (_config, extraHistory) => extraHistory || [],
async (_config, extraHistory?: readonly Content[]) => [
...(extraHistory || []),
],
);
});