{"version":"2.1.333","anchor":"gc-timer-env-var-override-for-a-single-process","canonical_anchor":"gc-timer-env-var-override-for-a-single-process","heading":"New variable keeps a memory-cleanup timer setting to one process","tier":"use","area":"Environment Variables","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/gc-timer-env-var-override-for-a-single-process","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### New variable keeps a memory-cleanup timer setting to one process\n\nSetting `CLAUDE_CODE_GC_TIMER_FOR_THIS_PROCESS` stops `BUN_GC_TIMER_INTERVAL` being passed on to programs Claude Code starts\n\n**What**\n\nClaude Code now reads a new environment variable (a setting passed to a program from your shell), `CLAUDE_CODE_GC_TIMER_FOR_THIS_PROCESS`. When it is set, Claude Code removes both `BUN_GC_TIMER_INTERVAL` (which controls how often automatic memory cleanup runs) and the new variable itself from the environment it hands to programs it starts. Those programs therefore do not inherit the setting.\n\nThe same change also fixes two values in Claude Code's usage data, a purge delay and whether the collection timer is off, which had been recorded in each other's place.\n\n**Why**\n\nA memory-cleanup timer setting meant for Claude Code no longer leaks into the commands and tools it runs, and the related usage figures are now recorded correctly.\n\n- Area: Environment Variables\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}