mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
perf(session): reuse immutable event snapshots
This commit is contained in:
@@ -882,7 +882,7 @@ describe('compaction region transaction', () => {
|
||||
expect(head.content[0]?.type === 'text' ? head.content[0].text : '').toContain('<compacted-summary>')
|
||||
expect(head.content.at(-1)).toEqual({ type: 'text', text: '</compacted-summary>' })
|
||||
|
||||
const replay = Session.create(SessionId('replay'), [...session.snapshotEvents()])
|
||||
const replay = Session.create(SessionId('replay'), session.snapshotEvents())
|
||||
expect(replay.deriveMessages()).toEqual(session.deriveMessages())
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user