feat: show version update notification on CLI startup#380
Merged
feat: show version update notification on CLI startup#380
Conversation
tejaskash
requested changes
Feb 23, 2026
aidandaly24
reviewed
Feb 23, 2026
aidandaly24
approved these changes
Feb 23, 2026
tejaskash
approved these changes
Feb 23, 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.
Description
Adds a non-blocking startup notification that checks npm for newer CLI versions and displays a colored notice. Includes 24-hour caching to avoid slowing down every invocation.
This is how it looks like once you exit the TUI
---0
Closes #264
Changes
src/cli/update-notifier.ts— New module withcheckForUpdate()(cache read/write, fetch, compare) andprintUpdateNotification()(colored stderr output)src/cli/cli.ts— Fire-and-forget update check at startup; print notification after command completes (CLI) or after TUI exitssrc/cli/__tests__/update-notifier.test.ts— 10 unit tests covering cache behavior, error handling, and notification formattingHow it works
checkForUpdate()runs concurrently with the actual command~/.agentcore/update-check.json— skips network call if last check was < 24h agofetchLatestVersion()compareVersions()(with prerelease support from fix: handle pre-release versions in compareVersions #357)agentcore update(redundant)Test plan
npm run format:checkpassesnpm run lintpassesnpm run typecheckpassesnpm test— 1747 tests pass including 10 new onesagentcore statuswith an older version → notification appearsagentcore update→ no notificationagentcore(TUI) → notification appears after exit