Skip to content

feat: auto updating in background - #2

Merged
stdrc merged 2 commits into
mainfrom
rc/auto-update
Oct 21, 2025
Merged

feat: auto updating in background#2
stdrc merged 2 commits into
mainfrom
rc/auto-update

Conversation

@stdrc

@stdrc stdrc commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

No description provided.

stdrc added 2 commits October 21, 2025 14:03
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
@stdrc
stdrc requested a review from Copilot October 21, 2025 06:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds automatic background update functionality to the Kimi CLI, allowing the application to check for and install updates automatically when starting the shell.

Key changes:

  • Refactored update logic into reusable async functions with UpdateResult enum for status tracking
  • Implemented a toast notification system for non-intrusive user feedback in the shell prompt
  • Added background task management to run auto-updates on shell startup

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/kimi_cli/ui/shell/update.py Refactored update logic into do_update() with lock-based concurrency control and structured return values; extracted helper functions for version parsing and platform detection
src/kimi_cli/ui/shell/prompt.py Added toast notification system with queue-based message display in the bottom toolbar
src/kimi_cli/ui/shell/init.py Integrated auto-update on shell startup with background task management and toast notifications
CHANGELOG.md Updated changelog entry to reflect auto-update feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

if self._current_toast_duration <= 0.0:
self._current_toast = None
else:
shortcuts = [

Copilot AI Oct 21, 2025

Copy link

Choose a reason for hiding this comment

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

Removed shortcut '/help: show help' which may have been unintentionally deleted. If this shortcut is no longer supported, this change is correct.

Suggested change
shortcuts = [
shortcuts = [
"/help: show help",

Copilot uses AI. Check for mistakes.
@stdrc
stdrc merged commit 6897c67 into main Oct 21, 2025
1 check passed
@stdrc
stdrc deleted the rc/auto-update branch October 21, 2025 06:35
stdrc pushed a commit that referenced this pull request Dec 26, 2025
albertwyjoy-bit pushed a commit to albertwyjoy-bit/OKbot that referenced this pull request Feb 8, 2026
osodev-1 referenced this pull request in osodev-1/sammad-cli Aug 4, 2026
osodev-1 referenced this pull request in osodev-1/sammad-cli Aug 4, 2026
osodev-1 referenced this pull request in osodev-1/sammad-cli Aug 4, 2026
Pricing (Free/Pro $20/Team $30-seat, 200 req/mo free, block-at-quota) · gateway (signed JWT, Railway, Foundry API key, streaming-only, TTL+revocation-list) · distribution (private index, not public PyPI, read-token in the served installer). Removed the 'Decisions to confirm' blocks.
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.

2 participants