feat: notify terminal users about CLI updates - #12
Merged
Merged
Conversation
bjarn
enabled auto-merge (squash)
September 27, 2026 16:02
Bjornftw
approved these changes
Sep 27, 2026
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.
Terminal users currently receive no notice when a newer CLI release is available. Add a background check against the public GitHub release API and show a notice on stderr at most once per 24 hours. Require the platform archive, installer, checksums, and provenance files before a release can trigger a notice.
Show update instructions for the detected installation method:
AllSigned. Read the existing ownership record, including records written by Windows PowerShell 5.1.Keep the cache separate from login data, use a non-blocking lock and atomic writes, and cancel unfinished requests when the command ends. Suppress checks for JSON, pipes, non-interactive use, help, version, completion, and raw message content. Listeners save new results for the next run. Short commands can exit before a new update is found. The CLI only prints instructions; it does not install updates.
Validation:
go test ./...go test -race ./...go vet ./...go build -buildvcs=falseand passedscripts/test-terminal.py. Git metadata stamping is disabled only for this local test build because the managed worktree causes a Git status error.