Skip to content

feat(desktop): Check for updates in Settings > About runs the app's own update check - #4427

Closed
devswha wants to merge 2 commits into
mainfrom
feat/desktop-update-about
Closed

devswha wants to merge 2 commits into
mainfrom
feat/desktop-update-about

Conversation

@devswha

@devswha devswha commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

What

In the desktop app, Settings → About showed only "This server is part of the Ovis app, which updates them together: updates come with the app, not from here." and offered no way to check for an app update. The Ovis row there now shows the app's own version with Check for updates, which runs the app's existing electron-updater check now and reports its progress:

  • checking → up to date, or
  • downloading Ovis X (with percent) → "Ovis X is ready." with Restart to Update
  • a failed check: one line under the row, with the full error in its title
  • a build that does not update itself says so, with no button

A browser on the app's server keeps the old sentence, and a regular server's Updates row is unchanged.

How

  • No second updater: app/electron/src/updates.ts checkForUpdates now returns how the check ended, and appUpdateState derives About's phase from that and the existing UpdateOffer. On a Mac, an update Squirrel is still staging counts as downloading, so Restart to Update appears only once the update is held, as the existing line and tray already behave.
  • main.ts: the hourly check and About's button share one check under way, so a press never starts a second download. download-progress feeds the percent. Every state it sends checks the held file first (heldUpdate), so a downloaded file that has gone is not offered.
  • The existing ovisUpdate preload bridge gains state / onState / check (IPC ovis:update-state, ovis:update-check). Like the built-in browser's tab IPC, these answer only the server's own page, judged by the frame's origin (serverPage), and only that page receives pushes.
  • src/lib/desktopUpdate.ts: appUpdateBridge / readAppUpdate / watchAppUpdate / useDesktopAppUpdate. An app from before this change has only the line's bridge, and About then keeps the sentence.
  • Strings in ko/ja/zh. The app's README says how About's row works, and a changelog fragment is added.

Design follows the "Check for Updates" row found in desktop apps' About panes (the Claude and Codex desktop apps, VS Code): the version, one button, and a status beside it.

Screens

From a real build on eamac (this head built as 0.5.8, signed with the Developer ID, fed from the release feed), at 1280, light, Korean:

Before (demo) Up to date (real)
About before: the sentence that updates come with the app About after: Ovis v0.5.8 실행 중, 최신 상태입니다., Check for updates
State (real app) Row
Downloading 0.5.9 with its percent Ovis 0.5.9 받는 중… 24%
Held: Restart to Update Ovis 0.5.9 업데이트가 준비되었습니다. 다시 시작해서 업데이트
A failed check, in one line 업데이트하지 못했습니다: Cannot find channel latest-mac.yml update info: HttpError: 404

Full-window captures: downloading, ready, failed.

Validation

  • bun run check fast on hosthatch-heavy at d9d47d7: exit 0 (typecheck, build, unit 22238 pass / 0 fail / 45 skip).
  • app/electron: bun test 154 pass / 0 fail, bun run typecheck clean.
  • src/lib/desktopUpdate.test.ts, src/components/UpdateControls.test.tsx, src/conventions.test.ts: 54 pass.
  • scripts/settings-rows-demo-regression.ts in the CI runner image: all PASS.
  • Reviews: omo gate reviewer returned CLEAR on the head after one fix round. The first pass found two MEDIUM issues: IPC was authorized by the frame URL instead of its origin, and Restart was offered after the held file was gone (reproduced). Both are fixed and re-verified by its reproduction. dori review: CLEAR at d9d47d7.
  • Real signed build on eamac (arm64, macOS 27): with OVIS_UPDATE_URL at the v0.5.8 release the check ends up to date; at a missing release it fails with one line; on the real feed the bridge reported downloading 4% … 100%, then downloading while Squirrel staged it, then ready. Restart to Update relaunched the app as 0.5.9 (Info.plist 0.5.9, TeamIdentifier 5987KT43TJ). Driven through the window's own page over a loopback debugging port, in a fresh user data folder and hc session.

