Repository navigation
Open in editor hangs forever when the server runs inside a Docker container reached over SSH #25726
Closed
oc-andrey-zaharov
started this conversation in
Ideas
Replies: 2 comments
|
Note This is an automated response from a bot acting on maria's behalf. |
0 replies
|
Closing as a duplicate of #8278, which tracks the same request. Please follow along there. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What happened
Open in editor doesn't work. My client is Cursor on a Mac, but the T3 server runs inside a VM-hosted Docker container that I reach with
gcloud compute ssh --tunnel-through-iapinto the VM followed bydocker exec -it t3 bash. When I click Open in Cursor, Cursor launches on my Mac and shows "connecting" but the connection runs forever and never opens the workspace.Diagnosis
The environment is classified as a remote SSH environment, so open-in-editor takes the
remote-linkspath and hands the OS a deep link instead of exec'ing an editor on the server host:built by
buildRemoteOpenUrl(packages/contracts/src/editor.ts). This is confirmed by the server traces containing noshell.openInEditorRPC span for the attempts — inremote-linksmode the deep link fires entirely client-side (openRemoteEditorUrlinapps/web/src/remoteOpen.ts) and never reaches the server.The deep link can't ever connect, because
ssh-remote+<host>can only address an SSH host, while the workspace lives inside a Docker container reachable only viassh <VM> && docker exec:/workspace/repos/<project>), anddocker exechop, so it stalls bringing up the remote server / never lands on the right filesystem.There is no ssh alias or advertised target that
resolveRemoteOpenState/RemoteOpenTargetscould carry that would open a containerized backend, so both open-in-editor strategies are dead ends for this topology:remote-links→ generates a link to the VM, which hangs (this report).local-exec→ would exec the editor inside the container, which has no editor onPATH, noDISPLAY, and is the wrong machine anyway.RemoteOpenTargets.resolveTargets()(apps/server/src/environment/RemoteOpenTargets.ts) also advertises nothing here (no sshd on :22, no Tailscale), so even the direct-remote path has no route — but the failure the user sees is the ssh-alias deep link hanging, not the "No SSH route" dead-end.Root gap: open-in-editor has no notion of a backend that lives inside a container behind an SSH host. A
vscode-remotelink would need theattached-container/dev-containers authority (…/attached-container+<hex>…) or an equivalent, notssh-remote+<host>.Steps to reproduce
npx t3 serveinsidedocker exec -it <container> bash); the VM is reached over SSH (here viagcloud compute ssh --tunnel-through-iap)./workspace/repos/<project>).Expected: Cursor opens the workspace on the Mac.
Actual: Cursor launches and hangs on "connecting" indefinitely; the workspace never opens. No
shell.openInEditorspan appears inserver.trace.ndjson.Version
0.0.34 (tag v0.0.34, latest stable)
Environment
Client: macOS, T3 desktop app (Electron), Cursor installed locally. Server: T3 0.0.34 in a Linux x64 Docker container (Node v24.19.0) on a GCP VM, reached via
gcloud compute ssh --tunnel-through-iap+docker exec. Server bound to127.0.0.1:8787.Evidence
Related issues
#7530 — same open-in-editor local-vs-remote subsystem, but a different failure: there a same-machine browser on a LAN IP is misclassified as remote and dead-ends at a disabled "No SSH route". This report is the opposite end — the environment is correctly remote, a deep link is generated, but
ssh-remote+<host>cannot traverse into a Docker container, so it hangs. Not a duplicate.Fix applied or workaround
Nothing was written to the machine (no DB writes, no source patches). Workaround: use Cursor's Dev Containers: Attach to Running Container — Remote-SSH into the VM, then attach to the
t3container and open the workspace folder. This is the only flow that crosses thedocker execboundary; T3's button cannot drive it.Filed by
claude (Opus 4.8) via t3 triage
All reactions