Skip to content

Pressing ‘Keep’ floods active editor with clipboard spam and corrupts file contents and sometime kinda freezes VS Code #272468

@VigilanteSystems

Description

@VigilanteSystems
  • Copilot Chat Extension Version: github.copilot-chat Version 0.32.3, github.copilot Version 1.383.1811
  • VS Code Version: 1.105.1 (system setup)
  • OS Version: Windows 10 Pro 22H2 19045.6456
  • Feature (agent/edit): Copilot “Keep”/“Undo” controls for applied edits
  • Selected model : any and all models show this behaviour, even my beloved grok1coder
  • Logs: none, available, sorry

Steps to Reproduce:

  1. Ask Copilot to apply changes that modify one or more files.
  2. Leave at least one affected file open in the editor while Copilot finishes its edits. Once the “Keep / Undo” banner appears, click “Keep.”
  3. Observe the still-open editor tab: the file begins filling with repeated clipboard/cache text (often Markdown fragments).
    The insertion continues until the file grows dramatically (e.g., ~100 lines → thousands), effectively hanging VS Code.
    (well not always THAT severe, but the file content becomes corrupted and if the spamming is ALOT then it really affect VSCode stability.)
    Closing all editor tabs before pressing “Keep” seems to avoid the spam, but keeping a tab open consistently triggers it.

PS:
one caveat, i have not yet tested if this behaviour only (like ONLY) shows when the last action copliot did, was to create or edit a markdown file, that is too microstepping for me for this really annoying "feature"(??).. i still think its a bug!
Thanks and godspeed!

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions