Repository navigation
fix(updates): expose remote desktop app update actions - #771
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 15, 2026 00:32
nixuuu
added a commit
that referenced
this pull request
Nov 15, 2026
## Change In remote desktop mode, Updates showed the current Canopy app as “This computer” and its worker as a second computer. Show one row with the computer's name in both the sidebar popover and Settings → Workers → Updates. Match by the enrolled worker ID exposed through the desktop bridge. Keep local download progress and cached-package restart controls, combine gateway update-step status and recovery actions, and retain the worker's agent CLIs. Other workers, including computers with the same name, remain separate. Older bridges without the ID keep the existing rows. The change requires a new desktop build. Related: #743, #771 ## Verification - Passed: web and desktop typechecks; lint and formatting for edited files; diff review. - Browser review with development fixtures: light/dark at desktop, narrow and phone widths; short, typical and long names; downloading, downloaded, failed and waiting states. Confirmed duplicate names remain separate, missing identity and web clients keep their workers, cached updates remain restartable after a request failure, and Update targets the correct worker. - Extended desktop runtime integration coverage for enrolled identity across pairing, restart and unavailable-worker mode. All five tests were skipped locally because the built runtime was absent. - Full generation checks, repository-wide checks, tests and selected builds remain with CI. Native signed desktop installation was not exercised locally. ## Copy audit Passed `docs/copy.md` §8. “This computer” plus a repeated worker name → one computer-name row, removing duplicate information. Moved existing Update, Retry, Dismiss and restart copy into the combined row; no new terms or humour. Actions name their effect, failure text gives a recovery action, and meaning does not depend on colour. Checked truncation and wrapping with short, typical and long names at desktop and phone widths in both themes.
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paired desktop apps in remote gateway mode already support whole-app updates through
DesktopControlService. The shared updates row could still say “Managed externally” or “Offline”, disable its action based on the worker’s separate UpdateService connection, and show the old “updates itself” instructions.Use the desktop control connection and the app’s own newer release for the row, action, and version target in both the footer popover and Settings → Workers → Updates. Show “Update Canopy app” when available, explain how to reconnect or pair when unavailable, and describe whole-app updates when current. Update all skips disconnected apps with a reason. The local bundled gateway/worker remain one row, labelled “This Canopy app”.
Related: #536, #743
Validation passed:
bun install,bun run gen:check, fullbun run typecheck(plus a final web typecheck after the copy changes),bun run lint,bun run format:check, and the web build.TMPDIR=/var/tmp nice -n 10 bun run check:tmp tests/integration/desktop-updates.test.ts tests/integration/updates.test.ts tests/integration/update-center.test.ts tests/integration/updates-bundled.test.ts: 44 passed, 0 failed, nothing left in the temp dir. Fullbun run check:tmpterminated with SIGTERM before a final result; it is not counted as passed. This PR stays draft pending that repository-wide gate.Browser review passed for the shared popover and Workers updates rows in light/dark, desktop and phone widths, with short, typical and long names. Confirmed the enabled “Update Canopy app” action without the worker update stream, current-version note, visible recovery instructions, and the single local bundled app row. Used the development gallery in an isolated review checkout, with only its shell connection guard bypassed there; no live gateway or native Electron installation was involved. Removed the review server and checkout afterwards.
Copy audit (§8):
Native signed macOS installation, notification, and Squirrel restart require a Mac app run. Integration replaces only the Electron main updater boundary; it exercises real pairing, worker proof, gateway, TLS control stream, reports, idle wait, restart/reconnect, and Update all.