Skip to content

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

Closed
AriajSarkar wants to merge 21 commits intopingdotgg:mainfrom
AriajSarkar:feat/manual-update-check
Closed

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

Conversation

@AriajSarkar
Copy link
Copy Markdown
Contributor

@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 web settings

  • Adds a DesktopUpdateCheckSection to the Electron Settings page (_chat.settings.tsx) with a button that checks for, downloads, or installs updates depending on current state.
  • Exposes a new desktop:update-check IPC endpoint in the main process (main.ts) and a checkForUpdate() method on window.desktopBridge (preload.ts).
  • The settings section subscribes to onUpdateState via React Query to keep update state live without polling.
  • Install actions prompt the user for confirmation before proceeding; errors and tooltips are displayed inline.
  • Replaces the sidebar update button icon with ArrowDownToLineIcon, changes available-update styling from pulsing amber to green, and fixes the default tooltip to read 'Up to date'.

Macroscope summarized 789f91f.


Note

Medium Risk
Adds a new Electron IPC entry point to trigger update checks/download/install from the web UI, touching auto-updater state handling and user restart/install flow. Risk is moderate due to changes in update-related IPC and UI actions that can restart the app.

Overview
Adds a manual Updates control to the Electron settings page that can check, download, or install updates based on current DesktopUpdateState, including last-checked timestamp, tooltips, and inline error handling.

Exposes a new desktop:update-check IPC handler wired through DesktopBridge.checkForUpdate() (with an explicit DesktopUpdateCheckResult contract) and adds a React Query helper to cache/sync update state via onUpdateState. Also tweaks update UX: install now prompts for confirmation with version info, and the sidebar update indicator icon/styling is adjusted; update tooltip default is corrected to "Up to date" and new unit tests cover canCheckForUpdate and tooltip behavior.

Written by Cursor Bugbot for commit 789f91f. This will update automatically on new commits. Configure here.

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
Copy Markdown

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: 595dff1f-998e-4e51-8703-bb1ad09a205d

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

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.

@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
…check

# Conflicts:
#	apps/desktop/src/main.ts
#	apps/web/src/routes/_chat.settings.tsx
@AriajSarkar AriajSarkar force-pushed the feat/manual-update-check branch from 2bd1d03 to 4e5586b Compare March 21, 2026 20:27
…rmation

- Replace generic rocket icon with a downward arrow (`ArrowDownToLineIcon`) in the sidebar for better visual clarity.
- Update sidebar icon colors to use a green/blue semantic palette instead of warning colors, and fix CSS class collisions that caused the icon to incorrectly render as white.
- Add a confirmation dialog before triggering `installUpdate()` in both the sidebar and settings panel to warn users that the app will restart and tasks will be interrupted.
Addresses UX feedback in pingdotgg#1204
@AriajSarkar
Copy link
Copy Markdown
Contributor Author

image

On hover -

image

Confirmation before update -

image

AriajSarkar and others added 2 commits March 24, 2026 23:07
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

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