{"version":"2.1.277","anchor":"plugin-preview-cache-now-prunes-old-preview-trees-instead-of","canonical_anchor":"plugin-preview-cache-now-prunes-old-preview-trees-instead-of","heading":"Plugin preview cache now prunes old preview trees instead of leaking them","tier":"internal","area":"Plugin Install","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277\/e\/plugin-preview-cache-now-prunes-old-preview-trees-instead-of","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277","markdown":"### Plugin preview cache now prunes old preview trees instead of leaking them\n\nPlugin preview cache now cleans up old preview trees instead of accumulating them\n\n**What**\n\nWhen Claude Code materializes a preview of a plugin, it now tracks how many previews have been made per source. Once a source passes a cap, the oldest preview trees are moved aside and deleted in the background. The code also guards against a caller trying to read a preview that is being pruned at the same time.\n\n**Why**\n\nThis prevents plugin preview files from piling up on disk indefinitely, while avoiding errors if a preview is read at the same moment it's being cleaned up.\n\n- Area: Plugin Install\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}