Held until the maintainer OKs the screen.

…wn update check

The desktop app's About showed only that updates come with the app. Its Ovis row now shows the
app's version with Check for updates, which runs the hourly electron-updater check now (one check
at a time) and shows checking, up to date, the download's progress, Restart to Update once the
update is held (a Mac's staging counts as downloading), or the error in one line.
…d never offers a gone update

Gate review: the state and check IPC now go by the frame's origin (serverPage), as the built-in
browser's do, and the state is pushed only to the server's page; each state told checks the held
file first, so About drops Restart to Update once the downloaded file is gone. A downloading or
ready state without a version is read as no answer.
@devswha devswha added the hold Not merged until the owner says so label Nov 21, 2026
@devswha

devswha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Held: the maintainer OKed the before/after picture; this stays on hold until the captures from a real signed desktop build (eamac, 1280, Korean) are attached here and he has seen them.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Settings → About now shows the desktop app version and lets you check for updates.
    • View check status, download progress, and when an update is ready to install by restarting the app.
    • If a check fails, see an error message and retry. Builds that cannot update themselves display that status.
  • Documentation
    • Updated the desktop app guide with update-check behavior and the statuses shown in Settings → About.

The desktop app now shows its version and update status in Settings → About. The About view can start an update check, show download progress or errors, and offer a restart when an update is ready. The Electron process shares active checks with its hourly update check.

Changes: Desktop app update check

Layer / File(s) Summary
Update outcomes and state model
app/electron/src/updates.ts, app/electron/src/updates.test.ts
checkForUpdates returns explicit latest, skipped, downloaded, or failed outcomes. appUpdateState derives the displayed phase from update enablement, check state, and any held offer. Tests cover the outcomes and state phases.
Electron update checks and page bridge
app/electron/src/main.ts, app/electron/src/preload.ts, app/electron/README.md
The Electron process publishes app update state to its own page and shares active checks between the About action and hourly check. The preload bridge exposes state, subscription, and check methods. The README documents the About behavior and bridge data.
Update state parsing and About controls
src/lib/desktopUpdate.ts, src/lib/desktopUpdate.test.ts, src/components/UpdateControls.tsx, src/components/UpdateControls.css, src/components/UpdateControls.test.tsx, src/lib/i18n/updates.*.ts, changelog.d/desktop-about-update-check.md
The renderer validates and watches app update state, and the compact settings view displays the app version, update status, errors, and restart action. Tests cover the bridge, state handling, and About row. Japanese, Korean, and Simplified Chinese update strings and a changelog entry are added.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Possibly related PRs

  • devswha/ovis#3549: Adds the hourly update check and in-app update controls that this change reuses for the About row.
  • devswha/ovis#2964: Moves update checking into checkForUpdates and handles download promise failures used by the About update states.

Suggested labels: hold

Merge Risk: Minimal · up to d9d47

The desktop About row gains an app version display and update check with progress, error, and restart states. No actionable merge-blocking risk was found; the author's own hold on signed-build captures remains a process matter.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(desktop): Check for updates in Settings > About runs the app's own update check" matches the main change: Settings → About gains a Check for updates action that runs the app's existing…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description covers the What (About row shows app version, Check for updates, states, error line, non-self-updating builds, browser and regular-server behavior) and the How (shared check, held-file…
Full details: Title check

Explanation

The title "feat(desktop): Check for updates in Settings > About runs the app's own update check" matches the main change: Settings → About gains a Check for updates action that runs the app's existing electron-updater check. It is a conventional-commit style title and is specific, so it is a clear PASS. At 84 characters it is slightly long but still readable.

Full details: Description check

Explanation

The description covers the What (About row shows app version, Check for updates, states, error line, non-self-updating builds, browser and regular-server behavior) and the How (shared check, held-file check, IPC authorization by origin, preload bridge, desktopUpdate helpers, i18n strings, README, changelog). It also includes Screens and Validation sections. It does not follow the template's headings exactly: 'Change' and 'Validation' are presented as '## What' and '## How', and the template's HTTP/WS contract-test coverage note is not addressed. The Validation section lists commands run with results and notes that packaged-install and native Squirrel validation was not yet run in the PR objectives, but the description itself says the PR is held pending maintainer approval, which is a status note rather than a missing requirement. Overall the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 860d1b5 and d9d47d7.

Files selected for processing: 14

  • app/electron/README.md
  • app/electron/src/main.ts
  • app/electron/src/preload.ts
  • app/electron/src/updates.test.ts
  • app/electron/src/updates.ts
  • changelog.d/desktop-about-update-check.md
  • src/components/UpdateControls.css
  • src/components/UpdateControls.test.tsx
  • src/components/UpdateControls.tsx
  • src/lib/desktopUpdate.test.ts
  • src/lib/desktopUpdate.ts
  • src/lib/i18n/updates.ja.ts
  • src/lib/i18n/updates.ko.ts
  • src/lib/i18n/updates.zh.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@devswha

devswha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

This change now ships through the 0.5.10 integration branch release/relay-0510 (commits 31d609b..d1dd8a8, same diff with slice-prefixed subjects), reviewed in its one combined pass. This PR stays on hold and is closed once that branch merges; its captures and validation stay here for reference.

@devswha devswha closed this Nov 21, 2026
devswha added a commit that referenced this pull request Nov 22, 2026
…st screen, always-QR and About update check (#4435)

## 0.5.10 relay/app integration (one combined review)

Owner's method for 0.5.10: every lane put its slice on
`release/relay-0510` (per-slice commits, subject prefixed with the slice
name). This PR runs the one combined pass: check fast + full CI once,
one dori review, one omo gate (anthropic/claude-opus-5-5 high) over the
whole diff, t13r on the security slices, one fix round. A bad slice can
be dropped by reverting its commits.

Base: `860d1b5b6` (main with 0.5.9).

### Slices
| slice | commits | what | t13r |
|---|---|---|---|
| approve-card | fe336dd..112bfd1, b527564 | A PC with no account
member lets its first phone in by a tap in the PC's own window (digits
shown, "allow only if your phone shows this number"); any other window
gets 403. Phone waiting screen: "맥에서 [허용]을 눌러 주세요". QR key confirm: [이
PC에서 확인] opens the existing confirm page (POST
/api/account/confirm-page, own window only); no route approves a key. |
YES |
| uvb-S1, S1b | d32628d, e8a755b, d028865 | Unified sidebar adds
the account PCs by itself; nothing to press (no Check again, digits,
Change PC); header dot. | - |
| uvb-S2 | b9bee3d | Relay drive devices may add account PCs; a
vouched PC join is a WATCH row. | YES |
| uvb-S3, S3b | e84272c, fe760e2 | Shell opens any online PC by
itself, moves off one that goes away; account-only PCs only when
confirmed, past new_until, not introduction-only. | YES |
| uvb-S4 | ddedeb1 | Vouched PC join approved by a plain tap, bound to
the joining server proven in-session and matched against the approver's
own /v1/pcs. | YES |
| phone-first-build | e62c516..80e5620 | Phone native first screen;
Android Tailscale check (manifest `<queries>` com.tailscale.ipn). Owner
OK given. | - |
| desktop-update-about | 31d609b..d1dd8a8 | Settings > About [업데이트
확인] runs the app's own update check. Replaces #4427. | - |
| add-connection-qr | 5ce18df..f7312c0 | Add a connection shows a
phone QR on every tab, drops Phones and devices; PC page link
`#sign-in=` signs in, then joins that PC. Replaces #4431. Owner UI OK
given. | YES |
| control-page-fold | e87df8e..a3a28f0, fixes 44fb77d..30d20c6 |
Removes the app.ovis.sh control page; 기기 끊기 / PC 빼기 (dead PC, any age) /
계정 삭제 under Settings > 기기와 PC > [계정 관리]. 모든 기기 로그아웃 was later pulled
back INTO 0.5.10 by the owner (owner-fix round below). Manage account
also reachable from the signed-in start screen (owner-approved). | YES
(PCR-1: ovis-sh/account#58, not a regression) |

### Replaced PRs
#4428 (closed), #4427 (closed), #4431 (closed).

### Review trail
- Combined gate @f7312c09e BLOCK -> fix round -> delta gate @781e03309
BLOCK (HIGH-2) -> fixes -> delta gate @a4c9bb23b CLEAR -> MEDIUM fix
5438550..fd2e5fb CLEAR.
- control-page-fold gate @fd2e5fbdf BLOCK (hosted leave feedback) ->
fixes 44fb77d..30d20c6 (gate running).
- dori @f7312c09e BLOCK (native #picked) -> fixed 477f3d0/a4c9bb23b;
dori @a3a28f017 CLEAR; dori at the final tip running.
- Fix commits are prefixed by slice ('uvb-fix:', 'approve-card:',
'add-connection-qr:', 'control-page-fold:').

### Merge conditions
- check fast + CI green, dori CLEAR, gate CLEAR, t13r YES on
approve-card, uvb-S2/S3/S4, add-connection-qr, control-page-fold.
- Owner OK on add-connection-qr UI and phone-first-build: both given.
- Owner tests the Mac + phone preview of the final tip and says OK
(lead's condition).



## Owner-fix round (fix/owner-0510, landed as 89c9e26..cccb50f)

The owner tested the 89c9e26 previews and reported findings #1-#10;
the lead added items (a) sign out every device, (c) reconnect speed, (d)
PCR-1 app side + #4440 relay/account items, (e) ovis CLI cleanup (lane
ovis-cli-design), and the PC proof on re-list (#65 condition). All
landed on side branch fix/owner-0510, then fast-forwarded here.

| Item | Commits |
|---|---|
| #1 signed-in 0-PC: 3 tabs + ⋮ menu | 09a09dc |
| #2 confirm an unconfirmed PC (+ two-step line, gaps) | 0325bf6,
ea87f1e, 3cc9d07 |
| #3 setup row = checklist | 164012c |
| #4 Tailscale serve/open (+ owner-login condition) | e614cf1,
ab20c89 |
| #5 phone approve/deny of a join | 701e023, 9cf9b1a, 1dd2c61 |
| #6 Direct = address line + code, no QR | 2caeb4e, e02aedc |
| #7 signed-out account PC one line | 7928083 |
| #8 join notice to the right windows, kept until seen | 6662003,
f718efe, dbd2f68, cccb50f |
| #9 reconnect UI (grey after 1 s, card after 10 s) | 4a6247e |
| #10 Inbox entry beside Settings | 0ec0dbe |
| SSH from hosted Direct -> app's own SSH screen | 1c51cb1, 3f9be0b
|
| (a) sign out every device (account#64 live) | 9b63d95, c8fa0a4,
7b2574f |
| (c) reconnect wins | 84b8ce6, 69b5c1e |
| (d) PCR-1 app retry + #4440 items + Delete account wording |
e26082f, 11c8926..9f60656, e6168df |
| PC proof on re-list after ovis logout (account#65 live) | e66b12b |
| (e) ovis CLI (login/logout/approve/pair --relay) | 11c13e1,
dcae136, f363d42 |
| fake parity with account#62/#63, red-test fixes, B1b | 9a47489,
25ad3d9, bcf5059, 181884b, 2072a04, 15cea4f, 1674ca5,
ea66c62 |

Review trail for the round: security-triage YES per item (Tailscale
routes with the owner-login condition; confirm UI conditions; sign-out
wording; join notice; SSH handoff; Decline; logout/leave with PC proof;
MEDIUM pc-proof scoping ledgered as ovis-sh/account#66, MUST-CLOSE
before Step 2 opens beyond the owner). Opus gate (one pass over the
round): CLEAR at 181884b, delta CLEAR at cccb50f (join-notice MEDIUM
fixed). check fast in the CI image: green at 03fcd4e06 (unit 22471/0).

---------

Co-authored-by: sisyphus-dev-ai <[email protected]>
Co-authored-by: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold Not merged until the owner says so

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant