claude-code - 💡(How to fix) Fix [BUG] Claude Code stopped working after update [1 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#46161Fetched 2026-04-11 06:27:32
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5commented ×1cross-referenced ×1

Error Message

2026-04-10 15:02:28 [info] [CCD] Status: ready (version: 2.1.92) 2026-04-10 15:02:30 [info] [CCD] LocalSessions.getDefaultPermissionMode: cwd=/Users/abhisheksinha/Documents/CESS
2026-04-10 15:02:30 [info] LocalSessions.checkGhAvailable: cwd=/Users/abhisheksinha/Documents/CESS
2026-04-10 15:02:37 [info] LocalSessions.checkTrust: cwd=/Users/abhisheksinha/Documents/CESS
2026-04-10 15:02:38 [info] Starting local session local_521e7a88-c0e4-43e3-8564-6e04773d0483 in /Users/abhisheksinha/Documents/CESS
2026-04-10 15:02:38 [info] [CCD] Passing 1 plugin(s) to SDK (skills: 1, remote: 0, local: 0)
2026-04-10 15:02:38 [info] Using Claude Code binary at: /Users/abhisheksinha/Library/Application Support/Claude/claude-code/2.1.92/claude.app/Contents/MacOS/claude
2026-04-10 15:02:38 [error] Session local_521e7a88-c0e4-43e3-8564-6e04773d0483 query error: Claude Code process exited with code 1
2026-04-10 15:02:38 [info] [CCD CycleHealth] unhealthy cycle for local_521e7a88-c0e4-43e3-8564-6e04773d0483 (0s, hadFirstResponse=false, reason=no_response)

And the Electron stderr from launching via terminal:

[ERROR:storage/browser/quota/quota_database.cc:1013] Could not open the quota database, resetting.
[ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:251] Failed to open LevelDB database from /Users/abhisheksinha/Library/Application
Support/Claude/IndexedDB/https_claude.ai_0.indexeddb.leveldb, IO error: .../LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)

And the captured process invocation that revealed the issue (from the wrapper debug log):

ARGS: --output-format stream-json --verbose --input-format stream-json
--effort medium --model claude-sonnet-4-6 --permission-prompt-tool stdio
--allowedTools mcp__computer-use,mcp__ccd_session__spawn_task
--setting-sources=user,project,local --permission-mode acceptEdits
--allow-dangerously-skip-permissions --include-partial-messages
--plugin-dir .../skills-plugin/...

ENV (relevant):
ANTHROPIC_API_KEY= <-- empty string, potential conflict
ANTHROPIC_BASE_URL=https://api.anthropic.com
CLAUDE_CODE_ENTRYPOINT=claude-desktop
CLAUDE_CODE_EXECPATH=/Users/abhisheksinha/.local/share/claude/versions/2.1.100 <-- version mismatch (binary is 2.1.92)
CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-... <-- valid token
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1

Key points for the report:

  • Binary v2.1.92 crashes instantly (exit code 1, 0 seconds) when spawned directly by Electron
  • Same binary works fine from CLI
  • Wrapping it in a shell script fixes it — the shell intermediary between Electron and the Bun binary resolves the spawn issue
  • CLAUDE_CODE_EXECPATH points to v2.1.100 while running v2.1.92
  • ANTHROPIC_API_KEY is set to empty string alongside a valid OAuth token

Root Cause

Root Cause: The Claude Desktop Electron app (v1.1617.0) has a compatibility issue when directly spawning the bundled Bun-compiled Claude Code binary (v2.1.92). When Electron's child_process.spawn() launches the Bun binary directly, the process crashes immediately due to inherited file descriptor/signal handling incompatibilities between the Electron (Node.js) parent process and the Bun runtime.

Code Example

2026-04-10 15:02:28 [info] [CCD] Status: ready (version: 2.1.92)
  2026-04-10 15:02:30 [info] [CCD] LocalSessions.getDefaultPermissionMode: cwd=/Users/abhisheksinha/Documents/CESS                                                                        
  2026-04-10 15:02:30 [info] LocalSessions.checkGhAvailable: cwd=/Users/abhisheksinha/Documents/CESS                                                                                      
  2026-04-10 15:02:37 [info] LocalSessions.checkTrust: cwd=/Users/abhisheksinha/Documents/CESS                                                                                            
  2026-04-10 15:02:38 [info] Starting local session local_521e7a88-c0e4-43e3-8564-6e04773d0483 in /Users/abhisheksinha/Documents/CESS                                                     
  2026-04-10 15:02:38 [info] [CCD] Passing 1 plugin(s) to SDK (skills: 1, remote: 0, local: 0)                                                                                            
  2026-04-10 15:02:38 [info] Using Claude Code binary at: /Users/abhisheksinha/Library/Application Support/Claude/claude-code/2.1.92/claude.app/Contents/MacOS/claude                     
  2026-04-10 15:02:38 [error] Session local_521e7a88-c0e4-43e3-8564-6e04773d0483 query error: Claude Code process exited with code 1                                                      
  2026-04-10 15:02:38 [info] [CCD CycleHealth] unhealthy cycle for local_521e7a88-c0e4-43e3-8564-6e04773d0483 (0s, hadFirstResponse=false, reason=no_response)                            
                                                                                                                                                                                          
  And the Electron stderr from launching via terminal:                                                                                                                                    
                                                                                                                                                                                          
  [ERROR:storage/browser/quota/quota_database.cc:1013] Could not open the quota database, resetting.                                                                                      
  [ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:251] Failed to open LevelDB database from /Users/abhisheksinha/Library/Application                                  
  Support/Claude/IndexedDB/https_claude.ai_0.indexeddb.leveldb, IO error: .../LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)                                                
                                                                                                                                                                                          
  And the captured process invocation that revealed the issue (from the wrapper debug log):                                                                                               
                  
  ARGS: --output-format stream-json --verbose --input-format stream-json                                                                                                                  
        --effort medium --model claude-sonnet-4-6 --permission-prompt-tool stdio                                                                                                          
        --allowedTools mcp__computer-use,mcp__ccd_session__spawn_task                                                                                                                     
        --setting-sources=user,project,local --permission-mode acceptEdits                                                                                                                
        --allow-dangerously-skip-permissions --include-partial-messages                                                                                                                   
        --plugin-dir .../skills-plugin/...                                                                                                                                                
                                                                                                                                                                                          
  ENV (relevant):                                                                                                                                                                         
    ANTHROPIC_API_KEY=              <-- empty string, potential conflict                                                                                                                  
    ANTHROPIC_BASE_URL=https://api.anthropic.com                                                                                                                                          
    CLAUDE_CODE_ENTRYPOINT=claude-desktop                                                                                                                                                 
    CLAUDE_CODE_EXECPATH=/Users/abhisheksinha/.local/share/claude/versions/2.1.100  <-- version mismatch (binary is 2.1.92)                                                               
    CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-...  <-- valid token                                                                                                                             
    CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1                                                                                                                                                
                                                                                                                                                                                          
  Key points for the report:                                                                                                                                                              
  - Binary v2.1.92 crashes instantly (exit code 1, 0 seconds) when spawned directly by Electron                                                                                           
  - Same binary works fine from CLI                                                                                                                                                       
  - Wrapping it in a shell script fixes it — the shell intermediary between Electron and the Bun binary resolves the spawn issue
  - CLAUDE_CODE_EXECPATH points to v2.1.100 while running v2.1.92                                                                                                                         
  - ANTHROPIC_API_KEY is set to empty string alongside a valid OAuth token
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?

Problem: Claude Desktop's Code tab crashes immediately with "Claude Code process exited with code 1" (0 seconds, no response).

Root Cause: The Claude Desktop Electron app (v1.1617.0) has a compatibility issue when directly spawning the bundled Bun-compiled Claude Code binary (v2.1.92). When Electron's child_process.spawn() launches the Bun binary directly, the process crashes immediately due to inherited file descriptor/signal handling incompatibilities between the Electron (Node.js) parent process and the Bun runtime.

Contributing factor: The desktop app also sets ANTHROPIC_API_KEY= (empty string) alongside a valid OAuth token (CLAUDE_CODE_OAUTH_TOKEN). The binary may interpret the empty API key as a set-but-invalid credential and fail before falling back to OAuth.

What Should Happen?

Fix applied: Replaced the binary at ~/Library/Application Support/Claude/claude-code/2.1.92/claude.app/Contents/MacOS/claude with a thin shell wrapper script that calls the original binary (claude.real). The shell intermediary properly buffers the process environment between Electron and the Bun binary.

Other things cleared during debugging (may need to re-download on next launch):

  • IndexedDB database (had stale LOCK file)
  • VM bundles (~2GB, re-downloads automatically for Cowork mode)
  • Code session cache

Note: This fix may need to be re-applied if the desktop app auto-updates the Claude Code binary, as it would overwrite the wrapper.

This is the summary provided by Claude CLI after fixing the issue. I don’t want to spend my tokens on further fixes for the app.

Error Messages/Logs

2026-04-10 15:02:28 [info] [CCD] Status: ready (version: 2.1.92)
  2026-04-10 15:02:30 [info] [CCD] LocalSessions.getDefaultPermissionMode: cwd=/Users/abhisheksinha/Documents/CESS                                                                        
  2026-04-10 15:02:30 [info] LocalSessions.checkGhAvailable: cwd=/Users/abhisheksinha/Documents/CESS                                                                                      
  2026-04-10 15:02:37 [info] LocalSessions.checkTrust: cwd=/Users/abhisheksinha/Documents/CESS                                                                                            
  2026-04-10 15:02:38 [info] Starting local session local_521e7a88-c0e4-43e3-8564-6e04773d0483 in /Users/abhisheksinha/Documents/CESS                                                     
  2026-04-10 15:02:38 [info] [CCD] Passing 1 plugin(s) to SDK (skills: 1, remote: 0, local: 0)                                                                                            
  2026-04-10 15:02:38 [info] Using Claude Code binary at: /Users/abhisheksinha/Library/Application Support/Claude/claude-code/2.1.92/claude.app/Contents/MacOS/claude                     
  2026-04-10 15:02:38 [error] Session local_521e7a88-c0e4-43e3-8564-6e04773d0483 query error: Claude Code process exited with code 1                                                      
  2026-04-10 15:02:38 [info] [CCD CycleHealth] unhealthy cycle for local_521e7a88-c0e4-43e3-8564-6e04773d0483 (0s, hadFirstResponse=false, reason=no_response)                            
                                                                                                                                                                                          
  And the Electron stderr from launching via terminal:                                                                                                                                    
                                                                                                                                                                                          
  [ERROR:storage/browser/quota/quota_database.cc:1013] Could not open the quota database, resetting.                                                                                      
  [ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:251] Failed to open LevelDB database from /Users/abhisheksinha/Library/Application                                  
  Support/Claude/IndexedDB/https_claude.ai_0.indexeddb.leveldb, IO error: .../LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)                                                
                                                                                                                                                                                          
  And the captured process invocation that revealed the issue (from the wrapper debug log):                                                                                               
                  
  ARGS: --output-format stream-json --verbose --input-format stream-json                                                                                                                  
        --effort medium --model claude-sonnet-4-6 --permission-prompt-tool stdio                                                                                                          
        --allowedTools mcp__computer-use,mcp__ccd_session__spawn_task                                                                                                                     
        --setting-sources=user,project,local --permission-mode acceptEdits                                                                                                                
        --allow-dangerously-skip-permissions --include-partial-messages                                                                                                                   
        --plugin-dir .../skills-plugin/...                                                                                                                                                
                                                                                                                                                                                          
  ENV (relevant):                                                                                                                                                                         
    ANTHROPIC_API_KEY=              <-- empty string, potential conflict                                                                                                                  
    ANTHROPIC_BASE_URL=https://api.anthropic.com                                                                                                                                          
    CLAUDE_CODE_ENTRYPOINT=claude-desktop                                                                                                                                                 
    CLAUDE_CODE_EXECPATH=/Users/abhisheksinha/.local/share/claude/versions/2.1.100  <-- version mismatch (binary is 2.1.92)                                                               
    CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-...  <-- valid token                                                                                                                             
    CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1                                                                                                                                                
                                                                                                                                                                                          
  Key points for the report:                                                                                                                                                              
  - Binary v2.1.92 crashes instantly (exit code 1, 0 seconds) when spawned directly by Electron                                                                                           
  - Same binary works fine from CLI                                                                                                                                                       
  - Wrapping it in a shell script fixes it — the shell intermediary between Electron and the Bun binary resolves the spawn issue
  - CLAUDE_CODE_EXECPATH points to v2.1.100 while running v2.1.92                                                                                                                         
  - ANTHROPIC_API_KEY is set to empty string alongside a valid OAuth token

Steps to Reproduce

Claude-logs-2026-04-10T09-53-52-824Z.zip

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.100

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

My Claude Desktop version is: Claude 1.1617.0 (8d6345) 2026-04-09T16:10:15.000Z

extent analysis

TL;DR

The most likely fix is to replace the Claude Code binary with a thin shell wrapper script that properly buffers the process environment between Electron and the Bun binary.

Guidance

  1. Verify the binary version: Ensure that the Claude Code binary version matches the expected version (2.1.92) and not a different version (2.1.100) as indicated by the CLAUDE_CODE_EXECPATH environment variable.
  2. Check the API key: Investigate the effect of setting ANTHROPIC_API_KEY to an empty string alongside a valid OAuth token (CLAUDE_CODE_OAUTH_TOKEN), as this might be causing the binary to interpret it as a set-but-invalid credential.
  3. Apply the wrapper fix: Replace the Claude Code binary with a thin shell wrapper script that calls the original binary, as described in the issue report, to resolve the spawn issue between Electron and the Bun binary.
  4. Monitor for auto-updates: Be aware that the desktop app may auto-update the Claude Code binary, which could overwrite the wrapper fix and require re-application.

Example

No code snippet is provided as the fix involves replacing the binary with a shell wrapper script, which is described in the issue report.

Notes

The fix may need to be re-applied if the desktop app auto-updates the Claude Code binary. Additionally, the issue report mentions a version mismatch between the binary (2.1.92) and the CLAUDE_CODE_EXECPATH environment variable (2.1.100), which should be investigated.

Recommendation

Apply the wrapper fix to resolve the spawn issue between Electron and the Bun binary, as it has been shown to work in the issue report. This fix should be re-applied if the desktop app auto-updates the Claude Code binary.

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

claude-code - 💡(How to fix) Fix [BUG] Claude Code stopped working after update [1 comments, 2 participants]