Skip to content

feat(cli): add automatic and manual upgrades#334

Merged
liruifengv merged 5 commits into
mainfrom
auto-update
Jun 2, 2026
Merged

feat(cli): add automatic and manual upgrades#334
liruifengv merged 5 commits into
mainfrom
auto-update

Conversation

@liruifengv
Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue; this implements the update workflow discussed for Kimi Code.

Problem

Users could only install updates through the startup prompt on the next launch. There was no default background upgrade path or explicit CLI subcommand for manual upgrades.

What changed

  • Add default background automatic upgrades with a [upgrade] auto_install preference in tui.toml.
  • Add kimi upgrade for manual update checks and foreground installation.
  • Add update install state, install locking, retry behavior, success notices with a changelog link, telemetry, logs, tests, and user docs.

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, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 2, 2026

🦋 Changeset detected

Latest commit: a8a10bf

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 Minor

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
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 2, 2026

pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@a8a10bf
npx https://pkg.pr.new/@moonshot-ai/kimi-code@a8a10bf

commit: a8a10bf

Copy link
Copy Markdown

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

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: 0d01a9fa4a

ℹ️ 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".

Comment thread apps/kimi-code/src/cli/sub/upgrade.ts
Comment thread apps/kimi-code/src/cli/update/install-lock.ts
Comment thread apps/kimi-code/src/main.ts
Copy link
Copy Markdown

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

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: d3ddbad3a1

ℹ️ 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".

Comment thread apps/kimi-code/src/cli/update/preflight.ts
@liruifengv liruifengv merged commit eeefa98 into main Jun 2, 2026
8 checks passed
@liruifengv liruifengv deleted the auto-update branch June 2, 2026 10:39
@github-actions github-actions Bot mentioned this pull request Jun 2, 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