Skip to content

fix(web): show just the thinking level name in the model pill - #1689

Merged
wbxl2000 merged 2 commits into
mainfrom
fix/web-thinking-pill-label
Jul 14, 2026
Merged

fix(web): show just the thinking level name in the model pill#1689
wbxl2000 merged 2 commits into
mainfrom
fix/web-thinking-pill-label

Conversation

@wbxl2000

Copy link
Copy Markdown
Collaborator

Related Issue

None — small wording tweak, problem explained below.

Problem

The model pill showed the thinking level as 思考: max / thinking: max — verbose, and the level was interpolated raw (lowercase) while the segment control labels are capitalized.

What changed

  • Dropped the 思考: / thinking: prefix from the effort suffix in both locales, so the pill reads Coding Model 0711 Highspeed · Max.
  • Pass the level through effortLabel (same capitalization as the segment labels) instead of the raw stored string.
  • Boolean models keep the plain 思考 / thinking tag; off still shows nothing.

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 (existing suite covers the suffix logic; wording-only change).
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update (wording-only tweak).

@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2b43b5d

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 14, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@2b43b5d
npx https://pkg.pr.new/@moonshot-ai/kimi-code@2b43b5d

commit: 2b43b5d

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: adc0427b29

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

"dev:server": "tsx --tsconfig ./tsconfig.dev.json --import ../../build/register-raw-text-loader.mjs ./src/main.ts server run --foreground",
"dev:kap-server": "tsx --tsconfig ./tsconfig.dev.json --import ../../build/register-raw-text-loader.mjs ./src/main.ts server run --foreground",
"dev:kap-server:multi": "KIMI_CODE_EXPERIMENTAL_MULTI_SERVER=1 tsx --tsconfig ./tsconfig.dev.json --import ../../build/register-raw-text-loader.mjs ./src/main.ts server run --foreground --port 58628",
"dev:kap-server:multi": "KIMI_CODE_EXPERIMENTAL_MULTI_SERVER=1 tsx --tsconfig ./tsconfig.dev.json --import ../../build/register-raw-text-loader.mjs ./src/main.ts server run --foreground",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep dev:v2 bound to the multi preset port

When pnpm dev:v2 is started without another server already occupying 58627, this script now falls back to the CLI's default port 58627 (DEFAULT_SERVER_PORT), but the web dev proxy still advertises/switches the multi backend to http://127.0.0.1:58628 in apps/kimi-web/vite.config.ts. That leaves the Sidebar's multi-backend switch pointing at an empty port in this common standalone/debug startup path; preserving --port 58628 keeps the root dev:v2 script aligned with the web preset.

Useful? React with 👍 / 👎.

Drop the "thinking:" / "思考:" prefix from the effort suffix and
capitalize the level via effortLabel, matching the segment labels.
@wbxl2000
wbxl2000 force-pushed the fix/web-thinking-pill-label branch from adc0427 to cdc7334 Compare July 14, 2026 08:45
@wbxl2000
wbxl2000 merged commit ab22a2a into main Jul 14, 2026
14 checks passed
@wbxl2000
wbxl2000 deleted the fix/web-thinking-pill-label branch July 14, 2026 09:00
@github-actions github-actions Bot mentioned this pull request Jul 14, 2026
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