Repository navigation
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
- Windows Restart Manager began the VS Code update.
- The pre-update remote Agent Host and Copilot runtime remained alive.
- The replacement tunnel/Agent Host started using VS Code 1.141.0.
- The old runtime continued holding
inuse.<old-pid>session locks. - 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) - 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.
- Startup logs report that the provider listed only one SDK session, despite many intact session-state directories.
- The local session index contains zero session rows.
- Creating a brand-new remote session succeeds.
Steps to reproduce
The exact race may depend on update timing:
- Run a persistent Agent Host through
code tunnelon Windows. - Create and use multiple Copilot CLI-backed Agent Host sessions.
- Update VS Code on the remote host while the tunnel and Agent Host are active.
- Reconnect from the client.
- 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
- The Dev Tunnel itself is healthy.
- Relay authentication and Agent Host protocol selection succeed.
- Restarting the tunnel does not repair the catalog.
- Restarting the replacement Agent Host does not repair the catalog.
- Removing only verified stale locks from the dead runtime does not repair it.
- This may be related to Agents Window: pinned sessions disappeared after updating to VS Code 1.140.0 #339049 and presents a potential data-loss risk similar to Data loss: Agent Host restores existing Copilot CLI sessions with 0 turns and permanently deletes them via empty-session GC #340552 if empty-session cleanup runs.
Full logs contain private paths and repository/session information, but sanitized excerpts can be provided.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]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[/+]