Skip to content

GitHub Copilot facility for preemptive conversation history summarization #284474

Closed

Description

Problem: If a ticket goes on a long time (e.g. days, weeks), conversation history summarization could happen at any moment. If in the middle of an important implementation, or deep in an intricate design discussion, the last thing you want is to have summarization throw away important context from earlier on in the most recent part of the conversation.

This has happened to me repeatedly. I dread to see the notice of conversation summarization, because I know I'll then have to go back and copy and paste parts of the conversation to keep from losing important details.

Request: Add a command so that the user can preemptively request that the conversation be summarized, perhaps at the beginning of a new phase of development, or at the start of a very complex design discussion, to try to stave off summarization as long as possible.

This command is not unlike requesting that the JVM perform garbage collection. (The command could even be a hint like Java's Runtime.gc() if for some reason implementation details don't allow forcing summarization.)

This request is a mitigation and complementary to #283446. Addressing #283446 will make this feature less necessary, but it will probably always be useful given the nature of LLMs and finite context windows.

Activity

  1. added
    feature-request
    on Dec 19, 2025
  2. added this to the Backlog milestone on Dec 19, 2025
  3. garretwilson commented on Dec 25, 2025

    @garretwilson
    Author

    Yes, this is really bad. The summarization will actually happen in the middle of changes, throwing off the implementation!

    I and the LLM will plan everything out. It may be a simple change. Then the LLM starts the implementation. In the middle of the implementation, GitHub Copilot will summarize the conversation, which will lose crucial details (#283446) of what we had just planned, sending the LLM off into another direction midstream!

    This just happened. Look what it did to the poor LLM (and the poor user!):

    … The conversation was summarized mid-implementation. I only have the summary's description of what was done, not my actual memory of doing it or the reasoning at each step. The summary told me:

    • "Updated RecordIntrospector to use type resolution for generic records"
    • "Added @implNote explaining raw type fail-fast behavior"
    • Created test files

    But I don't have the actual context of why I made certain choices (like putting the @implNote in isSufficientFor() instead of RecordSchema). That decision may have made sense in the moment for some reason I articulated, or it may have been a mistake—I can't tell from the summary.

    This is why I asked you to help me understand where things went wrong. I can see the current state of the code, but I've lost the thread of reasoning that led there.

    This shows you why both #283446 is so crucial, and why this ticket will help somewhat by at least allowing me to preemptively kick off a summarization.

  4. garretwilson commented on Dec 28, 2025

    @garretwilson
    Author

    A related UI feature that what would be super helpful would be some sort of indicator (like a progress line) that indicates how long until the next summarization. This would allow the user to know how long they have until summarization obliterates important things. This would allow the user to time requests or to know if preemptive summarization is needed. It would also allow the user, if the indicator shows that it's almost time for summarization, to request an in-chat summarization that could later be copied back into the chat. It's sort of ridiculous that we would even need to do that—that's sort of what summarization is supposed to do—but it's necessary with #283446 and I find myself actually doing this frequently.

  5. garretwilson commented on Jan 5, 2026

    @garretwilson
    Author

    Unfortunately this just wasted hours of my morning (not to mention many dollars worth of tokens).

    The LLM mapped out a complete plan, even down to the source code. Then I issued a "proceed with plan" type prompt. Immediately GitHub Copilot decided to summarize the conversation. When it proceeded with the implementation, it had huge divergences from the plan. I tried to lead the LLM through correcting them, but I'm giving up now.

    I'm going to revert to a previous checkpoint, then issue several prompts to try to force summarization, paste the original plan in, and then try again. 😔

  6. garretwilson commented on Jan 8, 2026

    @garretwilson
    Author

    This simplistic summarization is happening so often at the wrong time that I'm just about to the point to want to turn off summarization altogether as suggested in #281732. Until I can control when summarization happens (this ticket), and until summarization is more intelligent (#283446), I think I would get better results by letting the earlier conversation get truncated and just periodically asking the LLM to summarize certain conclusions and plans, so I can paste them back in as needed. (An intelligent summarization should be doing this anyway as I describe in #283446.)

    However will disabling summarization simply result in truncation of the earliest part of the conversation? From the conversation in #281732 it's not clear if truncation will happen or what will happen. Please clarify truncation behavior if conversation summarization is disabled.

  7. garretwilson commented on Jan 15, 2026

    @garretwilson
    Author

    roblourens , did you see the question above?

  8. roblourens commented on Jan 16, 2026

    @roblourens
    Member

    Didn't I explain this here? #272987 (comment)

  9. garretwilson commented on Jan 19, 2026

    @garretwilson
    Author

    Didn't I explain this here? #272987 (comment)

    roblourens Not completely. Honestly I hadn't seen the part about "and how it works in Agent if you disable summarization". But my question was specifically if this would give me truncation of the earliest part of the context window, and your response doesn't directly address that:

    … we dynamically resize the whole prompt to fit the context window, resizing or dropping past attachments, responses, and tool calls.

    You don't explain the strategy GitHub Copilot takes for deciding which things to drop! Does it "resize or drop" the earliest part of the conversation? The most recent part? The biggest things? Does it flip a coin?

    What I'm hearing is that summarization will "summarize" everything (which winds up dropping lots of essential stuff); and disabling summarization will just drop stuff, with no indication of how it decides.

    Summarization is so bad (#283446), popping up at the worst time (#286822), that I just want to disable it. But it sounds like that might just be going from the frying pan to the fire.

    Can't we just have an option for GitHub Copilot to to just drop the least-recent (i.e. oldest) part of the conversation, i.e. a sliding-window strategy? That's really bad, but less bad than the current summarization algorithm, or arbitrarily dropping things throughout the conversation (if that's what it does if I disabled summarization).

  10. roblourens commented on Jan 23, 2026

    @roblourens
    Member

    That code is so old that I'm not going to give any guarantees about what the strategy is. It's not what we're focused on and I don't recommend using it. If you really want to, you have the power to look at the logs and see what it does.

  11. garretwilson commented on Jan 31, 2026

    @garretwilson
    Author

    That code is so old that I'm not going to give any guarantees about what the strategy is.

    It's notable that your response went from "Didn't I explain this … ?" to effectively "we really don't know what it does either".

  12. garretwilson commented on Jan 31, 2026

    @garretwilson
    Author

    I reiterate this need to preemptively summarize the conversation.

    I had a prompt:

    What is your conclusion in relation to the code, and how will that translate to future work, especially if we refactor the logic into separate build/deploy modules?

    [Several paragraphs of analysis and thought experiments for the LLM to consider.]

    Unfortunately in the middle of the analysis, GitHub Copilot would summarize the conversation. Because the summarization is atrocious as we have seen over and over again, it was critical that GitHub Copilot not summarize in the middle of this round.

    So I pulled out the paragraphs of analysis, and instead just added a simple prompt just to push GitHub Copilot over the line and summarize:

    What is your conclusion in relation to the code, and how will that translate to future work, especially if we refactor the logic into separate build/deploy modules?

    That didn't do it; the summarization still happened in the later large analysis. So I backed up (burning through credits as all of this foces me to do) and kept adding work for the LLM to do to push GitHub Copilot over the "content summarization" line. (Emphasis added for clarity.)

    What is your conclusion in relation to the code, and how will that translate to future work, especially if we refactor the logic into separate build/deploy modules? Review the actual code across all the commands.

    Finally that did it! That extra work triggered GitHub Copilot to summarize the conversation, so that I could then submit the follow-up question that required in-depth analysis without mid-response summarization.

    You can see what a pain this is (not to mention how expensive it is). You can also see how this is not just a one-size-fits-all workaround—I have to try again and again each time I need this (often) with various prompts and scenarios to try to initiate summarization.

    GitHub Copilot conversation summarization is often like blowing a tire on the freeway. As sad as it seems, we need a way to tell GitHub Copilot to puncture our tires while we are still in the driveway so that we won't have a wreck later while we are barreling down the highway.

  13. garretwilson commented on Feb 6, 2026

    @garretwilson
    Author

    I'm passing by to say kudos for the context window limit indicator in v1.09. It's immensely helpful! (It needs to be updated automatically when starting VS Code or when switching models, but I'll file tickets for that if your team doesn't fix it first.)

    However the context window limit indicator only underscores the need for a preemptive summarization command. As before I'm finding myself entering pointless/redundant commands just to push the LLM over the edge and make it summarize so that I can start an important task or discussion with a relatively empty context window. Since I want the powerful LLM to be used for summarization (#282207), this means I'm literally spending oodles of money literally to do nothing, just because I don't have a command to reduce the context window size preemptively.

  14. garretwilson commented on Mar 9, 2026

    @garretwilson
    Author

    roblourens I'm going to close this ticket because it is complete: in v1.110 your team added the manual compaction facility. Let me leave a few comments and caveats.

    First of all, a sincere thanks for adding this feature!! The results are just fabulous. Now I can compact the conversion when I'm getting ready to initiate a big planned implementation, for example. I don't have to keep issuing artificial prompts just to force it over the limit so I can start with a clean (or at least cleaner) slate.

    A couple of caveats. First, unfortunately there is some problem and the compaction algorithm now still leaves the context window half full! I opened ticket #299810 for this. I realize that the context window is finite, and that you can't work magic, but unfortunately a compact operation that only frees up half the context window is significantly hampering work. Half empty is not enough wiggle room; getting down at least to 25% full or even lower on Claude Opus 4.6 is what we need to be aiming for in my experience.

    And finally there is severe bug that makes the entire conversation disappear when manually compacting under certain circumstances. I filed this as #299477. It may only occur after a certain sequence of events. Or it may have been a fluke. I'm busy and I've been too scared to try to reproduce it, so I have avoided restoring to a checkpoint before compacting; I haven't seen it be simply editing previous prompts (rather than restoring to a checkpoint) to change them to /compact. Still it's something you might want to keep an eye out for.

    Overall the additional of a manual compaction facility is big news and a very welcome addition. Thank you all again!

    Version: 1.110.1 (user setup)
    Commit: 61b3d0ab13be7dda2389f1d3e60a119c7f660cc3
    Date: 2026-03-06T23:03:27.520Z
    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
    
  15. locked and limited conversation to collaborators on Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chat-summarizationfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions