MoonshotAI / MoonshotAI/kimi-code

[Bug] Status bar shows base thinking effort instead of forced effort from KIMI_MODEL_THINKING_EFFORT

Open
#3,839 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Summary

When KIMI_MODEL_THINKING_EFFORT=max is set, the actual LLM requests correctly run at max effort, but the TUI status bar (footer) still displays the base effort from config.toml (thinking: high). Display and effective behavior disagree.

Environment

  • Kimi Code version: 0.43.1 (macOS arm64)
  • Provider: managed:kimi-code (type kimi)
  • Model: kimi-code/k3-256k (support_efforts = ["low", "high", "max"])
  • config.toml: [thinking] enabled = true, effort = "high"

Steps to reproduce

KIMI_MODEL_THINKING_EFFORT=max kimi --yolo

Expected behavior

The footer status bar shows thinking: max, matching the effort actually used for requests.

Actual behavior

Footer shows thinking: high (the [thinking].effort value from config.toml).

Evidence

The env var does take effect for real requests — a session run with it set logs:

thinkingEffort=max systemPromptChars=39066 toolCount=27

in the session log, while the same session's profile.bind wire event records "thinkingEffort":"high", which is what the status bar renders.

From the shipped binary, the footer appears to render the profile's base thinkingLevel, while the env var is bound as [thinking].forcedEffort and only layered on at request time via resolveForcedThinkingEffort(...) (effective: forced ?? base). So the env override never reaches the status-bar rendering path.

Suggested fix

Have the status bar display the effective thinking effort (after applying forcedEffort), not just the base profile level — or otherwise surface that a forced effort is active.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the status-bar rendering path that uses the profile's base thinkingLevel, then compare it with resolveForcedThinkingEffort(...) and the request-time effective value. Reproduce with KIMI_MODEL_THINKING_EFFORT=max kimi --yolo and verify that the footer shows thinking: max while requests still use max effort.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.