Skip to content

Tunnel agent host supervisor hangs after 'Resolved server version' (never reaches management-ready) #11940

Open

Description

@GuyMayer

Environment

  • Windows 11 host, VS Code Remote Tunnel (CLI + server 1.145.0, commit a717861c07586a53d83b80d742cd3f59b20a6273)
  • agent-host backend
  • CLI launched via code-tunnel tunnel service internal-run (log-on startup entry)

Symptom

The agent host supervisor repeatedly wedges during startup. After a tunnel
restart it logs:

[2026-11-04 18:01:40] info Agent host supervisor logging to C:\Users\...\.vscode-server\cli\agent-host-stable.log
[2026-11-04 18:01:41] debug Resolved quality Stable to a717861c07586a53d83b80d742cd3f59b20a6273
[2026-11-04 18:01:41] debug Resolved server version: 1.145.0 (commit a717861c07586a53d83b80d742cd3f59b20a6273)

...and then nothing. It never reaches:

Listening for agent host management requests

Consequences:

  • Running servers then log [AgentHostChannel] Upstream connection failed Error: connect ECONNREFUSED 127.0.0.1:<port> every ~30s.
  • New chat sessions hang on "Refreshing chat" and the session-target picker
    cannot be changed.
  • The wedge recurs roughly every 10-15 minutes after each tunnel restart,
    with occasional healthy windows of 30+ minutes. Occasionally the tunnel's
    relay session also drops ("disconnected primary session after EOF" /
    zombie with no established :443) with zero local network events.

Workaround

Kill all code-tunnel processes (tunnel service + any agent host
processes), then restart the tunnel service. This produces a healthy agent
host that reaches "Server ready", but it wedges again within minutes-to-half
an hour, so it is not a fix - just a reset.

Notes

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions