Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Chat causes extension host OOM when workspace contains build artifacts #4627

Description

@sthaber

As of version 0.23.2, GitHub Copilot chat in VSCode has become unusable in our organization. When changes are made to the build directory in our source tree, chat seems to pick them up and balloon in memory. Deleting a few thousand files from build is enough for the chat extension to run the extension host on the system out of memory and get OOMkilled (60+ GB of memory in use by chat). This happens whether or not the build directory is included in or excluded from the VSCode workspace. We use vanilla Ubuntu 22.04 as our dev environment and use the remote server to connect to laptops for editing. Chat extension version 0.22.0 does not have this issue and sits at a steady ~1GB regardless of build activity. It broke somewhere between 0.22.0 and 0.23.2. I did not bisect. We have pinned 0.22.0 as a workaround for now.

  • Copilot Chat Extension Version: 0.23.2
  • VS Code Version: 1.96.4
  • OS Version: Ubuntu 22.04 (server host), various clients (Windows, Mac, Linux, repros on all)
  • Logs: Attached below

Steps to Reproduce:

  1. Set up a workspace that includes build artifacts in the source tree. In our environment this includes binary objects, JSON, autogenerated code, and a bunch of other stuff. Not sure exactly what triggers chat to explode.
  2. Run build while watching htop or similar on the host server, sorted by memory usage.
  3. Observe very high memory usage from the code extension host.
  4. Roll Copilot Chat back to version 0.23.1 and rerun; no issue.

GitHub Copilot Chat.log
remoteexthost.log -- I redacted some details about our source tree but let me know if you need more info.
Image

Metadata

Metadata

Labels

@workspacebugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions