Skip to content

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

Open

Description

@17610651150

Environment

  • OS: macOS (darwin-arm64, Apple Silicon)
  • Install method: official script curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash (default location ~/.kimi-code)
  • Versions confirmed affected: 0.23.4, 0.26.0, 0.27.0, 0.29.2 (misdetection persisted across all of them)

Expected behavior

kimi upgrade should detect the install source as a native macOS (script) install and support auto-update. With [upgrade] auto_install = true in tui.toml, new versions should install automatically.

Actual behavior

Whenever a newer version exists, kimi upgrade prints:

A newer version of @moonshot-ai/kimi-code is available (0.29.2 -> 0.30.0).
Detected install source: native (windows). Auto-update is not supported on this platform.
To update manually, run: curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash

The install source is misdetected as native (windows) on macOS, so the built-in auto-update path stays disabled even though auto_install = true is set.

Steps to reproduce

  1. On macOS (Apple Silicon), install via the official script.
  2. Wait until a newer release exists.
  3. Run kimi upgrade, or rely on the tui.toml auto-update.

Impact

Auto-update never runs on affected macOS installs; every release requires manually re-running the install script. The startup update check itself works fine (new versions are detected) — only the install-source detection / auto-install path is broken.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions