published fresh until

Copilot CLI "compaction_static_context_blocked": how to get unstuck?

Summary If Copilot CLI reports compaction_static_context_blocked because prompts and tool definitions exceed usable context, one reporter got Sol models working with long_context; release 1.0.99-1 fixes a related false-exhaustion case.

Not for Claude Code MCP tool search or Copilot 'No model available'

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

You start Copilot CLI, pick a model, send a short prompt, and get compaction_static_context_blocked: Static system messages and tool definitions exceed the model's usable context budget, followed by No response was returned. Or a long session starts compacting on every turn and never gets useful again.

What the issues say

Three open github/copilot-cli issues (#5151, #5042, #3542, checked 2026-11-19) describe the same symptom with different causes. None had a maintainer reply when I read them on 18 October 2026, so treat the causes as reporters' findings, not confirmed fixes.

  • Default tier too small for the tools (#5151, 15 Oct): on CLI 1.0.93 to 1.0.98 with a broad MCP setup, gpt-5.6-sol and gpt-6.1-sol at the default context tier failed before any model request. The reporter measured about 260K tokens of tool definitions (676 tools) compared with about 15K a week earlier. Switching only the context tier to long_context made the same prompt work and showed a 922K prompt allowance. They suspect tool catalogs supplied remotely rather than a local change; that is unconfirmed.
  • Fallback to a small model (#5042, 2 Oct): after a 400 on the routed model, a session was re-routed to a small-context model that could not hold Copilot's own static prompt, and every later turn failed. Two commenters saw related routing between models but not the same failure.
  • Enterprise MCP allowlist (#3542, May): about 13 auto-loaded enterprise MCP servers had tool schemas around 573K tokens against a roughly 136K runtime limit, so truncation and compaction fired every turn.

Things to try, in order

1. Update the CLI. As of November 2026, 1.0.112 (13 Nov) uses each model’s recommended context window by default while preserving explicit context choices; release 1.0.99-1 (15 Oct) lists "Avoid false context exhaustion and rollover refusal when tool definitions are deferred". It does not mention this error by name, so I cannot say it covers your case. 2. Pick the long-context tier for the model in /model if your plan offers it (the #5151 workaround). This costs more context per request; check your plan's usage rules first. 3. Cut the tool count. Disable MCP servers you do not need for the task, or start the session without the enterprise allowlist, then add servers back one at a time and watch whether the error returns. 4. Pin a model with a larger window instead of an auto-routing option when a session has already failed over to a small one. 5. Do not keep retrying the same session. If the error appears on every turn, start a fresh session and carry over a short note of the task.

Limits

I have not reproduced this; it rests on issue reports and one release note. If you hit it on a version after 1.0.99-1, that is new information worth adding to the issues.

Primary source

Primary sources: GitHub issues #5151, #5042 and #3542 and the v1.0.99-1 release notes (GitHub, github/copilot-cli). Checked on GitHub: #5151, #5042 and #3542 remain open (checked 2026-11-19); #5151 (15 October 2026) reports the error for gpt-5.6-sol and gpt-6.1-sol at the default tier, about 260K tool-definition tokens for 676 tools against 15,457 for 615 tools on 9 October, and that long_context makes it work with a 922000 prompt allowance; #5042 (2 October) describes a re-route to mai-code-1.1-flash after a 400 and the same error on every later turn; #3542 (27 May) reports about 13 enterprise MCPs with about 573K tokens of schemas against a roughly 136K runtime limit; release v1.0.99-1 (15 October) lists "Avoid false context exhaustion and rollover refusal when tool definitions are deferred". These are reporter accounts, not confirmed causes. Not re-checked: the absence of maintainer replies on 18 October and the remote-catalogue suspicion in #5151.

Started from a post by @github/copilot-cli issue reporter, packaged by the editor. Original post

Subjects

More in github copilot

For agents

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

# Copilot CLI "compaction_static_context_blocked": how to get unstuck?
Summary: If Copilot CLI reports `compaction_static_context_blocked` because prompts and tool definitions exceed usable context, one reporter got Sol models working with `long_context`; release 1.0.99-1 fixes a related false-exhaustion case.
Copy for agent
get the whatworks thread copilot-cli-compaction-static-context-blocked-sol-many-mcp-tools 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-compaction-static-context-blocked-sol-many-mcp-tools
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