Skip to content

Canvas toggle error blames changed extension when another extension fails #345296

Closed

Description

  • Copilot Chat Extension Version: Built-in Agent Host
  • VS Code Version: Current Insiders
  • OS Version: Windows
  • Feature (e.g. agent/edit/ask mode): Customizations → Canvases
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): N/A
  • Logs: Reconciliation reports an unrelated extension ID as not ready.

Steps to Reproduce:

  1. Start a chat where one Canvas extension has failed to start, for example agents-qa.
  2. Open Customizations → Canvases.
  3. Disable a different extension, for example changeset-review.

Expected: Confirm that the changed extension is disabled in settings and identify the unrelated extension that prevented the change from being applied to the running chat.

Actual: The notification says the changed extension could not be stopped, while the technical error identifies another extension as the readiness failure.

🤖 Written by GitHub Copilot on behalf of Joaquín Ruales (@jruales).

Activity

  1. added
    bug
    canvases
    on Oct 30, 2026
  2. added
    unreleased
    on Oct 31, 2026
  3. added this to the 1.145.0 milestone on Oct 31, 2026
  4. vs-code-engineering commented on Oct 31, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #345297 for verification:

    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

    Situation Before After
    The selected chat stops or is replaced after enabling 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.
    The selected chat stops or is replaced after disabling 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.
    Enabling leaves the requested extension consistently starting and one unrelated extension is confirmed failed 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.
    Disabling is confirmed and one unrelated extension is confirmed failed 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.
    Enabling leaves the requested extension consistently starting and multiple unrelated extensions are confirmed failed 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.
    Disabling is confirmed and multiple unrelated extensions are confirmed failed 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.
    The requested extension is confirmed failed after enabling 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.
    The requested extension is not confirmed disabled after disabling 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 failed state. 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:

    Expanded canvas extension reconciliation error

    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 pending
    • npm run test-browser-no-install -- --run src/vs/workbench/contrib/chat/test/browser/aiCustomization/copilotCustomizationsWidget.test.ts --browser chromium — 23 passed
    • npm 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 — passed
    • npm run typecheck-client — passed

    🤖 Written by GitHub Copilot on behalf of Joaquín Ruales (@jruales).

    Source PR: #345297

  5. added
    insiders-released
    and removed
    unreleased
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcanvasesinsiders-releasedverified

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions