{"version":"2.1.233","anchor":"process-wide-caches-scoped-per-host","canonical_anchor":"process-wide-caches-scoped-per-host","heading":"Process-wide caches scoped per host","tier":"internal","area":"Internals","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233\/e\/process-wide-caches-scoped-per-host","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233","markdown":"### Process-wide caches scoped per host\n\nMore process-wide caches are scoped per host, which matters only for embedded multi-session hosts.\n\n**What**\n\nA batch of module-level singletons became per-host state looked up through a WeakMap on the current host object, which matters only for embedded hosts running several sessions in one process.\n\n**Details**\n\n- Moved: the temp-directory cache (Claude temp dir, child-process temp dir, bundled skills root, per-session scratchpad dirs, trusted symlink equivalences, with a reset), concurrent-session registration state, and the cached CHANGELOG contents.\n- The MCP client's memoized tool, resource, resource-template and command list caches moved off a fixed max-size argument into the shared MCP state object.\n- The background Bash task-output registry moved from static class fields to a module-level registry with register, unregister, startPolling and reset.\n\n**Evidence**\n\n`scratchpadDirBySessionId`\n\n- Area: Internals\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5"}