Backport VS Code terminal-output memory leak fix by JordanGlue · Pull Request #5 · JordanGlue/agent-attention-vscode · GitHub
Skip to content

Backport VS Code terminal-output memory leak fix - #5

Merged
JordanGlue merged 1 commit into
mainfrom
fix/vscode-main-terminal-memory
Sep 15, 2026
Merged

JordanGlue merged 1 commit into
mainfrom
fix/vscode-main-terminal-memory

Conversation

@JordanGlue

Copy link
Copy Markdown
Owner

Summary

VS Code 1.108.0 can retain unconsumed terminal-output events in its main process until JavaScript heap exhaustion closes the whole application. Add a reversible local backport of microsoft/vscode#323980, scoped to the exact inspected build and SHA-256.

The repair preserves management-event buffering, validates the patched bundle, backs up the original, and supports check/install/remove operations. Documentation records the crash evidence, full-restart requirement, and rollback procedure. This repair is separate from Agent Attention's extension changes already on main.

Validation

  • Repository verification passes, including all 9 existing regression tests.
  • All 6 backport tests pass: reproduce 20,000 retained chunks using the shipped code, verify the repair removes unused subscriptions while preserving live delivery and lifecycle replay, validate syntax, and exercise idempotent installation and rollback.
  • Installed bundle and original backup hashes verified locally.

The repair is installed locally but requires a full VS Code restart. Long-running stability after restart has not yet been verified. Tests for the backport require the supported local VS Code 1.108.0 installation.

@JordanGlue
JordanGlue merged commit cb22511 into main Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant