feat: auto updating in background - #2
Merged
Merged
Conversation
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Contributor
There was a problem hiding this comment.
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
UpdateResultenum 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 = [ |
There was a problem hiding this comment.
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", |
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
…ateway+usage, download/install)
osodev-1
referenced
this pull request
in osodev-1/sammad-cli
Aug 4, 2026
…y+usage, download/install)
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.