Repository navigation
feat: add passive version check notification - #5279
Open
Aayushyaash wants to merge 2 commits into
Open
Aayushyaash wants to merge 2 commits into
Aayushyaash wants to merge 2 commits into
Conversation
Aayushyaash
force-pushed
the
feat/version-check-notification
branch
from
November 24, 2026 18:13
eab0356 to
a289e00
Compare
Aayushyaash
marked this pull request as draft
November 24, 2026 18:19
Aayushyaash
force-pushed
the
feat/version-check-notification
branch
from
November 24, 2026 19:42
a289e00 to
1454c7f
Compare
Aayushyaash
marked this pull request as ready for review
November 24, 2026 19:50
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.
Summary
Added a background version check that lets users know when a newer RTK release is available, without interrupting their normal workflow.
$RTK_DATA_DIR/.version_check.json. Uses atomic file replacement and timestamp pre-claiming to avoid concurrent processes making duplicate requests.rtk git,rtk cargo,rtk read, andrtk lscan trigger a check when one is due, but never print the notification. Hook and rewrite output streams are left untouched.rtk gain,rtk --version, andrtk --help.--git), the curl install script, Nix, or Winget. Falls back to the GitHub Releases page when the installation method cannot be identified.Also updated
.semgrep.ymlto account for the new GitHub Releases request insrc/core/version_check.rs, alongside the existing inline// nosemgrepannotation.Closes #725
Test plan
src/core/version_check.rscovering:vX.Y.Z,X.Y.Z, and prerelease suffixes.test_isolation::root().cargo test --lib core::version_check— 6 passed, 0 failed.cargo clippy --all-targets -- -D warnings— passed with no warnings.rtk --versiondisplays the version before the update notice.rtk gaindisplays the complete gain analysis before the notice.rtk git statusproduces no version notification on stdout or stderr.