Skip to content

fix(cli): make native install source description platform-aware - #2409

Open
C0d3N1nja97342 wants to merge 2 commits into
MoonshotAI:mainfrom
C0d3N1nja97342:fix/native-install-source-macos-clean
Open

fix(cli): make native install source description platform-aware#2409
C0d3N1nja97342 wants to merge 2 commits into
MoonshotAI:mainfrom
C0d3N1nja97342:fix/native-install-source-macos-clean

Conversation

@C0d3N1nja97342

Copy link
Copy Markdown

Related Issue

Resolves #2391

Problem

On macOS, kimi upgrade reports Detected install source: native (windows). Auto-update is not supported on this platform. for script installs. The native install source supports auto-update on macOS (canAutoInstall returns true for non-Windows), but the message was hardcoded to say "native (windows)" for all platforms.

What changed

Added platform parameter (defaults to process.platform) to renderManualUpdateMessage. The native case now shows native (windows) only on win32, and just native on other platforms.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue.
  • This PR needs no changeset (internal diagnostic message only).
  • This PR needs no doc update.

The renderManualUpdateMessage function hardcoded 'native (windows)'
for all platforms, but on macOS native installs (script install) DO
support auto-update (canAutoInstall returns true for native on
non-Windows). The message was misleading macOS users into thinking
their install was some kind of Windows setup.

Make the native case platform-aware: show 'native (windows)' only on
win32, and just 'native' on other platforms.
@changeset-bot

changeset-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fa7bab1

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.

kimi upgrade misdetects macOS script install as "native (windows)", disabling auto-update

1 participant