feat: faster self-update with live progress - #37
Merged
Merged
Conversation
- Prepare the update as soon as it's found, while the popup is up: Homebrew installs refresh only the ccs tap (git pull, ~1s, instead of a full brew update across every tap) and brew fetch the new version; other installs download and verify the release. Nothing is installed until the user confirms, and Enter waits for an in-flight prepare rather than racing it. - The header shows the current step and elapsed seconds, e.g. "updating to v0.27.0: brew upgrade (5s)...". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE
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.
Updating from the popup is now quick and visibly alive:
git pullthat took about 1s here, instead of a fullbrew updateof every tap, which took minutes) and runsbrew fetchfor the new version. Other installs download and verify the release file. Nothing is installed until you press Enter. If you press Enter before that finishes, it waits ("finishing download") instead of running two brew commands at once.updating to v0.27.0: brew upgrade (5s)..., so you can tell it hasn't stalled.If the tap isn't a plain git checkout, ccs falls back to
brew update.🤖 Generated with Claude Code
https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE