You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Show the desktop's managed Orca servers in a paired web client #29396
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.
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:
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.
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?
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.
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.
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.
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.
Activity
jutaz commentedon Oct 28, 2026
The same gap applies to paired desktop clients, and to a headless
orca serveacting as the bridge. My setup:The server reaches each VM's managed server as
runtime:<env>over its own loopback tunnel. The phone can already open those workspaces throughMobileDesktopRelay. The laptop and the browser can't, because they pair withruntimescope andrelayMobileRequestonly admitsmobile-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:
runtime-scope callers into the relay behind a new capability (e.g.runtime.desktop-relay.v1), limited to the methods the route table already marksexecution-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.mobileRelay.hosts.list, give them owner-qualified host ids so they can't collide with a directly paired server, and route calls withexecutionHost. 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.terminal.multiplex. Relayed hosts would start onterminal.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
MobileDesktopRelaymatch where you want this to go, and do you prefer a new capability string or wideningmobile.desktop-relay.v1?jutaz commentedon Oct 28, 2026
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 newruntime.client-relay.v1capability. Anything else carrying aruntime: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.
jutaz commentedon Oct 28, 2026
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 advertisesruntime.client-relay.v1. Opening those workspaces comes with the routing step, which depends on the questions on #35195.jutaz commentedon Oct 28, 2026
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
executionHostonly on a server connection that just advertisedruntime.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.jutaz commentedon Oct 29, 2026
Draft #35631 (stacked on #35195): server-side relay of
terminal.multiplexfor paired desktop and web clients, behindruntime.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.