Skip to main content

Module version_check

Module version_check 

Source

Functions§

check_background
Spawn a background thread to fetch latest version from GitHub Releases and write the result to the lean-ctx data dir (latest-version.json). Non-blocking, fire-and-forget. Skips if cache is fresh (<24h). Respects update_check_disabled config and LEAN_CTX_NO_UPDATE_CHECK env var.
get_update_banner
Returns a formatted yellow update banner if a newer version is available. Reads only the local cache file — zero network calls, zero delay.
version_info_json
Returns version info as JSON for the dashboard /api/version endpoint.