Skip to content

Bundled Copilot CLI repeatedly opens a GitHub sign-in popup when CLI access is disabled by organization policy #334499

Open

Description

I use GitHub Copilot Business in VS Code. My Copilot Business seat is active, but Copilot CLI is disabled by my organization’s policy.

Every time I start VS Code, the bundled Copilot CLI opens a separate GitHub sign-in popup. I can complete the GitHub sign-in successfully, but the popup appears again after restarting VS Code.

Normal Copilot authentication and chat requests work correctly. The problem appears limited to the bundled Copilot CLI component, which starts even when its related settings are disabled.

Environment:

VS Code: 1.136.1
GitHub Copilot Chat: 0.64.1
OS: Windows
Copilot plan: Copilot Business
Copilot CLI: Disabled by organization policy

Settings tested:

"github.copilot.chat.backgroundAgent.enabled": false,
"github.copilot.chat.cli.mcp.enabled": false

Relevant logs:

Logged in as ahmad-atmahadli
Got Copilot token for ahmad-atmahadli
copilot token sku: copilot_for_business_seat_quota

[CopilotCLI] MCP server started
[CopilotCLISession] Failed to fetch models:
Error: 403 "unauthorized: not authorized to use this Copilot feature"

Steps to reproduce:

  1. Use a Copilot Business account where Copilot CLI is disabled by organization policy.
  2. Start VS Code.
  3. Complete the separate Copilot CLI GitHub sign-in popup.
  4. Close all VS Code windows.
  5. Start VS Code again.
  6. Observe that the sign-in popup appears again.

Expected behavior:

When Copilot CLI is disabled by organization policy, VS Code should not start the Copilot CLI service or request separate CLI authentication. Disabling the background-agent and CLI MCP settings should also prevent related initialization.

Actual behavior:

The bundled Copilot CLI starts an MCP server, attempts to fetch models, receives a 403, and repeatedly displays a GitHub sign-in popup after VS Code restarts. Normal Copilot Chat continues to work.

Activity

  1. coolhome commented on Sep 29, 2026

    @coolhome

    I have observed this same behavior. I've been wondering if this was a known limitation of disabling that setting.

  2. ahmad-atmahadli commented on Oct 1, 2026

    @ahmad-atmahadli
    Author

    I’m no longer seeing the sign-in popup, so this appears to be working now. I haven’t changed any settings related to Copilot CLI.

    VS Code

    Version: 1.140.0 (User Setup)
    Commit: 07f806f
    Date: 2026-09-30
    Electron: 43.7.3
    Chromium: 150.0.7871.250
    Node.js: 24.21.0
    GitHub Copilot: 1.0.89-7
    OS: Windows 11 x64 (10.0.22000)

  3. ahmad-atmahadli commented on Oct 6, 2026

    @ahmad-atmahadli
    Author

    Update: The sign-in popup is still appearing occasionally, especially when I open multiple VS Code windows or instances. It doesn’t happen every time, but the issue hasn’t fully gone away. I haven’t changed any Copilot CLI settings.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions