kimi-code/packages/agent-core/test/agent/compaction
Kaiyi 3e42ae7607 fix(agent-core): repair misplaced tool results in projected context
Long tool-use sessions could get stuck with repeated 400 errors when a tool result was not adjacent to its tool_use (for example a notification flushed between step.begin and the first tool.call, or an interrupted or nested step delaying the result). Micro compaction exposed this latent misordering by busting the prompt cache and forcing a full revalidation.

Repair the adjacency at projection time so every tool_use is immediately followed by its tool_result(s), and default the experimental micro compaction flag off.
2026-06-30 13:28:02 +08:00
..
full.test.ts chore(telemetry): normalize telemetry property keys to snake_case (#1196) 2026-06-29 17:40:50 +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