Skip to content

Implement silent update check and installation on launch#140

Merged
LargeModGames merged 2 commits intomainfrom
feat--self-update-improvements
Mar 4, 2026
Merged

Implement silent update check and installation on launch#140
LargeModGames merged 2 commits intomainfrom
feat--self-update-improvements

Conversation

@LargeModGames
Copy link
Copy Markdown
Owner

This pull request removes the in-app update prompt and background update check, replacing it with an automatic, silent update mechanism that runs at startup. The update logic has been refactored, and all code and UI related to the previous update prompt has been removed, simplifying the user experience and codebase.

Update mechanism changes:

  • Introduced a new install_update_silent function in src/cli/update.rs that checks for, downloads, and installs updates automatically, returning the new version if updated. This function is now used in place of the previous update check functions.
  • The application now performs an auto-update check on launch (unless a CLI subcommand is used or the SPOTATUI_SKIP_UPDATE environment variable is set). If an update is installed, the app restarts itself automatically.

Removal of update prompt UI and logic:

  • Removed all code, UI, and navigation related to the in-app update prompt, including the UpdatePrompt and associated state and handlers in src/core/app.rs, src/tui/handlers/mod.rs, src/tui/ui/popups.rs, and related files.

Refactoring and cleanup:

  • Refactored the update module exports and removed unused code, such as the UpdateInfo struct and related functions that are no longer needed.
  • Cleaned up startup and event loop logic in src/main.rs to remove all references to the old update prompt and background check.

These changes streamline the update experience for users and reduce code complexity by removing the manual update prompt and related UI.

Testing

  • cargo fmt --all
  • cargo clippy --locked -- -D warnings
  • cargo test --locked

@LargeModGames LargeModGames marked this pull request as ready for review March 4, 2026 10:03
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@LargeModGames LargeModGames merged commit 740fb83 into main Mar 4, 2026
9 of 10 checks passed
@LargeModGames LargeModGames deleted the feat--self-update-improvements branch March 4, 2026 10:03
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