Repository navigation
Canvases: Add first-class Canvases customizations - #340458
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Capability negotiation, opaque provider identity handling, and harness-switch filtering have unresolved correctness issues.
3 open findings
What changed in this PR
Adds first-class Copilot extension and Canvas discovery, management, marketplace presentation, and Agent Host protocol support.
Changes:
- Adds negotiated Agent Host APIs for extension inventory/enablement and session Canvas reconciliation.
- Adds Extensions and Canvases UI sections, toolbar entries, accessible help, and marketplace filtering.
- Adds documentation, unit tests, and visual fixtures.
| File | Description |
|---|---|
.github/skills/chat-customizations-editor/SKILL.md |
Documents new fixtures. |
src/vs/platform/agentHost/browser/agentHostProtocolClient.ts |
Implements remote customization RPCs. |
src/vs/platform/agentHost/common/agent.ts |
Defines extension and Canvas contracts. |
src/vs/platform/agentHost/common/agentHostExtensionProtocol.ts |
Defines capability and RPC payloads. |
src/vs/platform/agentHost/common/agentService.ts |
Extends Agent Host service interfaces. |
src/vs/platform/agentHost/common/meta/agentHostCopilotCustomizationsMeta.ts |
Reads the negotiated capability. |
src/vs/platform/agentHost/electron-browser/localAgentHostService.ts |
Bridges local management calls. |
src/vs/platform/agentHost/node/agentHostManagementService.ts |
Exposes trusted management operations. |
src/vs/platform/agentHost/node/agentService.ts |
Routes operations to Copilot providers. |
src/vs/platform/agentHost/node/copilot/copilotAgent.ts |
Integrates Copilot extension APIs. |
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts |
Reconciles extensions and lists Canvases. |
src/vs/platform/agentHost/node/copilot/copilotFailureTelemetry.ts |
Adds operation classifications. |
src/vs/platform/agentHost/node/protocolServerHandler.ts |
Advertises and handles RPC methods. |
src/vs/platform/agentHost/test/electron-browser/agentHostProtocolClient.test.ts |
Tests client negotiation and validation. |
src/vs/platform/agentHost/test/node/copilotAgent.test.ts |
Tests persisted extension management. |
src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts |
Tests Canvas reconciliation. |
src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts |
Tests server routing and capability metadata. |
src/vs/platform/customizationMarketplace/common/customizationMarketplaceService.ts |
Classifies Canvas-tagged plugins. |
src/vs/platform/customizationMarketplace/electron-browser/customizationMarketplaceService.ts |
Implements source-change event contract. |
src/vs/platform/customizationMarketplace/test/common/customizationMarketplaceService.test.ts |
Tests Canvas classification. |
src/vs/sessions/AI_CUSTOMIZATIONS.md |
Documents ownership and lifecycle. |
src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.ts |
Adds Sessions editor sections. |
src/vs/sessions/contrib/sessions/browser/customizationsToolbar.contribution.ts |
Adds toolbar navigation entries. |
src/vs/sessions/copilot-customizations-spec.md |
Documents runtime extension and Canvas APIs. |
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDiscoveryPage.ts |
Adds Canvas discovery and filtering. |
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.ts |
Loads the new contribution. |
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts |
Supplies section navigation callbacks. |
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementSectionRegistry.ts |
Extends contribution factories. |
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationQuery.ts |
Adds the Canvas query type. |
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.ts |
Adds overview cards and copy. |
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.ts |
Adds workbench sections. |
src/vs/workbench/contrib/chat/browser/aiCustomization/copilotCustomizations.contribution.ts |
Registers sections and accessibility help. |
src/vs/workbench/contrib/chat/browser/aiCustomization/copilotCustomizationsService.ts |
Resolves and invokes the owning host. |
src/vs/workbench/contrib/chat/browser/aiCustomization/copilotCustomizationsWidget.ts |
Renders extension and Canvas inventories. |
src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplace.contribution.ts |
Updates accessible guidance. |
src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceWorkbenchService.ts |
Implements source-change event contract. |
src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMarketplaceDetail.ts |
Presents Canvas-only resources. |
src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.ts |
Defines new section identifiers. |
src/vs/workbench/contrib/chat/test/browser/aiCustomization/aiCustomizationDiscoveryPage.test.ts |
Tests Canvas catalog filtering. |
src/vs/workbench/contrib/chat/test/browser/aiCustomization/aiCustomizationQuery.test.ts |
Tests Canvas query parsing. |
src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsService.test.ts |
Tests connection routing. |
src/vs/workbench/test/browser/componentFixtures/sessions/aiCustomizationManagementEditor.fixture.ts |
Adds visual fixtures and mock data. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
aabedaf to
b9a3f3f
Compare
3a8b5dc to
c4591c2
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved targeting, concurrency, platform compatibility, and accessibility defects affect the new management flows.
9 open findings
Chat queue uses the wrong session ID · New Manage Provider navigates using the wrong chat context · New Installed Canvas entries navigate to the wrong inventory · New Accessible View omits multi-purpose Canvas plugins · New Web workbench lacks Canvas context service · New Stale host responses repopulate the inventory · New Inventory refresh loses keyboard focus · New Refresh remains disabled after connection failure · New Canvas definitions ignore the shared enabled state · New
3 resolved since last review
🧠 Review effort: Balanced
5c41b1b to
eadc1dd
Compare
eadc1dd to
c6d3feb
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved routing, request-lifetime, Canvas opening/filtering, and accessibility defects affect the new management workflows.
6 open findings
Preserve Canvas intent when combining catalog media filters · New Preserve Extensions rows during refresh and recovery states · New Ignore stale Canvas listing updates after reactivation · New Prevent rendering after widget disposal · New Reveal existing Canvas instances before requesting a new open · New Provide backend chat lookup for live agent enablement updates · New
9 resolved since last review
Manage Provider navigates using the wrong chat context Chat queue uses the wrong session ID Canvas definitions ignore the shared enabled state Refresh remains disabled after connection failure Inventory refresh loses keyboard focus Stale host responses repopulate the inventory Web workbench lacks Canvas context service Accessible View omits multi-purpose Canvas plugins Installed Canvas entries navigate to the wrong inventory
🧠 Review effort: Balanced
178a308 to
356a88b
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Web navigation availability and selected-row readability remain unresolved, and the cross-process integration still warrants human validation.
2 open findings
6 resolved since last review
Provide backend chat lookup for live agent enablement updates Reveal existing Canvas instances before requesting a new open Prevent rendering after widget disposal Ignore stale Canvas listing updates after reactivation Preserve Extensions rows during refresh and recovery states Preserve Canvas intent when combining catalog media filters
🧠 Review effort: Balanced
|
Copilot review |
1 similar comment
|
Copilot review |
582a658 to
01b41f1
Compare
Build Canvas management on the Agent Host extension inventory prerequisite. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
69a048d to
3bef006
Compare
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2d7e06b0-6cbc-4550-8075-843e70b4744f
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Ulugbek Abdullaev (@ulugbekna)Matched files:
|
Updated review videosThe PR merged while its description was being updated, so these current recordings supersede the older videos in the description. Canvas management, plugin provenance, and native opening Shows the current Agents-window experience: filtering the Canvas inventory, the blue owning-Plugin link and plugin-detail Back flow, an enabled plugin reporting no Canvases, opening Checkers through the Canvas row's More Actions menu, the canvas-extension menu with enablement first, and the Workspace canvas extension presentation without an enablement toggle. canvases-management-current.webmNo active Copilot session empty state Shows the current guidance when Customizations is opened outside an active Copilot session: select an active Copilot session, then open the Customizations menu again. canvases-no-session-current.webm |


