kimi-code/packages/agent-core/test/agent/compaction
Kaiyi 29cb33d862 fix(agent-core): close open tool calls in compacted prefixes and sync docs
Full compaction slices the raw history, which can exclude a delayed tool result and leave its tool_use open in the compacted prefix, triggering the same strict-provider 400 on the summary request. Synthesize a placeholder tool_result for such calls when projecting the compacted prefix.

Also sync the micro_compaction default to false in the en/zh configuration and env-var docs.
2026-06-30 13:55:20 +08:00
..
full.test.ts fix(agent-core): close open tool calls in compacted prefixes and sync docs 2026-06-30 13:55:20 +08:00
micro.test.ts fix(agent-core): repair misplaced tool results in projected context 2026-06-30 13:28:02 +08:00
strategy.test.ts fix: continue compaction while context remains blocked (#813) 2026-06-16 16:48:27 +08:00