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
- Fix or rollback in the action.
- 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.
- 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.
Symptom
Every triggered run logs an "Internal error" before any tool dispatch and returns exit 1:
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:Tested refs (all fail identically):
@v1(floating tag) — 7+ failures on 2026-04-26@567fe954a4527e81f132d87d1bdbcc94f7737434(SHA pin) — 2 failures on 2026-04-26 (issue Add OpenTelemetry environment variable support #48 smoke test)Notable: one earlier run on the same repo succeeded
Run id
24969076246at2026-04-26T22:50:53Zsucceeded against@v1. Adjacent runs (24969081289,24969086042) wereskipped. The next several runs against the same@v1ref started failing. So the regression appears to have landed within a narrow window during 2026-04-26 ~22:50 UTC.Affected runs (chronological)
Workaround in place
We disabled the workflow trigger entirely (commented out the
on:block, keptworkflow_dispatchfor manual runs). All AI tasks now route to a local cursor-agent dispatch script which is reliable.What we'd like
actions/checkoutfetch-depthwould help.Repo permissions
Happy to grant you read-only access to
linxdigitalstudio-png/linx-edge-functionsif needed for diagnosis.