Skip to content

Internal error: directory mismatch for tsconfig.json #1295

@Rohan-cp

Description

@Rohan-cp

Description

When running the claude-code-action, we see the following internal error in the logs (appears twice):

Internal error: directory mismatch for directory "/home/runner/work/_actions/anthropics/claude-code-action/v1/tsconfig.json", fd 4. You don't need to do anything, but this indicates a bug.

Workflow

- name: Run Claude Code Review
  uses: anthropics/claude-code-action@v1
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
    plugins: 'code-review@claude-code-plugins'
    prompt: |
      /code-review:code-review ${{ github.repository }}/pull/${{ github.event.issue.number }}
    claude_args: |
      --model claude-sonnet-4-6
      --max-turns 25
      --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr comment:*)"

Environment

  • Runner: ubuntu-latest
  • Action version: @v1
  • Trigger: issue_comment (PR comment containing @claude)

Expected behavior

No internal errors in logs.

Actual behavior

The error appears twice during the "Run Claude Code Review" step and again during "Post Run Claude Code Review". The action still completes successfully, but these warnings are confusing.

Additional context

Full log excerpt:

Log saved to /home/runner/work/_temp/claude-execution-output.json
Set session_id: 6e3e4ef3-6e57-4326-9a6d-c7e8356f9d52
Internal error: directory mismatch for directory "/home/runner/work/_actions/anthropics/claude-code-action/v1/tsconfig.json", fd 4. You don't need to do anything, but this indicates a bug.
...
Internal error: directory mismatch for directory "/home/runner/work/_actions/anthropics/claude-code-action/v1/tsconfig.json", fd 4. You don't need to do anything, but this indicates a bug.
No buffered inline comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existsp3Minor bug or general feature request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions