fix(compact): use English checkpoints

This commit is contained in:
fz
2026-07-31 01:36:20 +08:00
parent a36721fa55
commit ed49f1d985
9 files changed
+74 -6

No files matched your search

@@ -342,6 +342,11 @@ describe('context-overflow recovery across the real loop and compact-basic', ()
expect(adapter.conversationRequests).toHaveLength(2)
expect(adapter.summaryRequests).toHaveLength(1)
const instruction = adapter.summaryRequests[0]!.messages.at(-1)?.content
.map(block => (block.type === 'text' ? block.text : ''))
.join('') ?? ''
expect(instruction).toContain('Produce only an English-language internal engineering checkpoint')
expect(instruction).toContain('Translate narrative source material as needed; preserve exact literals.')
expect(JSON.stringify(adapter.conversationRequests[0]!.messages)).toContain('OLD HISTORY SENTINEL')
const retry = JSON.stringify(adapter.conversationRequests[1]!.messages)
expect(retry).toContain('RECOVERY CHECKPOINT')