Skip to content

web: unify context-usage tooltip format with clear context prefix - #2285

Open
bowenliang123 wants to merge 1 commit into
MoonshotAI:mainfrom
bowenliang123:web/unify-context-tooltip
Open

web: unify context-usage tooltip format with clear context prefix#2285
bowenliang123 wants to merge 1 commit into
MoonshotAI:mainfrom
bowenliang123:web/unify-context-tooltip

Conversation

@bowenliang123

@bowenliang123 bowenliang123 commented Jul 28, 2026

Copy link
Copy Markdown

Related Issue

No related issue.

Problem

The context-usage ring hover tooltip to the left of the model selector in the web composer was not immediately scannable:

  • Before: Used 43.6k / 256k tokens (18%)
image

Without a clear "Context / 上下文" prefix, users had to infer what the percentage and token counts meant. The TUI already uses a clearer format (context: 72% (183k/256k)), so aligning the web tooltip with it improves consistency.

Without a clear "Context" prefix, users had to infer what the percentage and token counts meant.

What changed

The added prefix makes it obvious at a glance that the tooltip shows context-window usage, and the compact parenthetical format keeps the line short.

Updated ctxTooltip in both apps/kimi-web/src/i18n/locales/en/status.ts and zh/status.ts:

  • After: Context: {pct}% ( {used} / {max} )
image

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.
  • This PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a66c21

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.

1 participant