Skip to content

fix(tui): include thinking effort in status line payload - #2741

Draft
GarryCodespace wants to merge 1 commit into
MoonshotAI:mainfrom
GarryCodespace:fix/status-line-thinking-effort
Draft

fix(tui): include thinking effort in status line payload#2741
GarryCodespace wants to merge 1 commit into
MoonshotAI:mainfrom
GarryCodespace:fix/status-line-thinking-effort

Conversation

@GarryCodespace

Copy link
Copy Markdown

Related Issue

Resolve #2713

Problem

Custom status line commands receive a JSON snapshot on stdin, but that snapshot omitted the current thinking effort. The built-in footer therefore updated when the effort changed while a custom footer had no equivalent source of truth.

What changed

  • Add thinkingEffort to the custom status line payload and populate it from the current TUI state.
  • Add regression coverage for the footer-to-command payload path.
  • Document the field in the English and Chinese configuration references and add a patch changeset.

Verification

  • pnpm exec vitest run apps/kimi-code/test/tui/components/chrome/footer-status-line.test.ts — 17 passed
  • pnpm --filter @moonshot-ai/kimi-code typecheck
  • Focused type-aware oxlint — no new errors
  • pnpm --filter kimi-code-docs build
  • CLI package suite — 2,662 passed; one unrelated timing-sensitive test failed in the full concurrent run and passed when rerun alone

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Aug 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3d15146

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: status_line payload lacks thinkingEffort — custom footers can't follow in-session effort switches

2 participants