Remote sessions now pass through Bun and mimalloc garbage-collection tuning environment variables to spawned processes
A new allowlist of environment variables related to memory management tuning is now forwarded to spawned processes, but only when CLAUDE_CODE_REMOTE is set to true. The variables are BUN_GC_TIMER_INTERVAL, BUN_GC_TIMER_DISABLE, BUN_GC_RUNS_UNTIL_SKIP_RELEASE_ACCESS, BUN_IDLE_GC_SECONDS, and MIMALLOC_PURGE_HOLES_MIN_INTERVAL. These control garbage collection (automatic memory cleanup) timing in Bun, the JavaScript runtime Claude Code uses, and in mimalloc, a memory allocator library.
This lets remote sessions be tuned for memory behavior via environment variables without affecting local sessions, which don't get these variables passed through.