claude-code - ✅(Solved) Fix [BUG] v2.1.123 crashes on startup with "Module not found ''" (Linux x86-64 baseline) [2 pull requests, 2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54632Fetched 2026-04-30 06:40:18
View on GitHub
Comments
2
Participants
2
Timeline
9
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2cross-referenced ×2

Error Message

error: Module not found ''

Bun v1.3.14 (Linux x64 baseline)

Fix Action

Fix / Workaround

Workaround - not complete Manually re-pointing the symlink to the previous version: ln -sf ~/.local/share/claude/versions/2.1.122 ~/.local/bin/claude auto updater keeps rewriting the link to the new (and broken) version.

PR fix notes

PR #636: fix: bump CLI versions — gemini 0.40.0, copilot 1.0.39 (others held)

Description (problem / solution / changelog)

Summary

Bump safe-to-upgrade CLI versions in Dockerfiles. 5 of 7 CLIs intentionally held due to active regressions affecting Linux/container/headless workloads.

Discord Discussion URL: N/A

Changes

DockerfileCLIOldNewNotes
Dockerfile.gemini@google/gemini-cli0.39.10.40.0Zero regression/bug-labelled issues; minor headless nits only
Dockerfile.copilot@github/copilot1.0.361.0.39No public issue tracker; 3 patch versions, low risk

NOT updated (intentionally)

DockerfileCLIPinnedLatestWhy
Dockerfilekiro-cli2.1.12.2.0Changelog not published yet (404). Cannot assess risk. Hold until release notes are public.
Dockerfile.codex@openai/codex0.125.00.125.0Already current — no bump needed
Dockerfile.claude@anthropic-ai/claude-code2.1.1162.1.123🔴 BLOCKER: #54632 — v2.1.123 crashes on startup on Linux x86-64 (Module not found, Bun bundling issue). Also #54083 — Bedrock auth broken since 2.1.119. 2.1.116 remains the safe ceiling.
Dockerfile.cursorCursor Agent CLI2026.04.17-787b5332026.04.29-c83a488🔴 Released today (Apr 29) with zero community validation. Unresolved CPU 100% regression from 04.13 build. Headless sandbox init bug still open.
Dockerfile.opencodeopencode-ai1.14.251.14.29🔴 #24977 — Bedrock auth regression in 1.14.29 (ignores AWS credential chain). #24846 — ACP newSession/authenticate methods broken. Both directly affect openab.
Dockerfile.codexcodex-acp0.11.1No new release needed
Dockerfile.claudeclaude-agent-acp0.29.2Still current

Per-CLI Risk Assessment

claude-code — 🔴 HOLD at 2.1.116

  • #54632 (regression, platform:linux): v2.1.123 crashes on startup on Linux x86-64 baseline. Module not found error from Bun v1.3.14 bundling. Hard blocker — CLI is completely unusable.
  • #54083 (regression, platform:linux, api:bedrock): Bedrock auth fails with 403 + infinite retry since v2.1.119.
  • #54018: Async subagent loops silently dropped (affects orchestration reliability).
  • #53948: Plugin install no longer copies symlinked skills since v2.1.117.
  • Safe ceiling: 2.1.116 (current pin). Do not upgrade until #54632 is fixed.

opencode-ai — 🔴 HOLD at 1.14.25

  • #24977 (regression): Bedrock provider requires API key in 1.14.29, ignoring AWS credential chain (SSO/IAM roles). Blocker if using Bedrock.
  • #24846 (acp): ACP newSession and authenticate methods return errors in 1.14.29. Directly affects openab headless mode.
  • #24927: JSON error injected into SSE stream on Ubuntu.
  • #24985: MCP client fails to init servers missing optional methods.
  • 1.14.28 might be safer (Bedrock still works), but ACP issues may persist. Stay on 1.14.25.

cursor — 🔴 HOLD at 2026.04.17-787b533

  • CPU 100% / agent hang regression reported against 04.13 build, no confirmed fix.
  • Headless sandbox init bug ignores sandbox.json on Linux (confirmed by Cursor staff, unresolved).
  • 2026.04.29 released today — zero community validation in Docker/Linux.
  • If 04.17 is stable, no reason to risk upgrading.

kiro-cli — 🟡 HOLD at 2.1.1

  • 2.2.0 is on the stable manifest but changelog returns 404. Cannot assess breaking changes.
  • No known Linux/headless regressions on 2.1.1.
  • Revisit once release notes are published.

gemini-cli — 🟢 SAFE to bump to 0.40.0

  • Zero issues with regression or bug labels.
  • Minor nits: #26193 (ripgrep fallback message in non-interactive), #26168 (subagent discovery prompt).
  • Neither is a blocker for headless Docker workloads.

copilot — 🟢 SAFE to bump to 1.0.39

  • No public issue tracker. 3 patch versions since 1.0.36.
  • Low risk based on patch-only increment.

codex — ✅ Already current at 0.125.0

  • No version-specific regressions reported.
  • Notable existing issues: #16451 (Linux sandbox denies /dev/null), #19309 (exec mode exits early). Neither is new.

How to verify

# npm packages
npm view @google/gemini-cli version   # expect 0.40.0
npm view @github/copilot version      # expect 1.0.39

# Held versions (confirm still pinned)
curl -fsSL https://prod.download.cli.kiro.dev/stable/latest/manifest.json | grep version  # 2.2.0 available but held
npm view @anthropic-ai/claude-code version  # 2.1.123 available but held
npm view opencode-ai version                # 1.14.29 available but held

Ref: #573

Changed files

  • Dockerfile.copilot (modified, +1/-1)
  • Dockerfile.gemini (modified, +1/-1)

PR #637: fix: bump CLI versions — kiro 2.2.0, cursor 2026.04.29, opencode 1.14.28

Description (problem / solution / changelog)

Summary

Bump pinned CLI versions in Dockerfiles after investigating latest releases and upstream bug trackers.

Discord Discussion URL: N/A

Changes

DockerfileCLIOldNewNotes
Dockerfilekiro-cli2.1.12.2.0musl support, headless tar.xz/tar.zst variants; zero known regressions
Dockerfile.cursorCursor Agent CLI2026.04.17-787b5332026.04.29-c83a48812-day update; no public issue tracker, download verified
Dockerfile.opencodeopencode-ai1.14.251.14.28⚠️ Safe ceiling — 1.14.29 has Bedrock auth regression (#24977) and GPT 5.3 breakage (#24899)

NOT updated (intentionally)

DockerfileCLIPinnedLatestWhy
Dockerfile.codex@openai/codex0.125.00.125.0Already latest
Dockerfile.codexcodex-acp0.11.1No new release needed
Dockerfile.claude@anthropic-ai/claude-code2.1.1162.1.123HOLD — see risk assessment below
Dockerfile.claudeclaude-agent-acp0.29.2Still current
Dockerfile.gemini@google/gemini-cli0.40.00.40.0Already latest
Dockerfile.copilot@github/copilot1.0.391.0.39Already latest

claude-code risk assessment ⛔ HOLD at 2.1.116

Open regressions tagged platform:linux on versions 2.1.117–2.1.123:

IssueVersionImpactAffects openab?
#546322.1.123Startup crash Module not found (Linux x86-64 standalone binary, Bun ELF)⚠️ Standalone binary only — openab uses npm install, may be safe, but untested
#548412.1.123Claude 4.7 model performance/reliability regression on Linuxℹ️ Model-side, not CLI-specific
#540832.1.119+AWS Bedrock auth token header failing (Linux, needs-info)Directly affects openab — we use Bedrock
#528222.1.119PreToolUse hook allow does not suppress native permission prompt (Linux)⚠️ May affect ACP permission flow
#523092.1.116tmux resize causes duplicated/corrupted output (Linux)ℹ️ Already on current version, TUI-only

Verdict: 2.1.116 remains the safe ceiling. The Bedrock auth regression (#54083) starting at 2.1.119 is a blocker for openab. Wait for Anthropic to fix before bumping.

opencode-ai risk assessment — bump to 1.14.28

IssueVersionImpactAffects openab?
#249771.14.29Bedrock provider requires API key (regression from 1.14.28)⛔ Would break Bedrock — skip 1.14.29
#248991.14.29GPT 5.3 Codex tool calls stall⛔ Tool calls broken — skip 1.14.29
#24985allMCP client fails on servers without optional prompts/listℹ️ Not a regression, pre-existing

1.14.30 is latest but both #24977 and #24899 are still open with no confirmed fix. 1.14.28 is the safe ceiling.

codex risk assessment — no update needed

All 20 open bugs are tagged app (desktop), windows-os, or macOS. Zero CLI-specific regressions. Already on latest (0.125.0).

gemini-cli — no update needed

Zero open bugs with bug label. Already on latest (0.40.0).

How to verify

# kiro-cli
curl -fsSL https://prod.download.cli.kiro.dev/stable/latest/manifest.json | grep version

# npm packages
npm view @openai/codex version          # 0.125.0
npm view @anthropic-ai/claude-code version  # 2.1.123 (we stay at 2.1.116)
npm view @google/gemini-cli version     # 0.40.0
npm view @github/copilot version        # 1.0.39
npm view opencode-ai version            # 1.14.30 (we pin 1.14.28)

# cursor
curl -fsSL https://cursor.com/install | grep "2026\."

Ref: #573

Changed files

  • Dockerfile (modified, +1/-1)
  • Dockerfile.cursor (modified, +1/-1)
  • Dockerfile.opencode (modified, +1/-1)

Code Example

error: Module not found ''

Bun v1.3.14 (Linux x64 baseline)
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

After the automatic update to v2.1.123, Claude Code fails to start with the following error:

error: Module not found ''

Bun v1.3.14 (Linux x64 baseline)

The module name in the error is blank (whitespace only), suggesting a bundling/packaging issue in the released binary rather than a missing user dependency.

Environment

  • OS: Ubuntu 22.04, Linux 6.8.0-59-generic, x86-64
  • Binary: standalone ELF (~/.local/share/claude/versions/2.1.123, 247 MB)
  • Embedded Bun: v1.3.14 (Linux x64 baseline)

Workaround - not complete Manually re-pointing the symlink to the previous version: ln -sf ~/.local/share/claude/versions/2.1.122 ~/.local/bin/claude auto updater keeps rewriting the link to the new (and broken) version.

What Should Happen?

Claude Code should start normally (as v2.1.122 does on the same machine).

Error Messages/Logs

error: Module not found ''

Bun v1.3.14 (Linux x64 baseline)

Steps to Reproduce

  1. Allow auto-update from v2.1.122 → v2.1.123
  2. Run claude (or the binary directly)
  3. See the error above immediately, before any output

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.122

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

Revert to the previous version of Claude Code (v2.1.122) to resolve the issue until a fixed version is released.

Guidance

  • The error message "Module not found ''" suggests a bundling or packaging issue in the v2.1.123 release, so reverting to the previous version may be the most straightforward solution.
  • To verify the issue, try manually re-pointing the symlink to the previous version using the command ln -sf ~/.local/share/claude/versions/2.1.122 ~/.local/bin/claude and then run claude to see if it starts normally.
  • Consider disabling the auto-updater temporarily to prevent it from rewriting the link to the broken version.
  • If the issue persists, try removing the v2.1.123 version and reinstalling the previous version to ensure a clean setup.

Notes

The provided workaround is not complete, and the auto-updater may continue to cause issues. A permanent fix will likely require an update to the Claude Code binary.

Recommendation

Apply workaround: Revert to the previous version (v2.1.122) until a fixed version is released, as it is the most straightforward solution to resolve the issue immediately.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING