Skip to content

feat: faster self-update with live progress - #37

Merged
brtkwr merged 1 commit into
mainfrom
feat/update-progress
Sep 23, 2026
Merged

brtkwr merged 1 commit into
mainfrom
feat/update-progress

Conversation

@brtkwr

@brtkwr brtkwr commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Updating from the popup is now quick and visibly alive:

  • The download starts as soon as ccs finds a new version, while the popup is still showing. On Homebrew it refreshes only ccs's tap (a git pull that took about 1s here, instead of a full brew update of every tap, which took minutes) and runs brew fetch for 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.
  • The header shows the current step and a running timer, for example 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

- 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
@brtkwr
brtkwr merged commit f8e6553 into main Sep 23, 2026
1 check passed
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