Skip to content

feat(web): show dev-mode indicator in sidebar - #1042

Merged
wbxl2000 merged 1 commit into
mainfrom
feat/web-dev-mode-indicator
Jun 23, 2026
Merged

feat(web): show dev-mode indicator in sidebar#1042
wbxl2000 merged 1 commit into
mainfrom
feat/web-dev-mode-indicator

Conversation

@wbxl2000

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue.

Problem

During local development it is easy to lose track of which browser tab is the actively pnpm dev:web'd one and which backend server it talks to, especially when several tabs and servers are open at once.

What changed

When the page is served by the Vite dev server, the sidebar logo turns yellow and the connected backend host:port is appended to the "Kimi Code" title, so dev tabs are distinguishable at a glance. It reuses import.meta.env.DEV and the existing serverEndpointLabel(), and is fully inert in production builds.

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. (N/A — dev-only visual affordance; the web app has no component test infrastructure. Covered by typecheck and lint.)
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Tint the sidebar logo yellow and append the connected backend host:port to the title when the page is served by the Vite dev server, so local development tabs are easy to tell apart. Inert in production.
@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3e342ec

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 Jun 23, 2026

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

commit: 3e342ec

@wbxl2000
wbxl2000 merged commit dc6b9ef into main Jun 23, 2026
9 checks passed
@wbxl2000
wbxl2000 deleted the feat/web-dev-mode-indicator branch June 23, 2026 13:41
@github-actions github-actions Bot mentioned this pull request Jun 23, 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