Skip to content

fix(updates): expose remote desktop app update actions - #771

Merged
nixuuu merged 3 commits into
devfrom
fix/remote-desktop-updates
Nov 15, 2026
Merged

nixuuu merged 3 commits into
devfrom
fix/remote-desktop-updates

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

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, full bun 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. Full bun run check:tmp terminated 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):

  • “Managed by the Canopy desktop app: it updates itself…” → “Updates with the Canopy app. You can update it here when a new version is available.” Explains the available remote action.
  • “Update {worker name}” → “Update Canopy app”. Names the whole app being updated.
  • “Desktop app is offline.” → “Desktop app is offline. Open Canopy on that computer and reconnect to this gateway.” Gives a recovery action, visible below the row.
  • Pairing fallback now names this gateway and Settings → App updates for an already paired older app. Sentences follow length limits, sentence case, active voice, glossary, and punctuation. No humour, new terms, colour-only cues, or extra empty states.
  • Unsupported-app copy now explains the version limitation and points to Settings → App updates. “This computer” → “This Canopy app” for the bundled local row names what updates. Checked wrapping and truncation at desktop and phone widths.

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.

@nixuuu
nixuuu marked this pull request as ready for review November 15, 2026 00:32
@nixuuu
nixuuu merged commit 58a9c4c into dev Nov 15, 2026
12 checks passed
@nixuuu
nixuuu deleted the fix/remote-desktop-updates branch 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.
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