Summary
This PR builds on the Agent Host extension inventory merged in #343438.
Architecture
ICanvasContextService,ICanvasService, andCanvasDefinitionStoreremain authoritative for Canvas ownership and lifecycle. The management widget composes one definition store per visible native Canvas context, includes input-requiring declarations so their owning Plugin remains reachable, and revalidates the exact current owner before actions run.The optional
vscode.copilotExtensionscapability supplies persisted and session-effective extension inventory. User and Plugin mutations target one exact chat for reconciliation while preserving host-owned preferences. Workspace extensions are listed from the live inventory but are read-only until their persistence and Workspace Trust contract is defined.Enablement belongs to extension parents; Canvas children remain capabilities that open through the native path. Authoritative declarations are cached by exact owner and extension identity, bounded to 200 entries, and labeled as last known when the live provider withdraws them.
Validation
npm run build-fast -- --client-only— passednpm run typecheck-client— passednpm run valid-layers-check— passedReview videos
Installed Canvas management, contextual actions, and filtering
Recorded from the current feature implementation. Shows a resumed Copilot chat publishing its installed Canvas inventory, extension-parent enablement, extensions with no reported Canvases, the shared unboxed More Actions button, Open Canvas Extension Folder, and search filtering.
canvases-management-latest-final.webm
No compatible Copilot chat empty state
Shows the distinct empty state presented when Customizations is opened before a Canvas-capable Copilot chat exists, including actionable guidance to open or resume a compatible chat.
canvases-empty-state-latest.webm
🤖 Written by GitHub Copilot on behalf of Joaquín Ruales (@jruales).
canvases-management-current.webm
canvases-no-session-current.webm