Skip to content

feat(desktop): add manual "Check for Updates" button in web settings#1123

Open
AriajSarkar wants to merge 6 commits intopingdotgg:mainfrom
AriajSarkar:feat/manual-update-check
Open

feat(desktop): add manual "Check for Updates" button in web settings#1123
AriajSarkar wants to merge 6 commits intopingdotgg:mainfrom
AriajSarkar:feat/manual-update-check

Conversation

@AriajSarkar
Copy link

@AriajSarkar AriajSarkar commented Mar 15, 2026

What Changed

  • Add checkForUpdate IPC channel (DesktopUpdateCheckResult type, DesktopBridge.checkForUpdate())
  • Wire UPDATE_CHECK_CHANNEL in preload + main process handler (reuses existing checkForUpdates()
  • Add "Check for Updates" button in Settings → About with contextual labels, error handling, and last-checked timestamp
  • Add canCheckForUpdate / getCheckForUpdateButtonLabel pure logic helpers
  • Guard for unconfigured updater in dev/local builds
  • 15 new unit tests

Why

The desktop app checks for updates automatically and has a native menu "Check for Updates…", but there's no way to trigger a check from the web UI. Users may not discover the menu item. This adds a simple, focused entry point in Settings → About.

Closes #1107 (already closed)

UI Changes

image

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Local Test:
v0.0.10 -> v0.0.11

PS C:\all\Open-Source\t3code> $env:T3CODE_DESKTOP_UPDATE_REPOSITORY="pingdotgg/t3code"
>> bun run dist:desktop:win

Note

Add manual "Check for Updates" button to desktop settings page

  • Adds a DesktopUpdateCheckSection component in _chat.settings.tsx that renders an 'Updates' card in the About section of desktop settings, with a button whose label and enabled state reflect the current update status.
  • Exposes checkForUpdate() on window.desktopBridge via a new desktop:update-check IPC channel, returning {checked, state} so the UI can refresh the cached update state after each check.
  • Adds canCheckForUpdate and getCheckForUpdateButtonLabel helpers in desktopUpdate.logic.ts to derive button state from DesktopUpdateState; the button also handles download and install actions depending on update state.
  • Update state is fetched and cached via React Query (desktopUpdateReactQuery.ts) and kept live via onUpdateState bridge events.

Macroscope summarized e840966.

Add checkForUpdate IPC channel so the web renderer can trigger an update
check on demand. Surface a Check for Updates button in Settings > About
(desktop only) with contextual labels and error handling.

- Add DesktopUpdateCheckResult type and DesktopBridge.checkForUpdate()
- Wire UPDATE_CHECK_CHANNEL in preload and main process IPC handler
- Add canCheckForUpdate/getCheckForUpdateButtonLabel logic helpers
- Add DesktopUpdateCheckSection component in settings About section
- Guard IPC handler when updater is not configured (local/dev builds)
- Add 15 unit tests for new logic functions

Closes pingdotgg#1107
@coderabbitai
Copy link

coderabbitai bot commented Mar 15, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1229ed24-4d6f-457f-b0d7-f91d11616ab3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can customize the high-level summary generated by CodeRabbit.

Configure the reviews.high_level_summary_instructions setting to provide custom instructions for generating the high-level summary.

@github-actions github-actions bot added size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add in-app update detection with an Update button in the UI

2 participants