claude-code - 💡(How to fix) Fix [Bug] SessionStart hook error: EEXIST when creating plugin data directories

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

[{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\Users\Admin\.claude\plugins\data\code-review-graph-code-review-graph'\n at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:27.449Z"},{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\Users\Admin\.claude\plugins\data\code-review-graph-code-review-graph'\n at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n at async G (B:/~BUN/root/src/entrypoints/cli.js:6187:11023)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:29.487Z"},{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\Users\Admin\.claude\plugins\data\code-review-graph-code-review-graph'\n at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n at async V (B:/~BUN/root/src/entrypoints/cli.js:6187:11830)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:29.488Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\\Users\\Admin\\.claude\\plugins\\data\\code-review-graph-code-review-graph'\n    at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:27.449Z"},{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\\Users\\Admin\\.claude\\plugins\\data\\code-review-graph-code-review-graph'\n    at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6187:11023)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:29.487Z"},{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\\Users\\Admin\\.claude\\plugins\\data\\code-review-graph-code-review-graph'\n    at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n    at async V (B:/~BUN/root/src/entrypoints/cli.js:6187:11830)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:29.488Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description lỗi hiển thị ⎿ SessionStart:startup hook error ⎿ Failed to run: EEXIST: file already exists, mkdir 'C:\Users\Admin.claude\plugins\data\code-review-graph-code-review-graph' ⎿ SessionStart:startup hook error ⎿ Failed to run: EEXIST: file already exists, mkdir 'C:\Users\Admin.claude\plugins\data\codex-openai-codex'

Environment Info

  • Platform: win32
  • Terminal: waveterm
  • Version: 2.1.114
  • Feedback ID: 5ef80c59-2ffd-4bf6-9fdf-753e1f36e232

Errors

[{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\\Users\\Admin\\.claude\\plugins\\data\\code-review-graph-code-review-graph'\n    at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:27.449Z"},{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\\Users\\Admin\\.claude\\plugins\\data\\code-review-graph-code-review-graph'\n    at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6187:11023)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:29.487Z"},{"error":"Error: Plugin MCP server error - generic-error: EEXIST: file already exists, mkdir 'C:\\Users\\Admin\\.claude\\plugins\\data\\code-review-graph-code-review-graph'\n    at PjH (B:/~BUN/root/src/entrypoints/cli.js:2807:30077)\n    at async V (B:/~BUN/root/src/entrypoints/cli.js:6187:11830)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T10:21:29.488Z"}]

extent analysis

TL;DR

The most likely fix is to remove or rename the existing directories that are causing the "file already exists" error.

Guidance

  • Check the directories C:\Users\Admin\.claude\plugins\data\code-review-graph-code-review-graph and C:\Users\Admin\.claude\plugins\data\codex-openai-codex to see if they are empty or can be safely removed.
  • If the directories are not empty, consider renaming them to a different name to avoid conflicts.
  • Verify that the plugin is configured to create the directories with the correct permissions.
  • Check the plugin documentation to see if there are any specific instructions for handling directory creation errors.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue seems to be related to a plugin trying to create directories that already exist. The solution may vary depending on the specific plugin and its configuration.

Recommendation

Apply workaround: remove or rename the existing directories to avoid conflicts, as the issue is likely caused by a directory creation error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] SessionStart hook error: EEXIST when creating plugin data directories