Skip to content

Connecting to an unreachable SSH host silently returns to Disconnected #343964

Closed

Description

@TylerLeonhardt

Testing #343790

Version: VS Code Insiders 1.144.0, commit 6e85dcfba62c2ea90aba2106eb3f071443b1a18e
OS: Linux

Steps to reproduce

  1. Enable these user settings:
    {
      "sessions.chat.experimental.environmentPicker": true,
      "sessions.chat.experimental.environmentPickerManageRemotes": true,
      "chat.remoteAgentHostsEnabled": true,
      "chat.remoteAgentHostsAutoConnect": false
    }
  2. Add this entry to your user SSH configuration, using a local port with nothing listening:
    Host repro-unreachable
        HostName 127.0.0.1
        Port 43192
        ConnectTimeout 3
    No SSH server or credentials are needed. Confirm ssh repro-unreachable reports Connection refused.
  3. Open Agents Window → New Session → Environment → Manage….
  4. Refresh, locate repro-unreachable, and select Connect.

Actual: The row immediately returns to Disconnected, with no visible error or explanation. It is unclear whether the connection was attempted or why it failed.

Expected: Surface an actionable connection failure, such as "Connection refused," rather than silently returning to the initial state.

Activity

  1. added a commit that references this issue on Oct 25, 2026
    60f1335
  2. added this to the 1.144.0 milestone on Oct 25, 2026
  3. added
    unreleased
    on Oct 25, 2026
  4. added a commit that references this issue on Oct 25, 2026
    71009c8
  5. added
    bug
    on Oct 25, 2026
  6. added
    insiders-released
    and removed
    unreleased
    on Oct 26, 2026
  7. bhavyaus commented on Oct 26, 2026

    @bhavyaus
    Collaborator

    Still only see : The row immediately returns to Disconnected, with no visible error or explanation. It is unclear whether the connection was attempted or why it failed.

  8. removed
    insiders-released
    on Oct 26, 2026
  9. bhavyaus commented on Oct 26, 2026

    @bhavyaus
    Collaborator

    My bad. Seeing it correctly:

    Image
  10. added
    verified
    and removed
    verification-found
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agents-windowbugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions