Skip to content

Comments

Show version upgrade notification for newer releases#466

Merged
bborn merged 1 commit intomainfrom
task/1418-show-version-upgrade-notification-for-ne
Feb 19, 2026
Merged

Show version upgrade notification for newer releases#466
bborn merged 1 commit intomainfrom
task/1418-show-version-upgrade-notification-for-ne

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Feb 18, 2026

Summary

  • Adds a version upgrade notification banner in the TUI dashboard when a newer release is available on GitHub
  • Creates internal/github/version.go with FetchLatestRelease() and IsNewerVersion() functions that check the GitHub releases API
  • Updates the release workflow to inject version into the binary via -ldflags "-X main.version=..." so the binary knows its own version
  • Shows a blue banner: "Update available: v0.1.0 → v0.2.0 (run: ty upgrade)" in the dashboard header

Test plan

  • Unit tests for IsNewerVersion() and parseVersion() pass
  • Full project builds without errors
  • All existing tests pass (except pre-existing AI/autocomplete failures due to missing API key)
  • Manual test: build with -ldflags "-X main.version=v0.0.1" and verify the upgrade banner appears
  • Manual test: verify no banner appears when version is "dev" or current

🤖 Generated with Claude Code

Check GitHub releases API on TUI startup to detect newer versions.
Shows a blue banner in the dashboard when an update is available with
instructions to run `ty upgrade`. Also injects version into the binary
via ldflags in the release workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bborn bborn merged commit 7089167 into main Feb 19, 2026
3 checks 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