Repository navigation
chat: Attribute Canvas refresh failures to the failing extension - #345297
Merged
Joaquín Ruales (jruales) merged 9 commits intoOct 31, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The test fails type-checking due to an unguarded union-property access, and disposal during the extension lookup can incorrectly let the enable operation succeed after the session is no longer live.
2 open issues
What changed in this PR
This PR addresses #345296 by using fresh live extension inventory to identify unrelated Canvas startup failures when disabling an extension, rather than blaming the changed extension.
Changes:
- Adds reconciliation error details that identify other extensions that failed to become ready.
- Updates notifications to name the blocker and confirm the requested extension is disabled in settings.
- Updates agent and widget test expectations for the revised message.
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsWidget.test.ts |
Updates notification expectations after a failed refresh. |
src/vs/platform/agentHost/test/node/copilotAgent.test.ts |
Checks attribution of an unrelated extension failure. |
src/vs/platform/agentHost/node/copilot/copilotAgent.ts |
Inspects live extension states and builds the revised failure message. |
Review effort: Balanced
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Joaquín Ruales (jruales)
marked this pull request as ready for review
October 31, 2026 00:47
Dmitriy Vasyura (dmitrivMS)
approved these changes
Oct 31, 2026
Joaquín Ruales (jruales)
deleted the
jruales/canvas-reconcile-attribution
branch
October 31, 2026 01:00
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.


Fixes #345296
When changing a canvas extension triggers reconciliation and another extension fails to start, identify the unrelated failed extension from the fresh live inventory. Notifications consistently describe the user action, the incomplete chat update, the extension that blocked it, and the possibility that the running chat does not match saved settings.
Message changes
Canvas extension '{extension}' was enabled in settings, but couldn't be started in this chat. The selected chat stopped or was replaced before its extension state could be updated.After enabling '{extension}', the canvas extension change couldn't be confirmed because the selected chat stopped or was replaced. '{extension}' is enabled in settings.Canvas extension '{extension}' was disabled in settings, but couldn't be stopped in this chat. The selected chat stopped or was replaced before its extension state could be updated.After disabling '{extension}', the canvas extension change couldn't be confirmed because the selected chat stopped or was replaced. '{extension}' is disabled in settings.Canvas extension '{extension}' was enabled in settings, but couldn't be started in this chat. {runtime reason}After enabling '{extension}', this chat couldn't finish updating canvas extensions because '{failed extension}' failed to start. This chat may not match your canvas extension settings.Canvas extension '{extension}' was disabled in settings, but couldn't be stopped in this chat. {runtime reason}After disabling '{extension}', this chat couldn't finish updating canvas extensions because '{failed extension}' failed to start. This chat may not match your canvas extension settings.Canvas extension '{extension}' was enabled in settings, but couldn't be started in this chat. {runtime reason}After enabling '{extension}', this chat couldn't finish updating canvas extensions because other canvas extensions failed to start. This chat may not match your canvas extension settings.Canvas extension '{extension}' was disabled in settings, but couldn't be stopped in this chat. {runtime reason}After disabling '{extension}', this chat couldn't finish updating canvas extensions because other canvas extensions failed to start. This chat may not match your canvas extension settings.Canvas extension '{extension}' was enabled in settings, but couldn't be started in this chat. {runtime reason}After enabling '{extension}', this chat couldn't finish updating canvas extensions because '{extension}' failed to start. This chat may not match your canvas extension settings.Canvas extension '{extension}' was disabled in settings, but couldn't be stopped in this chat. {runtime reason}After disabling '{extension}', this chat couldn't finish updating canvas extensions because '{extension}' couldn't be stopped. This chat may not match your canvas extension settings.Enabling already produced no error notification when the requested extension was confirmed running despite an unrelated reconciliation failure; that behavior is intentionally unchanged.
Attribution is limited to structured lifecycle failures and live extensions in the
failedstate. Non-lifecycle reconciliation errors, extensions that are still starting, and completed disables without a visible failing extension retain the runtime's original reason. The original lifecycle error is logged before a user-facing attributed error replaces it.Single- and multiple-failure messages are complete localization strings rather than sentences assembled from translated fragments. Inventory-verification and disposed-session failures retain the existing conservative fallback.
Screenshot of the locally reproduced scenario, with the full notification expanded:
Validation:
npm run build-fast -- --client-only— passed./scripts/test.sh --reporter dot --run src/vs/platform/agentHost/test/node/copilotAgent.test.ts— 987 passed, 1 pendingnpm run test-browser-no-install -- --run src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsWidget.test.ts --browser chromium— 23 passednpm run eslint -- src/vs/platform/agentHost/node/copilot/copilotAgent.ts src/vs/platform/agentHost/test/node/copilotAgent.test.ts src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsWidget.test.ts— passednpm run typecheck-client— passed🤖 Written by GitHub Copilot on behalf of Joaquín Ruales (@jruales).