Skip to content

Feature/version awareness#13

Merged
nahime0 merged 5 commits intomainfrom
feature/version-awareness
Mar 12, 2026
Merged

Feature/version awareness#13
nahime0 merged 5 commits intomainfrom
feature/version-awareness

Conversation

@nahime0
Copy link
Copy Markdown
Member

@nahime0 nahime0 commented Mar 12, 2026

Note

Medium Risk
Adds build-time version/commit injection and runtime GitHub release checks (network I/O) surfaced in both TUI and tray UI, which could affect startup behavior or environments with restricted connectivity.

Overview
Adds version awareness across the app by introducing internal/version and wiring GoReleaser ldflags to embed Version/Commit, plus a new --version flag and updated help banner.

Implements a best-effort GitHub “latest release” check and surfaces update availability in both UIs: tray tooltip now includes the current version, TUI shows an update banner in the footer, and the tray frontend displays an “update available” footer with a releases link via new Wails bindings (GetUpdateVersion, OpenReleases).

Written by Cursor Bugbot for commit f035da3. This will update automatically on new commits. Configure here.

nahime0 added 3 commits March 12, 2026 16:56
Add internal/version package with Version/Commit vars injected via ldflags.
Add --version flag to CLI, version string in usage header.
Configure goreleaser to inject version and commit at build time.
TUI shows version in title bar and flash popup if outdated.
Tray shows version in tooltip and emits update:available event.
Frontend displays a dismissable update banner.
Move update message from flash overlay (TUI) and banner (tray) to
footer bar in both interfaces. Add OpenReleases Go method so tray
frontend can open the browser via the system, and GetUpdateVersion
for polling instead of unreliable events.
Compare major.minor.patch numerically so running a newer version than
the latest release does not prompt a downgrade. Protect updateVersion
field in SessionService with sync.RWMutex to avoid data race between
the background goroutine and Wails binding calls.
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@nahime0 nahime0 merged commit 8143210 into main Mar 12, 2026
1 check 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