Fix misleading timeout error when Copilot Chat is not installed#1444
Draft
Copilot wants to merge 3 commits into
Draft
Fix misleading timeout error when Copilot Chat is not installed#1444Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
…re opening chat Agent-Logs-Url: https://github.com/microsoft/vscode-azureresourcegroups/sessions/099c4f86-b23d-4731-ac21-ba230a3ca969 Co-authored-by: nturinski <5290572+nturinski@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix timeout error for Ask Copilot command without Chat extension
Fix misleading timeout error when Copilot Chat is not installed
May 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds an ensureCopilotChatReady() guard to three "Ask Copilot" entry points so users get a clear install prompt for the GitHub Copilot Chat extension instead of a misleading "Chat took too long to get ready" timeout.
Changes:
- Guard
askAzureInCommandPalettewithensureCopilotChatReady()before opening chat. - Guard
askAgentAboutResourcewith the same check before issuing chat commands. - Guard
askAgentAboutActivityLogsimilarly before opening chat.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/chat/askAzure.ts | Adds early return if Copilot Chat is not ready before prompting. |
| src/chat/askAgentAboutResource.ts | Adds readiness check before executing chat commands for a resource. |
| src/chat/askAgentAboutActivityLog/askAgentAboutActivityLog.ts | Adds readiness check before opening chat for the activity log flow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
GitHub.copilot-chatis not installed, "Ask Copilot" commands would silently attempt to open chat and surface a confusing "Chat took too long to get ready" timeout instead of a clear install prompt.Changes
askAgentAboutActivityLog.ts,askAgentAboutResource.ts,askAzure.ts— AddedensureCopilotChatReady()guard before allworkbench.action.chat.opencalls. The helper already existed (used byopenChatWithAgent) but was missing from these three handlers.When
GitHub.copilot-chatis absent, the user now sees:instead of the timeout error shown above. If the extension is installed but not yet active, it is activated before opening chat.