Skip to content

Unrecoverable state: Failed to add MCP via Copilot Connectors #341065

Closed

Description

Image

I tried adding Work IQ via Copilot Connectors. The auth failed in the middle due to network instability and now the UI is stuck.

No amount of killing processes and restarting the app has recovered.

Activity

  1. added
    unreleased
    on Oct 13, 2026
  2. added this to the 1.143.0 milestone on Oct 13, 2026
  3. vs-code-engineering commented on Oct 13, 2026

    @vs-code-engineering
    Contributor

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

    Summary

    • allow a Copilot Connector left in a remote pending state after interrupted or cancelled authorization to expose its existing retry path
    • preserve deduplication for locally active connection operations
    • add focused state/action tests and deterministic pending-connector fixtures backed by the production UI and install service

    Validation

    • ./scripts/test.sh --reporter dot --run src/vs/workbench/contrib/chat/test/browser/aiCustomization/connectorPresentation.test.ts --run src/vs/workbench/contrib/chat/test/browser/aiCustomization/customizationMarketplaceInstallService.test.ts --run src/vs/workbench/contrib/chat/test/browser/aiCustomization/embeddedMarketplaceDetail.test.ts — passed, 178 tests
    • npm run typecheck-client — passed
    • changed-file ESLint — passed
    • all four dark/light pending-connector fixture variants rendered without fixture errors
    • complete production-path UI probe passed:
      • connector detail: Connection pending + Try Again + 0 calls → guarded in-flight retry + 1 call → Connected + Disconnect + 1 call
      • Discover: orphaned remote pending + Connect + 0 calls → busy/disabled Connecting… + 1 call → Disconnect + 1 call

    UI evidence

    The attached videos are ordered as follows:

    1. Before: the pending connector exposes only Unavailable and cannot retry authorization.
    2. After: six asserted chapters cover both recovery surfaces:
      • the connector detail exposes Try Again;
      • Try Again is guarded while its single connector call is in flight;
      • the connector reaches Connected/Disconnect;
      • Discover recovers the post-cancel state with Connect;
      • Discover shows busy/disabled Connecting… while its single connector call is in flight;
      • Discover reaches Disconnect without a duplicate call.
    issue-341065-before.mp4
    issue-341065-after.mp4

    Source PR: #341081

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

Metadata

Metadata

Labels

insiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions