feat(llm): mark compaction requests with x-deepseek-harness-compact header

This commit is contained in:
Jinhua Zhu
2026-07-22 18:35:32 +08:00
parent 6646ef04ac
commit 66e5f8eecd
7 changed files with 29 additions and 2 deletions
@@ -1094,6 +1094,7 @@ describe('default one-shot summarizer', () => {
maxTokens: 321,
signal: SIGNAL,
sessionId: session.id,
compact: true,
})
const instruction = adapter.lastOptions?.messages.at(-1)?.content[0]
expect(instruction?.type === 'text' ? instruction.text : '').toContain('## Primary Request and Intent')