Repository navigation
Canvases: Verify canvas extension toggle outcomes - #344904
Merged
Joaquín Ruales (jruales) merged 9 commits intoOct 29, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the Canvas extension-toggle resilience changes.
No open issues 🎉
What changed in this PR
This PR makes Canvas extension toggles resilient to unrelated runtime reconciliation failures while preserving genuine failures and saved preferences.
Changes:
- Verify failed reconciliation against fresh live inventory, accepting the toggle only when every matching target reaches the requested state.
- Deduplicate extension inventories by source-qualified runtime identity and refresh the Canvases UI after both successful and failed toggles.
- Add regression tests and document the behavior.
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsWidget.test.ts |
Tests UI refresh and saved enablement after reconciliation fails. |
src/vs/workbench/contrib/chat/browser/aiCustomization/copilotCustomizationsWidget.ts |
Refreshes canvases after either toggle outcome. |
src/vs/platform/agentHost/test/node/copilotAgent.test.ts |
Tests inventory deduplication and reconciliation verification scenarios. |
src/vs/platform/agentHost/node/copilot/copilotAgent.ts |
Deduplicates inventories and verifies target state after reconciliation errors. |
src/vs/platform/agentHost/AGENTS.md |
Documents extension identity and toggle verification behavior. |
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 29, 2026 08:41
Joaquín Ruales (jruales)
enabled auto-merge (squash)
October 29, 2026 08:41
Benjamin Christopher Simmonds (benibenj)
approved these changes
Oct 29, 2026
Joaquín Ruales (jruales)
deleted the
jruales-canvas-extension-readiness
branch
October 29, 2026 09:13
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 #344909
This change makes Canvas extension toggles resilient to aggregate runtime reconciliation failures:
runningdisabledinventory state does not prove runtime cleanup completedThis preserves the saved preference while preventing an unrelated extension lifecycle failure from incorrectly reporting that a successfully running extension failed to enable.
Validation:
npm run compile— passednpm run build-fast -- --client-only— passed./scripts/test.sh --reporter dot --run src/vs/platform/agentHost/test/node/copilotAgent.test.ts— 966 passed, 1 pendingnpm run test-browser-no-install -- --run src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsWidget.test.ts --browser chromium— 22 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/browser/aiCustomization/copilotCustomizationsWidget.ts src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsWidget.test.ts— passednpm run typecheck-client— passedproject:repro-failureextension — enabling healthycheckers-canvasreachedEnabled, produced no enable or refresh error, and retained focus on the checked switch; disabling remained an explicit reconciliation error while refreshing the saved off state🤖 Written by GitHub Copilot on behalf of Joaquín Ruales (@jruales).