You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kimi reasoning effort races concurrent kimi turns (global config.toml flip window) #181
Kimi has no per-invocation effort flag, so flipKimiEffort (electron/kimi.js:50-93) rewrites the user-global ~/.kimi-code/config.toml around every spawn. Documented ceiling (docs/ISSUES.md:116): concurrent kimi turns race the flip window, so two simultaneous kimi turns can run at the wrong effort. The ponytail at electron/kimi.js:44-45 says "serialize flips or use a per-invocation flag when kimi ships one."
Impact
Multi-thread fan-out is the product's core use case; a wrong-effort run silently costs more or thinks less.
Fix direction
Serialize flips with a mutex around the whole spawn (doable today), and revisit a per-invocation flag when kimi ships one.
From the kimi-code doc-mine: the race fix landed upstream. KIMI_MODEL_THINKING_EFFORT env var forces effort on the wire (docs: bypasses the model's declared support_efforts), and KIMI_MODEL_NAME + KIMI_MODEL_API_KEY carry a full per-spawn model without touching config.toml. The flip-write hack in electron/kimi.js is obsolete — delete it.
Fixed (#671): each Kimi thread gets its own KIMI_CODE_HOME with a copied config.toml (runner-provider-kimi.js:328), so effort flips no longer race. Only the ssh/WSL path still shares the file. Closing in the 2026-10-09 board cleanup (#1532).
Activity
currentbits commentedon Aug 18, 2026
From the kimi-code doc-mine: the race fix landed upstream. KIMI_MODEL_THINKING_EFFORT env var forces effort on the wire (docs: bypasses the model's declared support_efforts), and KIMI_MODEL_NAME + KIMI_MODEL_API_KEY carry a full per-spawn model without touching config.toml. The flip-write hack in electron/kimi.js is obsolete — delete it.
currentbits commentedon Oct 9, 2026
Fixed (#671): each Kimi thread gets its own
KIMI_CODE_HOMEwith a copied config.toml (runner-provider-kimi.js:328), so effort flips no longer race. Only the ssh/WSL path still shares the file. Closing in the 2026-10-09 board cleanup (#1532).