claude-code-action icon indicating copy to clipboard operation
claude-code-action copied to clipboard

πŸ€– v1.0.218: Claude Code 2.1.265 installer reports success but leaves no launcher on ubuntu-latest, every run fails with "native binary not found"

Open ghackett opened this issue 2 months ago β€’ 13 comments

Summary

Since v1.0.218 (commit 0d0e087, "bump Claude Code to 2.1.265 and Agent SDK to 0.3.265", tagged v1 at 2026-09-08 20:39 UTC) every run of the action on ubuntu-latest fails before Claude starts:

SDK execution error: ReferenceError: Claude Code native binary not found at /home/runner/.local/bin/claude. Please ensure Claude Code is installed via native installer or specify a valid path with options.pathToClaudeCodeExecutable.
 telemetryMessage: "Claude Code native binary not found at the configured path (ENOENT)",
 errorClass: "executable_not_found",

The install step (curl -fsSL https://claude.ai/install.sh | bash -s -- 2.1.265) exits 0 and prints "successfully installed" / "Installation complete!", but the 2.1.265 binary's claude install never creates the launcher. Its own setup notes say so, twice:

Installing Claude Code native build 2.1.265...
Setting up launcher and shell integration...
⚠ Setup notes:
  ● claude command at /home/runner/.local/bin/claude missing or broken (/home/runner/.local/bin does not exist)
  ● claude command at /home/runner/.local/bin/claude missing or broken

βœ” Claude Code successfully installed!

  Version: 2.1.265

  Location: ~/.local/bin/claude

Because the installer reports success, the retry loop in installClaudeCode() never triggers and the action goes on to spawn a path that does not exist.

Runs

  • Failing (v1.0.218, Claude Code 2.1.265): https://github.com/episode6/collins/actions/runs/34285384330 β€” reran it once, identical failure at the same step.
  • Passing earlier the same day on the same image (v1.0.217, Claude Code 2.1.263): https://github.com/episode6/collins/actions/runs/34179464399 β€” "Setting up launcher and shell integration..." is followed directly by "βœ” Claude Code successfully installed!" with no setup notes, and the launcher exists.

The workflow is the stock issue_comment / @claude tag-mode workflow with claude_code_oauth_token and additional_permissions: actions: read, nothing else: https://github.com/episode6/collins/blob/main/.github/workflows/claude.yml

What I could and could not reproduce

  • The same install command for 2.1.265 in a fresh $HOME on a Linux desktop (no ~/.local at all) succeeds and creates the ~/.local/bin/claude symlink, also with CI=true GITHUB_ACTIONS=true set and with a nonexistent $HOME/.local/bin on PATH the way the runner images have it. So it is not a generic installer bug; something on the hosted runner makes the 2.1.265 launcher step fail silently.
  • Only the pinned version changed between v1.0.217 and v1.0.218 (src/entrypoints/run.ts line 80).

Workarounds

  • Pin the action to v1.0.217 (anthropics/claude-code-action@9c5ddab2e6d17b83ea679153b31f1d5f023cf636).
  • Or install Claude Code in a previous step and pass path_to_claude_code_executable.

Suggestions

  • Verify the executable exists (and runs --version) after the install step, so "installed successfully" cannot be printed over a missing launcher and the retry/failure surfaces at the right place.
  • The 2.1.265 native installer reporting success while its own diagnostics say the launcher is missing looks like a Claude Code bug; happy to file it there too if you can point at what the launcher step does differently on hosted runners.

ghackett avatar Sep 08 '26 22:09 ghackett

We're seeing the same in our project.

dnsbty avatar Sep 08 '26 22:09 dnsbty

We're seeing the same in our project.

knlshh avatar Sep 08 '26 22:09 knlshh

We are seeing the same. This is blocking our CI.

Ryanoonan avatar Sep 08 '26 22:09 Ryanoonan

Yeah, this is broken on commit https://github.com/anthropics/claude-code-action/commit/0d0e0876d3eaa933f45dc692f7a4312c83caf36f

Pinning the action to an older version should fix, like https://github.com/anthropics/claude-code-action/commit/9c5ddab2e6d17b83ea679153b31f1d5f023cf636

ademirqueiroga avatar Sep 08 '26 22:09 ademirqueiroga

+1 on this issue.

nisaanthN avatar Sep 08 '26 23:09 nisaanthN

Same here, +1 on this issue.

jkauze avatar Sep 08 '26 23:09 jkauze

+1. @ademirqueiroga's fix worked for me.

mattcdrake avatar Sep 08 '26 23:09 mattcdrake

CI blocked too

nico-debin avatar Sep 08 '26 23:09 nico-debin

Our GitHub Actions code reviews that use Claude are currently down because of the Claude Code Linux binary issue. :fire:

Rolling back to a previous commit may work as a temporary workaround, but I think this needs to be fixed urgently. It’s a major regression since it’s taking down our Claude-based GitHub code reviews.

daniel-aranda avatar Sep 08 '26 23:09 daniel-aranda

We are seeing the same and this is blocking our CI across several repos. Agreed, this needs an urgent fix.

vtjballeng avatar Sep 08 '26 23:09 vtjballeng

Data point that might narrow this down: 2.1.265 is not failing every run. We have a green run on the same action SHA and the same Claude Code version, then two failures 45 minutes later, all on the same runner image.

Time (UTC, 2026-09-08) Action SHA Claude Code Result
21:55 0d0e087 2.1.265 passed, no setup notes, launcher present
22:41 0d0e087 2.1.265 ENOENT
22:49 0d0e087 2.1.265 ENOENT

All three logged Download action repository 'anthropics/claude-code-action@v1' (SHA:0d0e0876d3eaa933f45dc692f7a4312c83caf36f), Image: ubuntu-24.04 / Version: 20260831.293.1, and bun 1.3.14. Our repo is private so run links would not open for you, hence the excerpts below. The green run was 76 minutes after v1.0.218 was tagged, so it is not a pre-bump run.

Since you have no successful 2.1.265 run to compare against, here is where the two diverge. The gap between two adjacent installer lines:

passed  21:55:19.6459151 Checking installation status...
        21:55:25.2591795 Installing Claude Code native build 2.1.265...      5.61s

failed  22:41:20.0012997 Checking installation status...
        22:41:20.1541900 Installing Claude Code native build 2.1.265...      0.153s

failed  22:50:00.3218693 Checking installation status...
        22:50:00.4676692 Installing Claude Code native build 2.1.265...      0.146s

Both failures skipped ~5.5 seconds of work there. Setting up launcher and shell integration... is then immediately followed by the two missing or broken notes.

Read that way, the launcher step may be reporting honestly about a binary that was never fetched, rather than failing to create a launcher for a binary that was. If so the trigger is whatever makes that fetch return early, not 2.1.265 against the runner image β€” which would also fit nobody being able to reproduce it locally.

alimony avatar Sep 09 '26 02:09 alimony

If you are blocked by this you should version your actions as in the examples: https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml#L35

ztnewman avatar Sep 09 '26 14:09 ztnewman

I've opened #1848 for the first suggestion in the report: verify the executable exists after the install step.

What it changes. installClaudeCode() currently trusts the installer's exit code, so when the 2.1.265 installer exited 0 without creating the launcher, the retry loop never ran and the failure surfaced later as the SDK ReferenceError above. The PR checks ~/.local/bin/claude after each attempt; a missing launcher now fails that attempt, so the existing 3Γ— retry runs, and if all attempts fail the error is reported at the install step: Installer reported success but the Claude Code executable was not found at ….

What it doesn't change. It doesn't fix the installer β€” that's on the Claude Code side. I couldn't find a root cause: the changelog through 2.1.272 has no installer/launcher entry, this repo's own issue-triage run at 0d0e087 installed 2.1.265 cleanly during the incident (consistent with the pass/fail/fail-on-the-same-image data point above), and no failures have been reported since 2026-09-09. So this is a guard against a recurrence, not a claim that the incident is resolved.

Tests. Alongside unit tests for the check, the PR drives the real installClaudeCode() against a fake installer that reproduces the log from this issue verbatim β€” setup-notes warning, "βœ” Claude Code successfully installed!", exit 0, no launcher (a fake curl first on PATH, HOME in a temp dir). It shows the pipeline exits 0 with nothing on disk, that all three retries run and the error names the path when the launcher never appears, and that the retry loop recovers when the launcher appears on the second attempt. With the one-line check removed, the last two fail: installClaudeCode() resolves after a single attempt with a path that doesn't exist.

farmer-data avatar Sep 22 '26 07:09 farmer-data