Skip to content

feat(computers): offer linked computers only in the desktop app - #88

Merged
nixuuu merged 1 commit into
devfrom
feat/linked-computers-desktop-only
Nov 4, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/linked-computers-desktop-only

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Linked computers link Canopy desktop apps (their local-mode gateways). Server gateways (Docker / standalone binary) no longer offer or run linking; linking server gateways is not a supported use case.

  • Gateway role: the desktop runtime starts its bundled gateway with an internal CANOPY_GATEWAY_ROLE=desktop; everything else is a server. Not a user setting.
  • Server role: linking services are not started; linking RPCs fail with "Linked computers are available only in the Canopy desktop app"; the network-access listener keeps serving phones and workers but refuses computer-link handshakes; no discovery for linking. Existing links on a server are kept but inactive.
  • Capabilities: the gateway reports whether linking is available; the web hides Settings → Linked computers and every linking entry point (network-access copy, move to another computer, computer pickers) when it isn't — including the desktop app in remote mode.
  • Desktop local mode: unchanged.
  • Polish docs updated (linked-computers, deploy, network-access, architecture).

Checks: install, gen:check, typecheck, lint, format:check, check:tmp (953 pass, 147 skip, 0 fail), web build, desktop shell build. Browser checked on a server gateway and a desktop-local one, light/dark, desktop/phone widths.

@nixuuu
nixuuu merged commit 215eca8 into dev Nov 4, 2026
9 checks passed
@nixuuu
nixuuu deleted the feat/linked-computers-desktop-only branch November 4, 2026 18:42
nixuuu added a commit that referenced this pull request Nov 4, 2026
Stage 3 (final for now) of git worktree support, on top of #82.

- **Squash-merge detection** for the "merged" cleanup policy and status:
a branch counts as merged when its PR is merged (owner-scoped GitHub
connector, checked in the gateway, no credentials on the worker) or,
without a connector, when all its commits are patch-equivalent to the
base or its changes are fully contained in the base after fetch. Covers
squash-merged and rebased branches; partially merged ones stay.
- **Worktrees for automation:** agent-spawned threads (`spawn_thread`),
bots running code tasks and scheduled tasks follow the scoped worktree
settings, with an explicit option (current checkout / new worktree /
inherit). Side threads inherit their parent's worktree by default.
Cleanup policies cover them.
- Linked-computer threads keep a clear refusal (linked computers are
desktop-only, #88); worktrees across linked computers are a later,
separate change.
- Migration `0068_worktree_automation`. The whole stack was rebased onto
current dev with migrations 0066–0068.

Known limitation: if thread creation fails after its worktree was
created, the worktree stays on disk until cleanup.

Checks per stage: install, gen:check, typecheck, lint, format:check,
shard check. Top: check:tmp (1,035 pass, 153 skip, 0 fail), web build;
composer and Settings → Worktrees checked in light/dark at desktop and
phone widths.
nixuuu added a commit that referenced this pull request Nov 4, 2026
In the desktop app's local mode the gateway is part of the app, so the
sidebar's green "Connected" said nothing useful.

- When the gateway is the app's own (desktop role, reported through the
gateway capabilities from #88), the sidebar shows nothing while the
connection is live, and still shows "Reconnecting…" / "Gateway
unavailable" when the bundled gateway has trouble.
- Server gateways and the desktop app in remote mode keep showing
"Connected".
- The status live region stays mounted while quiet, so a later reconnect
is still announced to screen readers.

Checks: web typecheck, lint, format. Not checked in the packaged desktop
app (needs a desktop-role gateway).
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