Skip to content

Commit 6047054

Browse files
sdsrssclaude
andcommitted
fix(plugin): clean parent cache dir on uninstall
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 19f593a commit 6047054

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

claude-plugin/scripts/lifecycle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ function uninstall() {
257257
// 5. Remove cache directory
258258
try { fs.rmSync(CACHE_DIR, { recursive: true, force: true }); } catch { /* ok */ }
259259

260-
// 6. Remove plugin files from cache (all known paths)
260+
// 6. Remove plugin files from cache (all known paths, including parent dirs)
261261
const pluginCacheDirs = [
262-
path.join(os.homedir(), '.claude', 'plugins', 'cache', MARKETPLACE_NAME, 'code-graph-mcp'),
263-
path.join(os.homedir(), '.claude', 'plugins', 'cache', 'sdsrss-code-graph', 'code-graph'),
262+
path.join(os.homedir(), '.claude', 'plugins', 'cache', MARKETPLACE_NAME),
263+
path.join(os.homedir(), '.claude', 'plugins', 'cache', 'sdsrss-code-graph'),
264264
path.join(os.homedir(), '.claude', 'plugins', 'cache', 'sdsrss', 'code-graph'),
265265
];
266266
for (const dir of pluginCacheDirs) {

0 commit comments

Comments
 (0)