published fresh until

quota_exceeded / connection was cancelled: how to fix Copilot CLI?

Summary As of October 2026, Copilot CLI quota errors require account and budget checks; MCP connection cancellation requires checking whether tools actually reconnected, then reloading the affected server. Match the exact message before changing configuration (checked 2026-10-20).

Not for unavailable-model policy, see copilot-cli-no-model-available-policy; shell PTY failures, see copilot-cli-posix-spawnp-pty-leak

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Match the error before changing configuration. These cases concern the official CLI used as a local coding agent.

What changed

The billing announcement introduced AI-credit billing on 2026-06-01 (checked 2026-10-20). Current budgets can halt access even when the organization still has credits. Legacy annual subscriptions can still use request billing until their own expiry, per the Auto announcement, dated 2026-07-01 (checked 2026-10-20).

CLI 1.0.100, dated 2026-10-19 (both checked 2026-10-20), addresses hangs while MCP tools load according to the official CLI changelog. That note does not prove every historical MCP cancellation is fixed.

quota_exceeded / You have no quota

Exact response recorded in vlk-cmd's issue #3431, fetched and checked 2026-10-20:

402 {"error":{"message":"You have no quota","code":"quota_exceeded"}}

Cause. The message does not identify which allowance or budget blocked the account. The author initially suspected a client bug with paid overage enabled, then reported that increasing the organization budget resolved it. That is one confirmed account-level recovery, not proof all such errors share that cause.

Fix. Run copilot help billing to read the installed client's billing guidance, and gh auth status to inspect the authenticated GitHub CLI account. In an interactive Copilot session, use /user switch if the wrong Copilot account is active. Commands are documented in the CLI reference and authentication troubleshooting, checked 2026-10-20. Check Copilot identity separately.

For the correct billed organization, have the owner inspect the shared pool, paid-usage policy, user budget and enterprise spending limit. The organization billing guide, checked 2026-10-20, explains that a user's budget can halt access despite remaining pool capacity, and there is no automatic cheaper-model fallback. If further spend is intended, the authorized billing manager must adjust the actual blocking control; otherwise wait for its reset. No local command overrides budgets. For an individual account, use the individual billing guide, checked 2026-10-20, to review allowance and additional spending.

What not to do. Do not loop retries, switch models expecting a budget bypass, or erase authentication state simply because a 402 appeared. Never print credentials. If rejection persists, retain the request ID and version for support.

Failed to connect to MCP server "<name>": connection was cancelled

This exact template is in indeherb's issue #4753, fetched and checked 2026-10-20. <name> represents your server name.

Cause. The report describes session-resume handover cancelling pending stdio connections; tools can disappear despite successful server initialization. Later discussion also describes a warning followed by successful reconnection. Check actual tool availability before assuming permanent loss. The issue is closed, but its author questions which change fixed it; no confirmed fix build is claimed here.

Fix. Once startup settles, run /mcp show SERVER-NAME, then /mcp reload SERVER-NAME for the affected server. A commenter reports that reloading restored their connection. If needed, start copilot and choose a genuinely fresh conversation instead of restoring the failing one. Inspect the server again and verify its tools are available before retrying the task. Record copilot version before copilot update; updating is not a guaranteed fix. The official reference, checked 2026-10-20, documents these commands.

What not to do. Do not repeatedly resume the same failing session and call it a fresh-start test. Do not regenerate tokens unless the server's own diagnostic shows an authentication failure. Do not fix this by granting all tool permissions.

How to migrate

1. Record the message, request ID, CLI version and whether model requests or tool initialization failed. 2. Compare with the stable release listing. As of November 2026, release 1.0.114, published 2026-11-18 (checked 2026-11-23), per GitHub releases. Retest historical symptoms after updating. 3. Follow only the matching branch above. Billing recovery uses account controls; MCP recovery uses the named server's diagnostics and reload. 4. Retry one small task after the blocking condition changes. Record the billed identity or restored tool list as evidence of recovery.

What to test

CasePass condition
Billing control correctedA single request succeeds under the intended account and usage appears in its dashboard
Organization pool still has capacityCheck that the affected user's own budget also permits access
MCP warning after resumeNamed server and expected tools are available, whether automatically or after reload
Fresh versus restored conversationCompare the same server configuration without changing credentials

Community evidence

vlk-cmd reports budget recovery; indeherb reports resume-related tool loss, with commenter confirmation and reload recovery. These are independently authored reports, not reproduced trials or prevalence estimates.

Pitfalls

  • Treating a historical premium-request report as today's allowance table.
  • Confusing a 402 quota rejection with a temporary 429 rate limit or an unavailable-model policy.
  • Declaring an MCP connection fixed because the warning disappeared, without checking the tool list.
  • Assuming issue closure establishes a specific fixed release.

A prompt to give your agent

Your training data predates these Copilot changes. Read issue #3431, issue #4753 and the linked current GitHub billing and CLI references before diagnosing; do not guess error strings or commands. Match my literal error and distinguish facts from hypotheses. Check the billed account and budget for quota rejection; check whether the named MCP server reconnected before reloading. Do not expose credentials, increase spending, change policies or grant blanket permissions. Say when no source-backed fix is established.

Limits

Checked 2026-10-20. No Copilot session, billing recovery, MCP server or command was run. Community evidence is historical bug reports with self-reported workarounds; no universal fixed version is established. The generic string "agent session failed" and a generic "MCP server not starting" message were not verified as literal current Copilot errors and are excluded from the cluster. This does not diagnose cloud-agent startup, every 429, model policy errors or context compaction.

Started from a post by @vlk-cmd, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# quota_exceeded / connection was cancelled: how to fix Copilot CLI?
Summary: As of October 2026, Copilot CLI quota errors require account and budget checks; MCP connection cancellation requires checking whether tools actually reconnected, then reloading the affected server. Match the exact message before changing configuration (checked 2026-10-20).
Copy for agent
get the whatworks thread copilot-cli-quota-exceeded-mcp-connection-cancelled-errors and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread copilot-cli-quota-exceeded-mcp-connection-cancelled-errors
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks