Skip to content

Drop --tsconfig-override from Bun invocations to avoid runtime crash#1315

Open
chsmc-ant wants to merge 2 commits into
anthropics:mainfrom
chsmc-ant:claude/fix-issue-1266-7X214
Open

Drop --tsconfig-override from Bun invocations to avoid runtime crash#1315
chsmc-ant wants to merge 2 commits into
anthropics:mainfrom
chsmc-ant:claude/fix-issue-1266-7X214

Conversation

@chsmc-ant
Copy link
Copy Markdown

Summary

Removes the --tsconfig-override flag from the three bun run invocations in action.yml.

Problem

Passing --tsconfig-override to bun run triggers a Bun runtime bug that logs:

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

For some users this is a harmless stderr warning; for others it aborts the action with exit code 1 before any work is done. The same SHA can succeed on one run and fail on the next.

Upstream tracking: oven-sh/bun#25730

Why dropping the flag is safe

Bun auto-discovers tsconfig.json by walking up the directory tree from the entry file (not from CWD). All three entrypoints live under ${GITHUB_ACTION_PATH}/src/entrypoints/, so the walk always lands on the action's own tsconfig.json. The user's workspace tsconfig is never an ancestor of the _actions/ checkout, so it cannot interfere.

base-action/action.yml already invokes bun run without this flag — this brings the main action.yml in line.

Verification

Reproduced with Bun 1.3.11:

  • With --tsconfig-override → emits the "directory mismatch" error
  • Without it → clean, and tsconfig still resolves correctly (verified with a hostile workspace tsconfig in CWD)

Fixes #1266
Fixes #1246
Fixes #1205

claude added 2 commits May 15, 2026 20:42
Passing --tsconfig-override to `bun run` triggers a Bun runtime bug
("Internal error: directory mismatch for directory .../tsconfig.json")
that aborts the action with exit code 1 before any work is done.

Bun already auto-discovers the action's own tsconfig.json by walking up
the directory tree from the entry file, so the override is redundant —
the workspace's tsconfig is never an ancestor of the action checkout.
Dropping the flag preserves tsconfig resolution while avoiding the crash.

Refs: oven-sh/bun#25730

https://claude.ai/code/session_01L763e4S7zBnzDqmYYEJS1A
Removes redundant outer parentheses that were tripping format:check.
Pre-existing on main; unrelated to the action.yml change but needed
to keep CI green on this branch.

https://claude.ai/code/session_01L763e4S7zBnzDqmYYEJS1A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants