Jarred Sumner on X: "Here's a 1 GB memory reduction for very long Claude Code sessions
Before: `() => controller.abort()`
Fix: `controller.abort.bind(controller)`"
forgot to mention
Claude found this bug by looking through the heapsnapshot and noticing that the “init” variable was keeping alive large strings (request bodies), which was kept alive by the JSLexicalScope (closure accessing variables from parent scope) due to the AbortSignal