Skip to content

Cursor: SSH port not found and Coder workspace label not applied #1247

Description

@EhabY

Problem

In Cursor with anysphere.remote-ssh 1.1.5 or later, two things break for Coder workspaces:

  1. No latency status bar item. The extension finds the SSH process through the port in the Remote-SSH log, looking for Socks port: <port>. Cursor's Remote-SSH stopped logging that line in 1.1.5 and logs the ssh command instead (Launching SSH server via shell with command: ... -D <port>, or -L "127.0.0.1:<port>:<socket>" with the socket transport). The port is never found, so network status is never shown.
  2. Wrong workspace label. The window title and recent folders show Cursor's SSH: <long host> instead of Coder: owner∕workspace. VS Code picks the label formatter with the longest matching authority pattern, and Cursor registers <authority>*, which is one character longer than ours.

A related issue: deployments at an IPv6 address (for example [::1]) never get the Coder label in any editor, because [ and ] are read as a glob character class.

Expected

  • The port is read from the window connection's ssh command, ignoring Cursor's connection report command, which logs a similar line with its own port.
  • The Coder label wins in Cursor and matches IPv6 authorities, without changing labels for other editors or dev container windows.

Fixed by #1244.

Generated by Coder Agents on behalf of @EhabY.

Activity

  1. self-assigned this
    on Dec 3, 2026
  2. linear-code commented on Dec 3, 2026

    @linear-code
  3. added theissue type on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions