{"version":"2.1.275","anchor":"compactsession-clear-now-resets-a-host-declared-tools-fla","canonical_anchor":"compactsession-clear-now-resets-a-host-declared-tools-fla","heading":"Compact\/session-clear now resets a 'host declared tools' flag explicitly","tier":"internal","area":"Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275\/e\/compactsession-clear-now-resets-a-host-declared-tools-fla","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275","markdown":"### Compact\/session-clear now resets a 'host declared tools' flag explicitly\n\nClearing or compacting a session now explicitly resets a per-host 'declared tools' flag\n\n**What**\n\nWhen a session is cleared or compacted (compaction summarizes and trims history to save space), Claude Code now explicitly resets a piece of state that tracks whether a host has 'declared' its tools, using a new per-host state store. This store can be subscribed to for change notifications, and at least one place in the code uses that subscription to trigger a refresh shortly afterward.\n\n**Why**\n\nThis makes sure that after a session is cleared or compacted, Claude Code doesn't hold onto a stale record of which tools a host previously declared, so that state gets recomputed cleanly.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}