kimi-code/packages/agent-core
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
..
src fix(agent-core): repair misplaced tool results in projected context 2026-06-30 13:28:02 +08:00
test fix(agent-core): repair misplaced tool results in projected context 2026-06-30 13:28:02 +08:00
CHANGELOG.md ci: release packages (#1124) 2026-06-26 19:17:49 +08:00
package.json ci: release packages (#1124) 2026-06-26 19:17:49 +08:00
README.md Kimi For Coding 2026-05-22 15:54:50 +08:00
tsconfig.json feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
tsdown.config.ts feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
vitest.config.ts chore: use raw query imports for prompt sources (#682) 2026-06-12 11:47:44 +08:00

@moonshot-ai/agent-core

The unified agent engine for Kimi Code.

Part of the Kimi Code monorepo.

See the main repository for documentation, issues, and contribution guidelines.

License

MIT