Skip to content

App update checker: detect and surface newer NodeSpace versions #1321

Closed

Description

@malibio

Before launch, NodeSpace needs a mechanism to notify users when a newer version is available, so they don't silently run stale software.

Required Behavior

  • On startup (and optionally on a background interval), check whether a newer release exists
  • If a newer version is available, surface a non-blocking notification in the UI (banner or status area)
  • No auto-update required at this stage — just detection and surfacing

Implementation Notes

  • Check against GitHub Releases API (or a versioned manifest at a stable URL) — compare against the running app's version from `tauri.conf.json`
  • Should be non-blocking: network failure or timeout silently ignored
  • Version comparison should use semver
  • Tauri has a built-in updater plugin (`tauri-plugin-updater`) that can handle this; evaluate whether to use it or implement a lightweight check

Acceptance Criteria

  • Running app version is readable at runtime (from Tauri context or compiled-in constant)
  • On startup, app checks for a newer release version
  • If a newer version exists, a non-blocking UI notification is shown
  • Network failure / timeout is silently swallowed — does not affect app startup
  • Version comparison is semver-correct (not lexicographic)

Activity

  1. mstomar125 commented on Jul 31, 2026

    @mstomar125
    Contributor

    Parking this for now (remote/mini session) — it is not cleanly resolvable here, for two reasons:

    1. Undecided version source, and no live release feed. The check needs something to compare against — the GitHub Releases API or a versioned manifest at a stable URL. That's a product decision, and separately the release pipeline is currently not publishing releases, so there is no live feed for a "newer version" check to read yet. Implementing the check against a source that doesn't emit releases would be speculative.
    2. Desktop/Tauri validation the mini can't do. Reading the running version from the Tauri context and surfacing a non-blocking UI banner are desktop-app concerns that can't be exercised or verified headlessly on this machine.

    The semver-comparison logic is the only fully headless piece, and shipping it alone doesn't close the issue. Best done on a machine with the desktop app once the version source is decided (GitHub Releases vs manifest; and whether to adopt tauri-plugin-updater vs a lightweight check). Leaving OPEN + unassigned, no scheduled date.

  2. self-assigned this
    on Aug 1, 2026
  3. mstomar125 commented on Aug 1, 2026

    @mstomar125
    Contributor

    Backend/detection done — PR #1881 (merged, core main d265d321)

    The headless half is implemented and gated. Acceptance status:

    • Running app version readable at runtime — from Tauri PackageInfo (app.package_info().version, i.e. the shipped tauri.conf.json version), so a build can't drift from and nag against its own release.
    • On startup, checks for a newer release — a fire-and-forget tauri::async_runtime::spawn in setup() hits GitHub Releases /latest and compares.
    • Network failure / timeout silently swallowed — 5s timeout; every failure path (offline, timeout, rate limit, malformed/missing tag) resolves to "no update known", never an error, and can't delay startup.
    • Version comparison is semver-correct — semver crate (0.10.0 > 0.9.0); unparseable input fails safe (no false "update available"). 8 unit tests.
    • Non-blocking UI notification shown — the frontend banner. Deferred to on-device (Mac).

    Frontend contract for the banner (the remaining criterion): the backend emits a update://available window event (payload { current, latest, update_available }) at startup only when a strictly-newer release exists, and exposes a check_for_update_command Tauri command for on-demand/menu checks. Register the listener on mount (or call the command on mount) — the startup emit is fire-once with no replay, so don't depend solely on catching that event.

    Leaving this open for the banner UI + live validation against a real newer release, which belong to the desktop/frontend lane. The detection backend it needs is now in place.

  4. added a commit that references this issue on Aug 1, 2026
    730beb2
  5. mstomar125 commented on Aug 1, 2026

    @mstomar125
    Contributor

    Resolved in #1889 (merged). The detection backend (#1881) is now surfaced by a non-blocking, per-version-dismissible UpdateBanner in the app shell (listens for update://available + runs an on-demand check_for_update_command); Download opens the release page (the bundle is unsigned / no in-app installer). Shipped together with the data-safety pre-migration backup (#1887) so 'you have an update' also means 'your data is safe to take it'. Follow-up #1888 extends detection to Pro (private nodespace-sync) releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions