Skip to content

Endless summarization of conversation history #272987

Closed
microsoft/vscode-copilot-chat
#2655

Description

Type: Bug

It keeps summarizing the conversation history over and over, not just at every prompt but before every action. This takes a very long time

Extension version: 0.32.3
VS Code version: Code 1.105.1 (Universal) (7d842fb, 2025-10-14T22:33:36.618Z)
OS version: Darwin arm64 24.6.0
Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 5, 4, 4
Memory (System) 32.00GB (0.29GB free)
Process Argv --crash-reporter-id dd5d6915-dc9f-4579-9924-4cc933af0408
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
vscrp:30673768
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
nes-set-on:31340697
6abeh943:31336334
aa_c:31379599
gendocstringf:31405073
0574c672:31404437
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
treatment_gpt5applypatchexclusively:31398171
3efgi100_wstrepl:31403338
nes-auto-10:31401735
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
applesignin:31399435
defaultusage:31403421
dcggh915:31405779
nes-subseq-delay-200:31400950
je187915:31401254
3i15c187:31405349

Activity

  1. garretwilson commented on Nov 15, 2025

    @garretwilson

    This just happened to me. Each summarization took minutes. Then it would read a portion of file, and do more summarizations. The it would do a few edits in that file, and do more summarization. I probably lost 20 or 30 minutes in this little ordeal.

    I don't know if it's related, but for some reason the request added "codebase" when I didn't ask it to (very irritating). This happened immediately after. Maybe the codebase gave it so much to summarize.

    This ticket is probably a duplicate of #276657.

  2. tamuratak commented on Nov 15, 2025

    @tamuratak
    Contributor

    You can turn off the summarization with the setting github.copilot.chat.summarizeAgentConversationHistory.enabled:

  3. garretwilson commented on Nov 15, 2025

    @garretwilson

    You can turn off the summarization …

    But then what happens when the context window is full? I may go all day just getting started on a ticket implementation!

  4. roblourens commented on Nov 16, 2025

    @roblourens
    Member
  5. added
    *duplicate
    on Nov 16, 2025
  6. added
    info-needed
    and removed
    *duplicate
    on Nov 16, 2025
  7. vs-code-engineering commented on Nov 23, 2025

    @vs-code-engineering
    Contributor

    This issue has been closed as it has been labeled with info-needed and has not received the additional information that was requested from the issue author. It has been labeled as info-needed for 7 days.

  8. garretwilson commented on Nov 23, 2025

    @garretwilson

    This should not be closed; it's a significant issue.

    Just now I gave the prompt:

    Go ahead and create tests for #file:S3Synchronizer.java . If there are tests that are true unit tests and don't need to actually use the file system, place those in S3SynchronizerTest, while placing the integration tests in S3SynchronizerIT.

    1. GitHub Copilot immediately said "Summarizing conversation history".
    2. Then it created S3SynchronizerTest.java and S3SynchronizerIT.java.
    3. Then it said "Summarizing conversation history" again.
    4. I asked it a question about some of the unit tests.
    5. It said "Summarizing conversation history" again.

    Creating two files should not result in summarizing the conversation history. If that fills the context window, then conversation history summarization isn't being done effectively. Then asking a follow-up question should not result in more summarization.

    What do you need to see from the exported chat debug log?

  9. roblourens commented on Nov 24, 2025

    @roblourens
    Member

    I'd like to see whether the summarization failed, or whether you somehow ended up with enough in the request to trigger summarization again.

    Most likely it failed for some reason, the Copilot Chat output channel log at the 'debug' level would be helpful. Some request logs would also help.

  10. garretwilson commented on Nov 24, 2025

    @garretwilson

    I'm asking what specific information do you want to see from the log? It generates a lot of stuff, and as I am careful about not submitting confidential information, I don't intend to just blindly send the whole thing.

    The first thing I was greeted with this morning was "Summarizing conversation history".

  11. 43 remaining items

  12. garretwilson commented on Dec 13, 2025

    @garretwilson

    So you might get better results by giving the agent some tools so it can read the full files you've attached if needed or collect other context.

    Frankly I haven't touched tool definitions at all, other than make a "Reviewer" agent that has no tools. But maybe I should give it tools as well so it will be looking at the actual files instead of some highly-redacted summary? That seems to be what you're implying: if I don't provide any tools, then the agent won't be able to "really see" what is in my workspace?

    As you know about the inner workings of the agents (I have to just guess from the ever-changing and sometimes-stale documentation), what tools would you recommend for "Discuss" and "Reviewer" agents to make sure they can read and explore the workspace as much as they want, but just not make any changes?

    One other doubt I had: does switching from one agent to another, such as from "Agent" to "Discuss", automatically invoke some sort of summarization, or is the context carried over exactly? Would it cause summarization to happen more frequently? I'd like to switch agents at any time to refine the prompt and have limited tool usage to prevent modifications, but I wouldn't want that to somehow reduce the fidelity of the context or to increase summarization frequency.

  13. garretwilson commented on Dec 16, 2025

    @garretwilson

    Good news! In several days I have not seen any summarization loops, other than the initial one when transitioning away from Ask mode to Agent mode. Let's hope that the loops were some combination of the Opus-related bug and the Ask mode bug you mentioned. 🤞I'll continue to monitor it, but it's looking positive on this front. (Now the issue becomes quality of summarization, discussed in #283446.)

    roblourens could you address the doubts I raised in my previous comment regarding tools and information round-trip carryover? I want to make sure I'm setting up my Ask mode replacement custom agents correctly. Thanks.

  14. added a commit that references this issue on Dec 21, 2025
    3aafd6b
  15. roblourens commented on Dec 21, 2025

    @roblourens
    Member

    if I don't provide any tools, then the agent won't be able to "really see" what is in my workspace?

    That's right

    One other doubt I had: does switching from one agent to another, such as from "Agent" to "Discuss", automatically invoke some sort of summarization, or is the context carried over exactly? Would it cause summarization to happen more frequently?

    Nope. The toolset is swapped out, any instructions in your custom agent are added to the system prompt, and the rest of the conversation context is persisted exactly.

    Good news! In several days I have not seen any summarization loops

    Wonderful! Thanks for trying the new flow and helping me figure this out! I've pushed a fix for this scenario with old Ask mode.

  16. added a commit that references this issue on Dec 21, 2025
    ec6406b
  17. added
    unreleased
    on Dec 21, 2025
  18. added
    insiders-released
    and removed
    unreleased
    on Jan 5, 2026
  19. added
    verification-steps-needed
    on Jan 6, 2026
  20. roblourens commented on Jan 6, 2026

    @roblourens
    Member

    Team verification steps:

    • Build up a really long conversation in Ask mode (file attachments help)
    • Switch to agent mode in the same conversation
    • Make a request that will involve several agentic rounds
    • See that it summarizes once when switching and does not loop

    You can use github.copilot.chat.summarizeAgentConversationHistoryThreshold to trigger summarization at a lower token threshold if you want

  21. removed
    verification-steps-needed
    on Jan 6, 2026
  22. locked and limited conversation to collaborators on Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugchat-agentchat-askchat-summarizationinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions