feat: offer to update and restart when a new release is out - #35
Merged
Merged
Conversation
At startup and hourly, ccs reads the newest release tag from GitHub's releases/latest redirect (not the REST API, whose unauthenticated limit shared IPs exhaust). If it's newer, a popup over the preview offers Enter: brew update && brew upgrade ccs, then restart with the same arguments; Esc: later. Keys are ignored for a second after it opens so in-flight typing can't answer it. Non-Homebrew installs get a notice only, and dev builds never check. 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.
While ccs is open it now checks for a newer release, at startup and then hourly. When one exists, a box appears over the preview pane:
brew updatethenbrew upgrade ccsin the background (the header shows "updating to v0.25.0..."), then restarts ccs with the same arguments. If the upgrade fails, the error shows and ccs keeps running.devbuilds never check.The check reads where
github.com/agentic-utils/ccs/releases/latestredirects to. That avoids the GitHub API, whose 60-requests-an-hour allowance for anonymous callers was already used up on this office IP when I tested.🤖 Generated with Claude Code
https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE