Skip to main content

Module update_check

Module update_check 

Source
Expand description

Update checker for release notifications.

Provides non-blocking release checking with:

  • GitHub releases API integration
  • Persistent state (last check time, skipped versions)
  • Offline-friendly behavior (silent failure)
  • Hourly check cadence (configurable)

Structs§

UpdateInfo
Information about an available update
UpdateState
Persistent state for update checker

Functions§

check_for_updates
Check for updates asynchronously
check_for_updates_sync
Synchronous version of check_for_updates for use in sync TUI code. Uses a short-lived asupersync runtime and native HTTP client.
force_check
Force a check regardless of interval (for manual refresh)
open_in_browser
Open a URL in the system’s default browser
run_self_update
Run the self-update installer script interactively. This function does NOT return - it replaces the current process with the installer. The caller should ensure the terminal is in a clean state before calling.
skip_version
Skip the specified version
spawn_update_check
Start a background thread to check for updates. Returns a receiver that will contain the result when ready.