Skip to content

Remote Agent Host sessions become undiscoverable after update to 1.141.0 #340772

Closed as duplicate

Description

Environment

  • Remote host: Microsoft Dev Box, Windows
  • Client: macOS VS Code
  • Connection: code tunnel
  • Remote VS Code before update: 1.140.0
  • Remote VS Code after update: 1.141.0

Summary

After updating VS Code on a remote Windows Dev Box, existing Agent Host sessions can no longer be opened. New sessions work correctly, and the Dev Tunnel remains connected.

Attempting to open an existing session reports:

Provider copilotcli is not ready to open copilotcli:/session-id; it may still be starting, so try again shortly

The underlying Copilot SDK session directories, event histories, session databases, checkpoints, and worktrees still exist on disk.

Observed update sequence

  1. Windows Restart Manager began the VS Code update.
  2. The pre-update remote Agent Host and Copilot runtime remained alive.
  3. The replacement tunnel/Agent Host started using VS Code 1.141.0.
  4. The old runtime continued holding inuse.<old-pid> session locks.
  5. The new host initially failed to connect to the selected Agent Host with: No connection could be made because the target machine actively refused it. (os error 10061)
  6. After terminating only the verified orphaned process tree and removing its stale lock files, the replacement Copilot provider started and authenticated successfully, but existing sessions still could not open.
  7. Startup logs report that the provider listed only one SDK session, despite many intact session-state directories.
  8. The local session index contains zero session rows.
  9. Creating a brand-new remote session succeeds.

Steps to reproduce

The exact race may depend on update timing:

  1. Run a persistent Agent Host through code tunnel on Windows.
  2. Create and use multiple Copilot CLI-backed Agent Host sessions.
  3. Update VS Code on the remote host while the tunnel and Agent Host are active.
  4. Reconnect from the client.
  5. Attempt to open a pre-update session.

Expected

Existing sessions should be rediscovered and reopened after the update. An interrupted migration should be retryable and must preserve the prior session catalog.

Actual

Existing sessions remain visible or addressable by their Agent Host URIs, but opening them repeatedly fails with Provider copilotcli is not ready. New sessions work.

The raw session data remains under .copilot/session-state, but /resume cannot find the underlying SDK session because it is absent from the new runtime's session index.

Additional notes

Full logs contain private paths and repository/session information, but sanitized excerpts can be provided.

Activity

  1. added
    bug
    agent-host
    on Oct 9, 2026
  2. changed the title [-]Remote Agent Host sessions become undiscoverable after VS Code update to 1.141.0[/-] [+]Remote Agent Host sessions become undiscoverable after update to 1.141.0[/+] on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-hostbug

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions