From 232c9a15f49822c165d462e7f0a3aa9287ed2a60 Mon Sep 17 00:00:00 2001 From: Chase McCoy Date: Tue, 9 Jun 2026 16:12:16 -0500 Subject: [PATCH] Drop --tsconfig-override from Bun invocations to avoid runtime crash (#1315) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Drop --tsconfig-override from Bun invocations to avoid runtime crash 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 * Fix prettier formatting in create-prompt/index.ts 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 --------- Co-authored-by: Claude --- action.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 1d6270a9..478eee63 100644 --- a/action.yml +++ b/action.yml @@ -256,9 +256,13 @@ runs: id: run shell: bash run: | + # Do NOT pass --tsconfig-override here. It triggers a Bun runtime bug + # ("Internal error: directory mismatch for directory .../tsconfig.json") + # that aborts the run with exit code 1. Bun already auto-discovers the + # action's own tsconfig.json by walking up from the entry file, so the + # override is redundant. See oven-sh/bun#25730. bun --no-env-file \ --config="${GITHUB_ACTION_PATH}/bunfig.toml" \ - --tsconfig-override="${GITHUB_ACTION_PATH}/tsconfig.json" \ run ${GITHUB_ACTION_PATH}/src/entrypoints/run.ts env: # Prepare inputs @@ -398,9 +402,9 @@ runs: run: | BUN_BIN="${GITHUB_ACTION_PATH}/bin/bun" [ -x "$BUN_BIN" ] || BUN_BIN="bun" + # No --tsconfig-override: see the "Run Claude Code Action" step above. "$BUN_BIN" --no-env-file \ --config="${GITHUB_ACTION_PATH}/bunfig.toml" \ - --tsconfig-override="${GITHUB_ACTION_PATH}/tsconfig.json" \ run ${GITHUB_ACTION_PATH}/src/entrypoints/cleanup-ssh-signing.ts - name: Post buffered inline comments @@ -415,9 +419,9 @@ runs: run: | BUN_BIN="${GITHUB_ACTION_PATH}/bin/bun" [ -x "$BUN_BIN" ] || BUN_BIN="bun" + # No --tsconfig-override: see the "Run Claude Code Action" step above. "$BUN_BIN" --no-env-file \ --config="${GITHUB_ACTION_PATH}/bunfig.toml" \ - --tsconfig-override="${GITHUB_ACTION_PATH}/tsconfig.json" \ run ${GITHUB_ACTION_PATH}/src/entrypoints/post-buffered-inline-comments.ts - name: Revoke app token