{"version":"2.1.229","anchor":"global-mutable-state-replaced-with-per-host-containers","canonical_anchor":"global-mutable-state-replaced-with-per-host-containers","heading":"Global mutable state replaced with per-host containers","tier":"internal","area":"Session State","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.229\/e\/global-mutable-state-replaced-with-per-host-containers","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.229","markdown":"### Global mutable state replaced with per-host containers\n\nShared process-wide state moved into per-session containers, so parallel sessions stop stepping on each other.\n\n**What**\n\nSession cost and usage counters, telemetry providers, auth state, prompt-cache-break state, skill health and dump-prompt state moved out of one shared mutable object into classes fetched per host through a WeakMap-backed container with an explicit reset. Several ad-hoc caches, including tool-search descriptions, fetched web URLs and agent definitions, are now class instances cleared through that container.\n\n**Evidence**\n\n`ToolSearchTool: cache invalidated - deferred tools changed`\n\n- Area: Session State\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}