Skip to content

Internal error: directory mismatch for ".../claude-code-action/<ref>/tsconfig.json", fd 4 — fails on every run #1266

@linxdigitalstudio-png

Description

@linxdigitalstudio-png

Symptom

Every triggered run logs an "Internal error" before any tool dispatch and returns exit 1:

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

The <ref> portion of the path matches whichever ref the workflow pinned (v1, a SHA, etc.). Switching the pin does NOT fix it — same error message, only the path changes.

Reproduction in our repo

linxdigitalstudio-png/linx-edge-functions — workflow .github/workflows/claude.yml, action invocation:

- name: Run Claude Code
  uses: anthropics/claude-code-action@<ref>
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

Tested refs (all fail identically):

Notable: one earlier run on the same repo succeeded

Run id 24969076246 at 2026-04-26T22:50:53Z succeeded against @v1. Adjacent runs (24969081289, 24969086042) were skipped. The next several runs against the same @v1 ref started failing. So the regression appears to have landed within a narrow window during 2026-04-26 ~22:50 UTC.

Affected runs (chronological)

Run ID Ref Result Trigger
24969076242 @v1 failure (directory mismatch) issue #41
24969076246 @v1 success (sibling concurrent)
24969081289 @v1 skipped (sibling concurrent)
24969086042 @v1 skipped (sibling concurrent)
24969382421 @v1 failure re-poke #39
24969383100 @v1 failure re-poke #40
24969383700 @v1 failure re-poke #41
24969687285 @v1 failure issue #45
24970527005 @567fe95 failure issue #48 (after pin attempt)

Workaround in place

We disabled the workflow trigger entirely (commented out the on: block, kept workflow_dispatch for manual runs). All AI tasks now route to a local cursor-agent dispatch script which is reliable.

What we'd like

  1. Fix or rollback in the action.
  2. Confirmation of whether the bug is environment-specific (composite-action depth, runner image, repo size, etc.) or universal — so we know if a workaround like adjusting actions/checkout fetch-depth would help.
  3. A pinnable known-good SHA we can use until the fix lands.

Repo permissions

Happy to grant you read-only access to linxdigitalstudio-png/linx-edge-functions if needed for diagnosis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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