This repository was archived by the owner on May 20, 2026. It is now read-only.
Add reload button for cloud agent timeout#1900
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
- Added a retry context map to store PR information when timeout occurs - When waitForNewSession times out, display a 'Reload' button - Button executes a command that submits a special retry message to chat - Chat participant detects retry message and restarts polling loop - Cleans up retry context after successful reconnection Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add reload button to handle timeout in chat
Add reload button for cloud agent timeout
Nov 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When waiting for a cloud agent response times out after 5 minutes, users have no way to retry the connection without re-submitting their entire request.
Changes
copilotCloudSessionsProvider.tswaitForNewSession()times outgithub.copilot.cloud.sessions.retryPollingcommandhandleRetryPolling()to restart polling loop using stored context__retry_polling_<prNumber>__inchatParticipantImpl()chatSessions.tsgithub.copilot.cloud.sessions.retryPollingcommand that submits retry message to chat viaworkbench.action.chat.submitFlow
The retry happens within the same chat context, preserving the conversation and streaming the reconnection progress directly.
Original prompt
Created from VS Code via the GitHub Pull Request extension.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.