Skip to content

Fix AI code review: bump claude-code-action past Bun crash#32

Merged
mahangu merged 1 commit into
trunkfrom
fix/bump-claude-code-action-tsconfig-crash
Jun 22, 2026
Merged

Fix AI code review: bump claude-code-action past Bun crash#32
mahangu merged 1 commit into
trunkfrom
fix/bump-claude-code-action-tsconfig-crash

Conversation

@lancewillett

Copy link
Copy Markdown
Contributor

Problem

Automated Claude code reviews stopped posting across repos that use this reusable workflow. The action run shows green, but no review comment appears. The job log contains:

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

Despite the "you don't need to do anything" text, that message is the crash, not a benign warning. It is a Bun runtime bug (oven-sh/bun#25730) triggered by a --tsconfig-override flag the action passed to bun run. Bun aborts with exit code 1 before any API call is made, so the model never runs and no review is posted. The step can still report success. Reported in claude-code-action#1205, #1266, #1295.

Root cause

This workflow pinned anthropics/claude-code-action@567fe954 = v1.0.107 (April 25), which predates the fix. The model in use (claude-opus-4-6) is current and not a factor.

Fix

Anthropic dropped the --tsconfig-override flag in v1.0.143 (PR #1315). This bumps the pin to the current latest, v1.0.146, which includes the fix:

- uses: anthropics/claude-code-action@567fe954a4527e81f132d87d1bdbcc94f7737434 # v1.0.107
+ uses: anthropics/claude-code-action@0cb4f3e5e764d2e00407d29b6bf0aa9df0976d88 # v1.0.146

Every caller repo references @trunk of this reusable workflow, so this single change unblocks AI review everywhere.

Verification

  • Confirmed the fix commit (drop --tsconfig-override) is in v1.0.143 and carried forward through v1.0.146.
  • SHA 0cb4f3e5e764d2e00407d29b6bf0aa9df0976d88 verified as the commit for tag v1.0.146.

🤖 Generated with Claude Code

The pinned claude-code-action@v1.0.107 (April 25) hits a Bun runtime bug
that aborts the action with exit code 1 before any API call is made, so
no review is posted even though the step shows green. The error in the
job log is:

  Internal error: directory mismatch for directory ".../tsconfig.json",
  fd 4. You don't need to do anything, but this indicates a bug.

That message is misleading — it is the crash, not a benign warning. Root
cause is a `--tsconfig-override` flag passed to `bun run` (bun#25730).

Anthropic dropped that flag in claude-code-action v1.0.143 (PR #1315).
This bumps the pin to the current latest, v1.0.146, which includes the
fix. Every caller repo uses @trunk of this reusable workflow, so this
unblocks AI review across all of them in one change.

Refs:
- anthropics/claude-code-action#1205
- anthropics/claude-code-action#1315
- oven-sh/bun#25730

@PanosSynetos PanosSynetos left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lancewillett for the quick fix. I cannot actually test this, without merging first. So, I'll wait for @mahangu

Could we also make the action fail rather than be green?

@mahangu mahangu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Lance! This is easily revertible so I think we can merge this. There is no other way to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants