Skip to content

[Feature]: Show the desktop's managed Orca servers in a paired web client #29396

Open

Description

@YqGe585

Problem or use case

A web client paired with a desktop Orca only lists workspaces owned by that desktop. Managed Orca servers that the desktop is already connected to do not appear, and their workspaces cannot be opened from the web client.

The mobile app already has this capability. Since the mobile desktop relay (mobile.desktop-relay.v1, #26501), a phone paired with the desktop lists those servers' workspaces and reaches them through the desktop. The web client is a runtime-scoped client and does not receive that relay, so the same desktop connection exposes a smaller set of workspaces in the browser than it does on the phone.

This matters when the managed servers are reachable only through the desktop. Their runtimes listen on loopback and the desktop reaches them through its own SSH tunnels. A browser on another machine cannot pair with each server separately, even when it can reach the desktop. The desktop is the only available bridge, but the web client cannot use it.

Proposed solution

Give a paired web client the same server-workspace view the phone has:

  • List the managed Orca servers configured and connected on the paired desktop.
  • Show their workspaces in the web client's workspace list, with the owning server identified.
  • Open and operate those workspaces through the desktop. Do not require the browser to reach the servers directly.
  • Preserve the existing behavior for the desktop's own local workspaces.

The phone's delegated-device relay is the relevant precedent. This request is for managed Orca servers, not for exposing a new public web endpoint.

Alternatives or additional context

Pairing the browser with each managed server separately is not viable: the servers are not directly reachable from the browser, and sharing the desktop does not grant a route to them.

#26291 asks for Web and iPad clients to reuse the desktop's SSH-host connection. This request is the managed-server equivalent. #26501 already shipped the phone side for managed servers.

Activity

  1. jutaz commented on Oct 28, 2026

    @jutaz
    Contributor

    The same gap applies to paired desktop clients, and to a headless orca serve acting as the bridge. My setup:

    phone / laptop / browser ──pairing──▶ orca serve (always on) ──SSH──▶ one VM per workspace (managed orcad)
    

    The server reaches each VM's managed server as runtime:<env> over its own loopback tunnel. The phone can already open those workspaces through MobileDesktopRelay. The laptop and the browser can't, because they pair with runtime scope and relayMobileRequest only admits mobile-scope devices (runtime-rpc-websocket-dispatch.ts). #33284 now refuses project setup on those hosts with a clear message, and says forwarding is the real fix.

    I'd like to do that by extending the existing relay rather than adding a second proxy:

    1. Server: admit runtime-scope callers into the relay behind a new capability (e.g. runtime.desktop-relay.v1), limited to the methods the route table already marks execution-host. Mint the delegated child device on the nested server the same way the phone path does, so the client never holds the nested server's token. Revoking the client still revokes its children.
    2. Client: list relayed hosts with mobileRelay.hosts.list, give them owner-qualified host ids so they can't collide with a directly paired server, and route calls with executionHost. Relax the fix(projects): refuse project setup on a paired server's SSH host with a clear reason #33284 guard only when the server advertises the capability.
    3. Terminals: the relay refuses terminal.multiplex. Relayed hosts would start on terminal.subscribe + terminal.send. Carrying multiplex binary frames would be a separate, negotiated change.

    Mixed versions: a server without the capability keeps refusing (today's behavior), and a client without it never sends executionHost.

    I'm happy to send this as stacked PRs, server side first. Does extending MobileDesktopRelay match where you want this to go, and do you prefer a new capability string or widening mobile.desktop-relay.v1?

  2. jutaz commented on Oct 28, 2026

    @jutaz
    Contributor

    First step is up as #35195: the server side only. A paired desktop or web client that sends executionHost: runtime:<env> on an execution-host route is relayed to that managed server, behind a new runtime.client-relay.v1 capability. Anything else carrying a runtime: target is refused rather than run on the server itself.

    The client side isn't in it yet. I posted the follow-up plan on the PR (#35195 (comment)), with two questions about the route table and the device kind on the managed server that decide its shape. Next is a read-only listing of the server's managed hosts and their workspaces in the desktop sidebar.

  3. jutaz commented on Oct 28, 2026

    @jutaz
    Contributor

    Next step is up as a draft, #35242, stacked on #35195. A paired desktop now lists, read-only, the managed servers a relaying server owns and their workspaces, under "On 's servers". It uses the existing mobileRelay.hosts.* listing and only calls a server that's in contact and advertises runtime.client-relay.v1. Opening those workspaces comes with the routing step, which depends on the questions on #35195.

  4. jutaz commented on Oct 28, 2026

    @jutaz
    Contributor

    Third step, draft #35478 (stacked on #35242): main-side plumbing so a desktop can read a relayed host through the paired server: files, git status/diff/history, worktree show/ps, agent status, all read-only. It sends with executionHost only on a server connection that just advertised runtime.client-relay.v1, and never records the relayed host's identity as the server's. Opening those workspaces in the UI is the next step; the separate-transport choice is one of the open questions on the PR.

  5. jutaz commented on Oct 29, 2026

    @jutaz
    Contributor

    Draft #35631 (stacked on #35195): server-side relay of terminal.multiplex for paired desktop and web clients, behind runtime.client-relay.terminal-multiplex.v1. Stream ids pass through unchanged, and client binary frames are forwarded to the managed server on that client's own relay link. The managed server needs no change. No client uses it yet: a usable relayed terminal also needs relayed subscriptions and writes, which wait on the two questions on #35195.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions