[BUG] Orphaned temp_<epoch-ms> folders accumulate under ~/.claude/plugins/marketplaces

Status Open
Reported on v2.1.227
Maintainer reply None cached
Activity 1 comment · opened Aug 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Summary

A claude plugin marketplace or claude plugin install operation leaves an orphaned temp_<epoch-ms> folder behind, under ~/.claude/plugins/marketplaces/. Neither known_marketplaces.json nor installed_plugins.json references these folders. The CLI never removes them.

What Should Happen?

Actual behavior

~/.claude/plugins/marketplaces/ gathers one orphaned temp_* folder per plugin orut limit. On one real user machine, this reached 402 folders, from April 28, 2026

Error Messages/Logs

Steps to Reproduce

Steps to reproduce

  1. Run claude plugin marketplace add <source>, or claude plugin install <plugin>@<marketplace>, several times, across several sessions.
  2. List the contents of ~/.claude/plugins/marketplaces/.
  3. Note a temp_<epoch-ms> folder for each operation, still present after the operation finishes.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude Code version: 2.1.227

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