Agents window does not restore completed remote AHP turn after laptop wake
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
- Copilot Chat Extension Version: Built-in with VS Code 1.134
- VS Code Version: 1.134
- OS Version: Latest macOS
- Feature (e.g. agent/edit/ask mode): Agents window connected to a remote AHP host session
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Unknown / not model-specific
- Logs: Not captured
## Steps to Reproduce
1. On a local macOS machine, open the VS Code Agents window and connect to a session hosted remotely through AHP.
2. Start a turn that performs an externally observable action. In my case, the turn removed an existing GitHub comment and created a new GitHub issue.
3. Close the laptop while the turn is running, interrupting the local client connection while leaving the remote AHP host/session running.
4. After the remote action has had time to complete, reopen the laptop and return to the session in the Agents window.
5. Try to get an update from the session.
6. Reload the Agents window.
## Expected
After reconnecting, the Agents window should reconcile the remote session state, mark the completed turn as finished, and display its response and tool results.
## Actual
The turn initially appears stuck in the Agents window and its completed response is not shown. However, the requested action did complete remotely: the original GitHub comment was gone and a new issue had been created. Once I reload the Agents window, the session history updates and shows the end of the latest turn.
This indicates that execution and persisted session history completed correctly on the remote AHP host, but the already-open local Agents window did not reconcile the terminal turn state/result after wake and reconnect. A full reload is required before the completed turn becomes visible.
This is specifically a local Agents window connected to a **remote AHP host session**, not a local Agent Host session.
Possibly related:
- #330888, which covers a resumed Agent Host session remaining in progress.
- #331310, which addresses completing the response for the turn that actually ended.
The distinguishing detail here is that the remote turn demonstrably completed and produced its external side effects while the laptop was closed, but the completed result was lost from the local UI after reconnect.
Contributor guide
Assessment
This issue has not been assessed yet.