Skip to content

GitHub Copilot context window meter accumulates ghost data and continuously forces compaction in v1.110+ #299810

Closed

Description

In v1.110 conversation summarization/compaction does not reclaim much context window space. For example, immediately after summarizing the conversation of Claude Open 4.6 (the first compaction in the conversation), the context window is still 50% full! This is hardly useful. Previous versions of GitHub Copilot would result in perhaps 20% or less (if I remember correctly) of the context window being full directly after context summarization.

I manually invoke /compact immediately after compaction, the context window drops down only slightly, to e.g. 36% full.

Is this the expected workflow in v1.110—that compaction not do much, but that a user needs to manually invoke /compact repeatedly to slowly reclaim context window space, which would have automatically been reclaimed in previous versions?

Version: 1.110.0 (user setup)
Commit: 0870c2a0c7c0564e7631bfed2675573a94ba4455
Date: 2026-03-04T01:20:28.863Z
Electron: 39.6.0
ElectronBuildId: 13330601
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Activity

  1. added
    chat-ext-issue
    on Mar 6, 2026
  2. removed
    chat-ext-issue
    on Mar 6, 2026
  3. garretwilson commented on Mar 9, 2026

    @garretwilson
    Author

    This is starting to be pretty limiting. I know that the context window is finite. But in earlier versions, there was actually enough room right after compaction to do a fair amount of planning and design. Now even if I manually compact, half of the context window is still used up, and I can't do anything about it. This is a suffocating lack of space; anything more than trivial planning suddenly eats up the rest of the window. This is a stifling regression.

  4. garretwilson commented on Mar 9, 2026

    @garretwilson
    Author

    Oh no, this is getting worse. After a conversation goes on, it seems that compacting is getting less and less effective. It just took a long time to compact (I left and read several news articles), and after compaction the compact window is still 76% full! This is unworkable.

    Here, I had the LLM describe the problem. Bhavya U (@bhavyaus) please take a look at this. This is a real problem.


    Conversation summarization retains too much detail, resulting in minimal context window savings.

    After compaction, the context window remains ~76% full despite the static overhead (system prompt, instructions, etc.) not having grown. The root cause is that the generated <conversation-summary> is a near-lossless compression of the conversation rather than a lossy summarization. Observed issues:

    • Redundant parallel structures. The summary contains both a chronological narrative (<analysis>) and a structured summary (<summary>) that cover heavily overlapping ground. Both survive compaction, roughly doubling the representation cost.

    • Codebase details transcribed into the summary. Full method signatures, parameter types, record field lists, constant values, and source line numbers are copied into the summary verbatim—information that already exists in workspace files and can be re-read with a single tool call. The summary should reference what was learned, not reproduce the raw data.

    • Tool-call traces preserved. The summary records individual tool invocations (search queries, file reads, edit operations) and their results. This is execution trace, not semantic context relevant to future turns.

    • File content duplicated. Plan files, design documents, and other artifacts written to disk during the conversation are restated in full in the summary. Since these files persist in the workspace, the summary only needs to note their existence and location.

    • No relevance decay. Completed and committed work retains the same level of detail as in-progress work. Once a task is finished and its artifacts are on disk or in version control, the summary should reduce it to a one-line note rather than preserving every intermediate finding, correction, and decision.

    Expected behavior: Summarization should aggressively prune detail that can be recovered from the workspace, collapse completed work to brief references, eliminate redundant parallel structures, and omit tool-call-level operational traces. The summary should capture what the agent knows that isn't written down elsewhere—key decisions, unresolved questions, and the current focus—not serve as a transcript index.

  5. garretwilson commented on Mar 10, 2026

    @garretwilson
    Author

    The issue is still present in v1.111. Compacting for Claude Opus 4.6 still leaves the context window half full.

    Version: 1.111.0 (user setup)
    Commit: ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb
    Date: 2026-03-06T23:06:10Z
    Electron: 39.6.0
    ElectronBuildId: 13330601
    Chromium: 142.0.7444.265
    Node.js: 22.22.0
    V8: 14.2.231.22-electron.0
    OS: Windows_NT x64 10.0.26200
    
  6. garretwilson commented on Mar 11, 2026

    @garretwilson
    Author

    Bhavya U (@bhavyaus) , roblourens , this is simply broken. I may have to roll back to v1.109 because this is impeding momentum. It's hard to make headway when compacting/summarization still leaves half the context window full.

    Please provide me a temporary workaround to manually reduce the context window to 25% or less until this is fixed. (I would expect a full fix to reduce the context window to much lower than 25%, but could get by with 25% in the meantime.)

  7. canyonopm3026-create commented on Mar 11, 2026

    @canyonopm3026-create
  8. garretwilson commented on Mar 12, 2026

    @garretwilson
    Author

    The implications of this just get worse; roblourens , this is almost as bad as #272987.

    Just now the following happened:

    1. My context windows was not even close to full.
    2. Out of the blue GitHub Copilot immediately compacted my conversation before even starting to respond
    3. I immediately canceled the compaction.
    4. I edited a previous prompt (i.e. the one before the prompt triggering compaction). This prompt also triggered compaction, even though it previously had been submitted just fine with identical content without triggering compaction, and even though the context window was not near full.
    5. I restarted VS Code. The same thing happened. (At this point I have lost the subsquent prompt because I edited the previous prompt.)
    6. I had no choice but to let the compaction continue, even though there was no need to compact.
    7. Compaction finished, and I am still left with a context window 75% full. 🤦

    Please, someone step in and fix this. Yet again conversation compaction is broken all over the place, and it's severely impeding just normal work.

    Maybe developers piddling with GitHub Copilot to "create a loop and filter out green apples" don't run into this. But I am building real-world, enterprise-level projects. I can't even get through discussing a feature now, because once the LLM reloads the current plan, looks at the code, and answers my question about the plan; the context window is already full!!

    As bad as the previous compaction algorithm was, at least it freed up more room in the context window. Now it is simply broken. Again.

  9. garretwilson commented on Mar 12, 2026

    @garretwilson
    Author

    Look I don't know what do do. Now it's the compacting is still leaving the context window 60%–70% full. It seems to be degrading as the conversation goes on. It seems that the new compaction algorithm is just accumulating things—lots of duplicate things even—and never releasing them. The new algorithm accumulates unremovable cruft throughout the life of the conversation.

    If nothing else, if the GitHub team can't figure out how to make compaction work, provide us an API hook so that we can do it ourselves, and/or just truncate the history as I've begged for in #289220.

    Sincerely, the lack of commitment to address critical bugs such of these is driving even enthusiastic, high-paying customers to competing products.

  10. garretwilson commented on Mar 12, 2026

    @garretwilson
    Author

    Something really strange is going on. Now compaction is leaving the context window 72% full. Yet the debug output isn't showing that much information. Even the LLM sees that that the <conversation-summary> block is not really much larger than my custom instructions—and those would still take up a relatively small amount of space in v1.109.

    In fact if I export the node from the chat debug view to JSON, here's what I get:

    • Before compaction: 3.4 MB (e.g. Do_something_with_my_code.chatreplay.json)
    • After compaction: 123 KB (e.g. Why_does_the_meter_still_say_72.chatreplay.json)

    So it would appear that compaction is working! Something about your meter measuring the size of the context window is broken!

    Whatever it is, it is lethal. I can't make progress when compaction still shows 72% full.

  11. changed the title [-]GitHub Copilot conversation compaction effectiveness severely drops in v1.110[/-] [+]GitHub Copilot context window meter is broken, accumulates ghost data, and continuously forces compaction in v1.110+[/+] on Mar 12, 2026
  12. changed the title [-]GitHub Copilot context window meter is broken, accumulates ghost data, and continuously forces compaction in v1.110+[/-] [+]GitHub Copilot context window meter accumulates ghost data and continuously forces compaction in v1.110+[/+] on Mar 12, 2026
  13. 11 remaining items

  14. garretwilson commented on Mar 19, 2026

    @garretwilson
    Author

    It's confirmed: v1.112 makes things worse:

    1. The effective context window space after compaction is no bigger: instead, the meter is fudged to start lower after compaction—but compaction also happens sooner, so it washes out.
    2. The meter is no longer reliable: I have to remember in my mind that 77% now really means 99%, i.e. the context window is now full and will compact at 78%.

    How does pretending that the context window is bigger help users? What is the point of a meter with color indications if it effectively never shows red because it is fudged to show values 22% less than they really are?

  15. garretwilson commented on Mar 20, 2026

    @garretwilson
    Author

    Bhavya U (@bhavyaus) I opened this ticket because compaction was not lowering the context level very much. This actually steadily improved somewhat, especially the day after I filed this ticket), and right before v1.112 was released it was actually bearable (even though compaction still reduced the context window only down to 40% or so).

    This new meter fudging with v1.112 is a separate issue; I've opened #303549 for that. The insufficient compaction in this ticket remains an issue (although it has improved slightly leading up to the v1.112 release)—it's just obfuscated by the meter fudging in #303549. It's like taking one problem and adding another problem to make the entire situation worse unfortunately.

    Note that the "ghost data" that I found accumulating in this ticket may be the "reserved for response" data that suddenly appeared in v1.112. It's good that now GitHub Copilot is up-front and shows what the "ghost data" is. It's great that now we users know what this "ghost data" is. But it's incorrect and misleading to subtract the "ghost data" from the meter, as this now just produces an inaccurate meter level value.

  16. Majhi12 commented on Mar 23, 2026

    @Majhi12

    im seeing the same issues if not worse. im about done with github copilot

  17. fraenkDUS commented on Mar 24, 2026

    @fraenkDUS

    Same issue here, Claude Agent can now hardly process one multi-line prompt because it gets stuck in a "Conversation compacted" loop, restarting to work on the same task over and over again.

    Version: 1.113.0-insider (user setup)
    Commit: 92d979b
    Date: 2026-03-23T18:27:53-07:00
    Electron: 39.8.3
    ElectronBuildId: 13620978
    Chromium: 142.0.7444.265
    Node.js: 22.22.1
    V8: 14.2.231.22-electron.0
    OS: Windows_NT x64 10.0.26200

    github.copilot-chat
    Version 0.41.2026032301

    Background compaction: True
    Context window consumption: ~80%

    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    Updated todo list
    Conversation compacted
    
    Let me start implementing immediately. I need to:
    
    Modify the schema file to make xxx nullable and add xxx
    Add feature flag config
    Then continue with the rest
    Let me start with the schema modification and config changes in parallel since they're independent.
    
    Updated todo list
    
    Processing
    
  18. liuuu commented on Mar 27, 2026

    @liuuu

    im seeing the same issues

  19. Pokeylooted commented on Apr 3, 2026

    @Pokeylooted

    I'm having the same issue

  20. added this to the 1.115.0 milestone on Apr 3, 2026
  21. marked Compacting #301781 as a duplicate of this issue on Apr 4, 2026
  22. bhavyaus commented on Apr 4, 2026

    @bhavyaus
    Collaborator

    Thanks for your patience. This should be fixed in insiders and will be available in the upcoming release.

  23. matthewwiggins commented on Apr 14, 2026

    @matthewwiggins

    Bhavya U (@bhavyaus) some feedback on testing the latest Insiders build: we found that the issue persisted (frequent conversation compaction in Agent mode with Claude models causing development to be paralysed), but that reducing the number of active MCP servers fixed it.

    This wasn't a linear difference, or related to a single tool - there was point at which pruning servers off the list would suddenly cause the repeated compaction problem to basically disappear.

    Therefore, we decided to reduce the committed mcp.json to a minimum, and use local configs for when we needed infrequently used tools.

    Insiders build:

    Version: 1.116.0-insider
    Commit: 1dfb3b9
    Date: 2026-04-12T20:08:08-07:00 (1 day ago)
    Electron: 39.8.7
    ElectronBuildId: 13797146
    Chromium: 142.0.7444.265
    Node.js: 22.22.1
    V8: 14.2.231.22-electron.0
    OS: Darwin arm64 25.4.0

    Before:

    Server Type
    devvit stdio (npx)
    firebase stdio (npx firebase-tools)
    context7 stdio (npx)
    google-logging stdio (gcloud proxy)
    google-monitoring stdio (gcloud proxy)
    google-knowledge http
    google-bigquery stdio (gcloud proxy)
    google-storage stdio (gcloud proxy)
    google-firestore stdio (gcloud proxy)
    github-remote http
    figma http

    After:

    Server Type
    devvit stdio (npx)
    context7 stdio (npx)
    google-knowledge http
    github-remote http
    figma http
  24. locked and limited conversation to collaborators on May 19, 2026
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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions