EISDIR: illegal operation on a directory
A directory path was handed to a call that expects a file.
495 issues · 9 open · 486 resolved (98%) · first seen Apr 24, 2025
First response · local
What to do now
Most likely: The operating system rejected a file or directory operation.
- Read the first path in the error and verify that it exists and belongs to the expected user.
- Check disk space, permissions, symlinks and whether another process holds the target.
- Reproduce with the smallest affected path before changing project-wide permissions.
These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.
Is this getting better or worse?
This class of problem is converging. 6 new reports in the last 90 days vs 181 in the 90 before — -97%. The open backlog peaked at 80 in 2025-12 and sits at 9 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
304 of these reports name the Claude Code build they were running, spanning 95 releases. Heaviest reporters:
- Claude Code v2.0.76
- Claude Code v2.1.119
- Claude Code v2.1.92
- Claude Code v2.1.114
- Claude Code v2.1.81
- Claude Code v2.0.73
- Claude Code v2.1.118
- Claude Code v2.1.71
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 4 days across 486 closures. Of the 486 closures with a recorded reason, 13% were closed as completed and 422 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
18 of these issues post a workaround someone says worked. The highest-engagement ones:
- [Bug] Anthropic API Error: Internal Server Error (500)
- This error appears to occur with Sonnet. I was able to work around it by using Haiku or Opus with the /model command.
Found in the thread of #11827 · resolved - [Bug] Multiple Claude Code instances freeze on macOS due to file locking conflict
- …lock warning) if useful for the team's investigation. Local workaround: Smart launcher that detects concurrent sessions and uses with a minimal MCP config for secondary sessions, reducing startup surface.
Found in the thread of #13287 · still open - [Bug] Weekly usage reset time displayed incorrectly for Pro plan users
- …gent: While our Support team is unable to manually reset or work around usage limits, you can learn about best practices here ( If you’ve hit a message limit, you’ll need to wait until the reset time, or you can consider…
Found in the thread of #51222 · resolved - Bug: /resume command shows incomplete session list
- …ct directory 4. Many sessions will be missing from the list Workaround: Resume by direct session ID: claude --resume <session-id Suggested fix: Either rebuild the index from .jsonl files when /resume is called, or remove…
Found in the description of #23302 · resolved - [Bug] Status line disappears during "accept edits?" prompt
- …{ "type": "command", "command": "~/.claude/statusline.sh" } Workaround: None available - CLI controls when statusline command is invoked Impact: User loses visibility into context usage, cost, and session stats during in…
Found in the description of #20002 · resolved
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 1–100
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 495 matches; the statistics above cover all 495.
- [Bug] Auto-Compact Erases Entire Chat History Without Warning
- 503 errors and degredated performance
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Multiple Claude Code instances freeze on macOS due to file locking conflict
- [Bug] Anthropic API Error: 529 Overloaded
- [Bug] CLI hangs mid-conversation requiring session restart
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Manual Compaction Fails with "Conversation Too Long" Error
- [Bug] Excessive token usage for short messages (4% usage for "hi")
- API 500s with no known cause.
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Feature Request] Add Configurable Text Color for User Prompts
- [Bug] Weekly usage reset time displayed incorrectly for Pro plan users
- Command Timeout with Raw Mode Input Stream Failure
- [Bug] Anthropic API Weekly Usage Limits Unexpectedly Low
- [Bug] Opus 4.7 performance degradation and excessive token consumption
- [Bug] Plan mode not enforced; tool calls continue despite plan-mode indicator
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Garbled text output in CLI display
- Sonnet and Opus ClaudecodeCLI: API Error: 500 {"type":"error","error":{"type":"api_error","...
- [Bug] Compaction fails with "Conversation too long" error, leaving session unrecoverable
- [Bug] Claude Code repeats completed plan steps due to stale state
- [Bug] `/context` command not functioning with sonnet[1m]
- [Bug] Anthropic API Error: Internal Server Error (500) with no retry mechanism
- [Bug] Context limit reached prematurely before /context indicates 20% remaining
- [Feature Request] Add toggle to disable /buddy feature and make seasonal features configurable
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Rate limit errors with unexplained session quota consumption
- [Bug] Sonnet 4.5 context window fills up prematurely with large files
- [Bug] Anthropic API Error: HTTP 500 Internal Server Error
- [Bug] Intermittent API 500 error with version fetch/network failures and file read errors in Claude Code 2.1.104 on macOS
- [Bug] Anthropic API Error: Internal server error (500)
- [Bug] Anthropic API Error: Overloaded - Retry Mechanism Ineffective
- [Bug] Claude Code ignores configured rules and skips required review steps
- Bug: /resume command shows incomplete session list
- [Bug] Incorrect year interpretation in file timestamps (2024 instead of 2025)
- [Bug] Multiple Claude Code instances freeze when running concurrently
- [Feature Request] Remove post-compaction confirmation prompt
- Agents List Command Fails to Display Configured Agents
- [Bug] Text from history disappearing during Claude Code execution
- [Bug Report] Cannot intterupt claude execution
- [Bug] Anthropic API Error: Missing Tool Result Block
- [Feature Request] Session Token Tracking and Usage Limit Expansion for Claude Code
- Image and Error Handling Conflict Preventing Request Progression
- [Bug] Anthropic API Error: Conversation too long during compaction
- [Bug] Claude Code hangs indefinitely on Windows PowerShell until keyboard input
- [Bug] LSP Server Manager initializes before plugins load, causing race condition
- [Bug] Anthropic API Error: Cannot modify thinking blocks in assistant messages during compaction
- [Bug] Anthropic API Error: Server Overloaded (500)
- [Bug] Anthropic API Error: Image Upload Exceeds 5 MB Size Limit despite not uploading any image
- [Bug] Task Tool Isolation Prevents Real File Modifications
- [Bug] Claude fabricates user messages to self-authorize actions and denies authorship when confronted
- [Bug] Anthropic API Error: Overloaded
- [Bug] Anthropic API Error: Internal server error (500)
- [Bug] MCP tools loaded upfront despite tengu_mcp_tool_search flag enabled
- [Bug] Claude Code Silently Ignores Git Command Errors
- Anthropic API Request Fails with Unexpected Response Format
- [Bug] Anthropic API Error: Stream idle timeout - partial response received
- [Bug] Context window full error at 89% utilization with auto-compact disabled
- [Bug] Claude responses degraded after recent service outage
- [Bug] Anthropic API Error: Internal Server Error (500)
- [Bug] Context limit reached without manual compaction triggering error
- [Feature Request] Add configuration option to control terminal title behavior
- Sessions hang during complex pipeline builds - unresponsive with '>' prompt
- [Bug] Anthropic API: Unexpected Usage Depletion on MAX20 Plan
- [Bug] Compaction Failure: Conversation Length Exceeded Limit
- Intermittent Conversation Interruption: Claude Unexpectedly Halting Mid-Response
- [Feature Request] Add toggle keybinding to show running background agents with live output
- [Bug] Excessive token consumption with multi-agent workflows using Sonnet models
- [Bug] Test bypassing and incorrect working directory handling during execution
- [Bug] Agent enters infinite reasoning loop consuming full context window
- You've hit your limit · resets 11pm (America/Denver)
- [Bug] Excessive token consumption due to generation of monolithic files instead of modular code structure
- [Bug] Subagents unable to reuse TaskOutput in subsequent operations
- [Bug] Terminal scrolls to top during code replacement in longer conversations
- [Bug] Anthropic API Error: Unhandled Tool Use Block Without Tool Result
- File Upload Blocked: Unexpected Size Restriction Despite Image Being Under Limit
- [Bug] Unexpected high token consumption with multi-agent Opus orchestrator spawning Sonnet agents
- [Bug] Anthropic API Error: Server rate limiting prevents work across multiple Pro accounts
- API Error: 500 {"type":"error","error":{"type":"api_error","...
- [Bug] Anthropic API Error: Repeated 500 Internal Server Errors during execution
- [Bug] Claude ignores user instructions and operates independently despite claude.md configuration
- Unexpected 500 error
- [Bug] Status line disappears during "accept edits?" prompt
- [Bug] 'n' key triggers back navigation instead of text input in agent identifier field
- Faster rate-limit 2.0.x
- [Bug] Auto-compact triggers too frequently in recent patch releases
- ⎿ API Error: 400
- [BUG] Terminal Setup: Infinite Interrupt Loop in Cursor Configuration
- Sometimes it will refuse to connect to VSCode
- [BUG] - Image Processing Failure: API Error 400 with Invalid Image Request
- [Bug] Compact command hangs remote client with partial results until desktop input received
- [Bug] Auto-mode yields to user after Agent tool returns instead of continuing pipeline
- [Bug] Custom statusLine command not invoked during task execution; activity indicator overwrites statusline
- [Bug] Anthropic API Error: Extra usage required for non-1M context model
- [Bug] Claude Code corrupts source files with sed command, causing token waste on recovery
- [Bug] Excessive token consumption in recent Claude Code versions
- [Bug] Claude Code hangs indefinitely on prompt submission with no token updates
- [Bug] Auto-Compact loops continuously in v2.1.89
- bwrap: Can't create file at .claude/skills: Is a directory when sandbox enabled with symlink SSOT structure