Skip to content

feat(web): show linked computers in update settings - #213

Merged
nixuuu merged 1 commit into
devfrom
feat/linked-updates-settings
Nov 5, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/linked-updates-settings

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

Linked computers now also appear in Settings → Workers → Updates and in Settings → App updates, not only in the updates popover.

Shared rows: the popover's list moved into UpdateRows.svelte, which the popover and the Workers settings page both use. It shows:

  • this computer;
  • linked computers, with their Update action;
  • workers grouped by computer;
  • a collapsed "Agent CLIs" section, grouped by computer.

Settings → Workers → Updates

  • Shows the same rows.
  • Keeps the note pointing to App updates, the server gateway's channel field, Update all and the run status.
  • Keeps the force-restart button for this computer's remote desktop apps; linked computers' workers never get it.

Settings → App updates

  • This computer's controls are unchanged.
  • A new "Linked computers" group (LinkedAppUpdates.svelte) has one row per computer, with:
    • name, version → target, channel and a status badge;
    • Check now and Update, or "Update on that computer" when its app is too old for remote updates.
  • Both buttons are always drawn and only disabled, so a state change moves nothing.
  • The group hint says that channel and check frequency stay on each computer.

Gateway: a new ManageUpdates action, computer_check with node_id, sends the existing link check to one computer. linked-updates.test.ts now covers it reaching B's app.

Dev gallery: /dev/updates?view=settings renders both settings sections with fixtures. UpdatesPanel and LinkedAppUpdates gained an optional fixture prop for it.

Tests:

  • linked-updates 7/7, desktop-updates 8/8, update-center 9/9 and remote-threads 11/11.
  • check:tmp: 1384 passed, 0 failed.

Checked in a browser in light and dark, at desktop and phone width, with long names and every computer state.

Copy audit (§8)

  • Group "Linked computers", hint: "Each computer keeps its own channel and check frequency. Change them on that computer."
  • Buttons "Check now" and "Update" use the existing wording.
  • A too-old row says "Update on that computer" once, without repeating the reason.
  • A disabled Update uses the secondary style, so idle rows do not read as a wall of blue.

Docs: docs/updates.md, docs/settings-map.md.

Settings → Workers → Updates shows the updates center's rows through a
shared UpdateRows component: this computer, linked computers with their
Update action, workers and agent CLIs grouped by computer. The popover
uses the same component.

Settings → App updates adds a "Linked computers" group: each computer's
version, target, channel and status, with Check now and Update, or
"Update on that computer" when its app is too old. Their channel and
check frequency stay read-only here. ManageUpdates gains computer_check,
which asks one linked computer's app to check its own feed.
@nixuuu
nixuuu merged commit 63fd0f2 into dev Nov 5, 2026
9 checks passed
@nixuuu
nixuuu deleted the feat/linked-updates-settings branch November 5, 2026 19:56
nixuuu added a commit that referenced this pull request Nov 18, 2026
## Change

Canopy now updates supported global mise installations of Claude Code,
Codex and Grok from individual CLI controls and Update all. The recipe
activates exact targets with `mise use --global --yes --pin`, retains
installed versions and reactivates the previous version after failed
validation. Native and npm mise tool identities and custom
`MISE_DATA_DIR` roots are supported. Project overrides, multiple
configured versions, fixed installation paths and mise's `latest`
symlink keep manual instructions. Rollback restores an exact pin even
when the previous selector floated.

Update all no longer disables every CLI control in the popover.
Independent targets remain actionable while their own queued/running
steps, worker updates and computer restarts prevent conflicting actions.
The existing four concurrent scheduler slots and per-worker installer
resource locks remain in effect, including a shared mise configuration
lock through rollback.

CLI steps persist an attempt UUID before dispatch and carry it through
the authenticated local or linked InstallCli route. Stale failures
cannot fail a new attempt, and uncertain acknowledgements wait for
reports instead of failing after 60 seconds. A matching running attempt
waits through validation and rollback; confirmed target or newer
versions reconcile obsolete failures. Existing manual installations of
the same target are followed without another command, and waiting for a
different target remains bounded across gateway restarts.

The additive UI `install_id` field is opaque to computer routing;
WorkerLink compatibility and the frozen UpdateService are unchanged.
Older linked gateways still confirm success through the installed
version, but uncorrelated failures may wait until the step timeout. Full
attempt correlation requires updated gateways on both computers.
Behavior and release availability are documented separately.

## Verification

- Generated contracts with `bun run gen`.
- Focused `check:tmp` suites passed: `mise-cli`, `cli-discovery`,
`provider-cli`, `update-cli-attempts`, `update-center`,
`update-concurrency`, and `update-all-computers`. Coverage includes
rollback, shared resources, stale reports, lost acknowledgements,
durable restart identity, owner scoping and authenticated linked
routing; no temporary files remained.
- Worker, gateway and integration-test TypeScript checks, web Svelte
checks, scoped lint/format checks and diff checks passed locally.
- Inspected the actual popover components in Chromium at desktop and
phone widths in light and dark themes, including long names. Starting
one CLI left an independent CLI on another worker actionable; both
requests overlapped while reserved targets stayed blocked.
- Copy audit (§8): passed. New mise fallback messages explain the
unavailable update and next action; the new waiting timeout names the
problem and asks the user to check the worker and retry. Existing action
labels remain unchanged. No new confirmations, empty states, glossary
terms or decorative copy. Short, typical and long names remain readable;
status words and action labels convey meaning without colour alone.
- Full repository verification and builds are left to CI. Installers are
exercised with isolated fixtures; no live provider CLI updates or real
macOS/Windows verification were performed.

Fixes: #99
Fixes: #213
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