{"version":"2.1.331","anchor":"headless-sessions-pre-warm-full-gc-when-user-starts-typing","canonical_anchor":"headless-sessions-pre-warm-full-gc-when-user-starts-typing","heading":"Headless sessions free memory when you start typing after a long pause","tier":"notice","area":"Memory Management","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/headless-sessions-pre-warm-full-gc-when-user-starts-typing","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Headless sessions free memory when you start typing after a long pause\n\nAfter 2.5 minutes idle, a headless session now cleans up memory as you start typing so your next prompt is handled sooner\n\n**What**\n\nA headless session runs without the usual interactive screen. When you start typing in one after at least 150,000 milliseconds (2.5 minutes) of no activity, Claude Code now runs a full memory cleanup so it is ready for your next prompt. It skips the cleanup if the program is already using more than 268,435,456 bytes (256 MB) of memory.\n\nThis is controlled by a server-side switch that is on unless it is turned off remotely.\n\n**Why**\n\nIt is meant to cut the wait before a headless session starts responding after it has been idle.\n\n- Flag `tengu_sunny_squid`: Not enough to say (read for one account on one subscription tier against v2.1.331; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Memory Management\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}