Skip to content

[Bug]: Open in code editor discards the hostname the client paired through and links to an unresolvable <hostname>.local #10906

Description

@terryds

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Run a T3 Code server on a machine that has sshd but no Tailscale, reachable by a real DNS name. Mine is an exe.dev VM with machine hostname myvm, reachable as myvm.exe.xyz.
  2. From a client on another network, pair by that name, e.g. https://myvm.exe.xyz.
  3. Open any thread and click Open in VS Code.

Expected behavior

VS Code opens the project over Remote-SSH on myvm.exe.xyz. The client is already talking to the server by that name, and SSH to it works from the same machine.

Actual behavior

VS Code launches with vscode://vscode-remote/ssh-remote+myvm.local/... and fails:

Could not establish connection to "myvm.local": Could not resolve hostname.

myvm.local is the mDNS fallback the server advertises. It only resolves on the server's own LAN, which a cloud VM does not share with any client. Nothing in the UI shows which host will be used before clicking.

Impact

Major degradation or frequent failure

Version or commit

main @ 6c58362 (desktop 0.0.40, nightly v0.0.41-nightly.20260909.1439)

Environment

Server: Linux VM on exe.dev, hostname myvm, sshd listening, no Tailscale. Client: macOS 26.5, <desktop app / Chrome — fill in>, paired via https://myvm.exe.xyz.

Logs or stack traces

VS Code Remote-SSH output:


Error: OfflineError (Could not resolve hostname)

Screenshots, recordings, or supporting files

No response

Workaround

Add an alias in ~/.ssh/config on each client machine so the guessed name resolves through ssh config instead of DNS:

Host myvm.local
  HostName myvm.exe.xyz
  User <ssh user>

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Sep 9, 2026
  2. juliusmarminge commented on Sep 9, 2026

    @juliusmarminge
    Member

    Closing as a duplicate of #10326 — same Open-in-editor path: with no Tailscale, RemoteOpenTargets falls back to <hostname>.local, which remote clients cannot resolve, and the workaround is the same Host … .local ssh config alias.

    That discussion is the place to track making the advertised SSH host configurable (or otherwise reachable). The “use the hostname the client paired through” angle is a good concrete option for that work; please add it there if it isn’t already covered.

  3. added
    duplicateThis issue or pull request already exists
    and removed
    needs-triageIssue needs maintainer review and initial categorization.
    on Sep 9, 2026
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

    bugSomething is broken or behaving incorrectly.duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions