kimi-code icon indicating copy to clipboard operation
kimi-code copied to clipboard

Compaction call inherits the profile's thinking effort (and [models.compaction-model] is ignored)

Open belenov-maker opened this issue 1 month ago • 0 comments

Environment

  • kimi-code (Node) v2.1.1, macOS arm64
  • Main model: GLM-5.3, thinking effort max

Component

compactionRound — thinkingEffort = resolvedModel.thinkingLevel.

Mechanism

The summary call runs with the same effort as the profile (for GLM: max), roughly doubling generation time, which widens the BUG-1 race window and the blocking time.

Related: [models.compaction-model] in config.toml is ignored — the compaction call always runs on the main (expensive, thinking-enabled) model, so there is currently no way to route the compaction call to a cheaper/faster model.

Facts

  • Observed 97–512 s per compaction call with thinkingEffort = max.

Expected

A per-compaction override (e.g. low/none); honoring [models.compaction-model] would additionally allow routing the summary to a cheap model.

Reproduction

  1. Profile with thinkingLevel: max (GLM-5.3).
  2. Trigger a compaction and time the LLM call — 97–512 s observed.

Related issues:

  • https://github.com/MoonshotAI/kimi-code/issues/4202
  • https://github.com/MoonshotAI/kimi-code/issues/4203
  • https://github.com/MoonshotAI/kimi-code/issues/4204

belenov-maker avatar Oct 14 '26 06:10 belenov-maker