Skip to content

Canvases: Add first-class Canvases customizations - #340458

Merged
Joaquín Ruales (jruales) merged 12 commits into
mainfrom
jruales-copilot-customizations
Oct 23, 2026
Merged

Joaquín Ruales (jruales) merged 12 commits into
mainfrom
jruales-copilot-customizations

Conversation

@jruales

@jruales Joaquín Ruales (jruales) commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a first-class Canvases section to the Customizations editor for desktop Copilot Agent Host sessions
  • group extension parents under User, Workspace, Plugins, and Other, with their Canvas declarations as children
  • manage persisted User and Plugin extension enablement at the parent row; keep Workspace extensions visible but read-only
  • retain last-known Canvas declarations per exact chat owner so disabled providers remain understandable and reversible without crossing host or chat boundaries
  • reuse native Canvas contexts, definition refresh, opening, revealing, and restoration rather than introducing a second Canvas lifecycle
  • exclude Session extensions and marketplace discovery from this first version
  • provide keyboard operation, Accessibility Help/View content, ARIA labels, counts, focused tests, and a Dark/Light component fixture

This PR builds on the Agent Host extension inventory merged in #343438.

Architecture

ICanvasContextService, ICanvasService, and CanvasDefinitionStore remain 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.copilotExtensions capability 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 — passed
  • npm run typecheck-client — passed
  • focused Electron selection — 148 passing across Canvas management, extension routing, management-editor integration, Sessions Canvas contexts, and the Customizations toolbar
  • changed-TypeScript ESLint — passed
  • targeted Stylelint — passed with existing design-token suggestions only
  • npm run valid-layers-check — passed
  • independent reviews by Claude Opus 5.5, GPT-6.1 Sol, and GPT-6 Astra — addressed; removed desktop/web registration mismatch, Session-Canvas regression, guessed Plugin identity, dead events, cross-owner cache/state propagation, stale actions, unnecessary hidden rendering/storage writes, async focus stealing, remote-only folder actions, and closed-editor discovery
  • live authenticated Agents-window validation — inventory/actions/filtering rendered correctly, and closing then reopening Customizations restored the same 11 Canvas tree items

Review 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

Copilot AI balanced review requested due to automatic review settings October 8, 2026 07:59
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 56649cd4 Current: 9386e6af

Changed (25)

sessions/aiCustomizationShortcutsWidget/Expanded/Light
Before After
before after
sessions/aiCustomizationShortcutsWidget/MinimumHeight/Light
Before After
before after
sessions/aiCustomizationShortcutsWidget/WithMcpServers/Light
Before After
before after
sessions/aiCustomizationShortcutsWidget/MinimumHeightWithMcpServers/Light
Before After
before after
sessions/aiCustomizationShortcutsWidget/WithCounts/Light
Before After
before after
sessions/aiCustomizationShortcutsWidget/WithExtensionSuggestions/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentHostPromptMigration/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/AgentHostPromptMigrationNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersTabCopilotCompatibility/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersAllStates/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersMigrationAvailableNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/RemoteSkillsTab/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/MigrationDashboard/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/MigrationDashboardNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginMarketplaceMigrationDashboard/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginMarketplaceMigrationDashboardNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginMarketplaceMigrationDisabled/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/MigrationPromptDetailNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/MigrationConfirmation/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/MigrationConfirmationConstrainedHeight/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginMarketplaceMigrationConfirmation/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpMigrationWarningConfirmation/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/MigrationDashboardActivityScrollable/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/SessionsDiscover/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/BrowseCuratedFeeds/Light
Before After
before after

Added (1)

chat/aiCustomizations/aiCustomizationManagementEditor/CanvasesTab/Light

current

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jruales
Joaquín Ruales (jruales) force-pushed the jruales-copilot-customizations branch 2 times, most recently from 5c41b1b to eadc1dd Compare October 15, 2026 23:34
@jruales Joaquín Ruales (jruales) changed the title Add first-class Copilot Extensions and Canvases customizations [POC] Add first-class Copilot Extensions and Canvases customizations Oct 15, 2026
@jruales
Joaquín Ruales (jruales) force-pushed the jruales-copilot-customizations branch from eadc1dd to c6d3feb Compare October 16, 2026 00:03
@jruales
Joaquín Ruales (jruales) requested a balanced review from Copilot October 16, 2026 00:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jruales

Copy link
Copy Markdown
Contributor Author

Copilot review

1 similar comment
@jruales

Copy link
Copy Markdown
Contributor Author

Copilot review

Base automatically changed from jruales-copilot-extension-inventory-24e to main October 22, 2026 11:53
@jruales
Joaquín Ruales (jruales) force-pushed the jruales-copilot-customizations branch 2 times, most recently from 582a658 to 01b41f1 Compare October 22, 2026 20:33
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
@jruales
Joaquín Ruales (jruales) force-pushed the jruales-copilot-customizations branch from 69a048d to 3bef006 Compare October 23, 2026 08:10
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
@jruales
Joaquín Ruales (jruales) marked this pull request as ready for review October 23, 2026 09:47
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Ulugbek Abdullaev (@ulugbekna)

Matched files:

  • src/vs/sessions/contrib/canvases/electron-browser/sessionCanvasService.ts
  • src/vs/sessions/contrib/canvases/test/electron-browser/sessionCanvasService.test.ts

@jruales
Joaquín Ruales (jruales) enabled stacked auto-merge (squash) October 23, 2026 09:48
@jruales
Joaquín Ruales (jruales) merged commit c4c4dda into main Oct 23, 2026
59 checks passed
@jruales
Joaquín Ruales (jruales) deleted the jruales-copilot-customizations branch October 23, 2026 09:55
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone Oct 23, 2026
@jruales

Copy link
Copy Markdown
Contributor Author

Updated review videos

The 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.webm

No 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants