A session setting for excluding dynamic sections now survives a worker restart in headless mode.
In headless/-p mode, worker-restart handling now restores sessionState's excludeDynamicSections flag from the prior worker epoch's internal metadata (internal.exclude_dynamic_sections), so the setting survives a worker restart. A kill switch can still disable this restoration.
tengu_ccr_exclude_dynamic_restore_killswitch Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.261: off
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.
Read once, for one account on one subscription tier, against v2.1.261. It isn't a statement about your account. What a flag value here can and cannot tell you
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
* Fixed prompt caching and extended thinking breaking mid-session for SDK sessions using `excludeDynamicSections`: the first message is no longer re-rendered each requestchangelog see the edit
Anthropic's documentation has since written up excludeDynamicSections, on Claude Code changelog.
New in this build: tengu_ccr_exclude_dynamic_restore_killswitch