[BUG] Claude Code process exited with code 1
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment
- macOS: Darwin 25.3.0 (Apple Silicon / arm64)
- Claude Desktop: v1.1.8629
- Bundled Claude Code binary: v2.1.78
- CLI Claude Code: v2.1.84 (works fine)
- Node: v24.14.0
- Git: 2.50.1 (Apple Git-155)
### Description
Every message sent in Claude Desktop fails silently — the message appears briefly, shows "working", then disappears
with no response. This started on March 25, 2026, coinciding with the major Anthropic outage.
The local Claude Code process (v2.1.78) that the Desktop app spawns crashes immediately with exit code 1 on every
message. The same binary works perfectly when invoked directly from the terminal with identical flags.
### Logs
main.log — repeats on every message attempt:
````
Session local_XXXX query error: Claude Code process exited with code 1
[CCD CycleHealth] unhealthy cycle for local_XXXX (0s, hadFirstResponse=false, reason=no_response)
unknown-window.log — CSP violation blocking API:
````
Connecting to 'https://a-api.anthropic.com/v1/m' violates the following Content Security Policy directive:
"connect-src 'self' https://api.segment.io https://*.segment.io https://*.segment.com https://a-cdn.anthropic.com
https://*.google.com https://*.facebook.com https://*.facebook.net https://*.doubleclick.net"
Fetch API cannot load https://a-api.anthropic.com/v1/m. Refused to connect because it violates the document's Content
Security Policy.
### Steps to Reproduce
- Open Claude Desktop v1.1.8629
- Select any project folder
- Send any message
- Message shows "working" briefly, then disappears — no response
### What I've tried (none resolved the issue)
- Full quit and restart of Claude Desktop
- Clearing all caches (
Cache,GPUCache,Code Cache, etc.) - Deleting and re-downloading Claude Desktop (same version 1.1.8629 served)
- Clearing all session data and worktrees
- Removing and letting skills plugin re-download
- Full reset of
~/Library/Application Support/Claude/(keeping only login credentials) - Re-logging in
- Accepting Xcode CLI Tools license (
sudo xcode-select --reset) - Enabling Terminal in Developer Tools (Privacy & Security)
- Installing Rosetta 2
### Key observation
The bundled binary works when run directly from the terminal:
``bash``
"/Users/.../Claude/claude-code/2.1.78/claude.app/Contents/MacOS/claude" \
--print "hi" --model "claude-opus-4-6[1m]" --permission-mode "acceptEdits" \
--plugin-dir "/Users/.../skills-plugin/..."
# Output: "Hi! How can I help you today?" ✅
But when the Desktop app spawns it as a child process, it exits with code 1 immediately. This suggests the issue is in
how the Desktop app passes environment/auth/SDK parameters to the Claude Code process — not the binary itself.
### Additional context
- The CSP policy in
unknown-window.logdoes not includea-api.anthropic.com, which may be blocking telemetry
or API calls from the webview.
- The issue began during the March 25 Anthropic outage but persists after services recovered.
- Claude Code CLI (
claudein terminal) and claude.ai in the browser both work fine — only the Desktop app's local
process integration is broken.
What Should Happen?
### Expected behavior
Messages should be sent and receive a response in Claude Desktop.
### Actual behavior
Claude Code process crashes instantly (exit code 1), message disappears, no response is shown.
Error Messages/Logs
Steps to Reproduce
Open Claude Desktop v1.1.8629 on macOS (Apple Silicon / arm64, Darwin 25.3.0)
- Select any project folder as the working directory
- Send any message (e.g., "hello")
- Observe: message shows "working" briefly, then disappears with no response
Note: The bundled Claude Code binary (v2.1.78) works when invoked directly from terminal:
"/Users/.../Claude/claude-code/2.1.78/claude.app/Contents/MacOS/claude" \
--print "hi" --model "claude-opus-4-6[1m]" --permission-mode "acceptEdits" \
--plugin-dir "/Users/.../skills-plugin/..."
# Output: "Hi! How can I help you today?" ✅
The crash only occurs when the Desktop app spawns the process internally.
Expected behavior:
Message is sent and a response is displayed in the conversation.
Actual behavior:
The local Claude Code process crashes instantly with exit code 1. The message disappears and no response is shown.
main.log shows on every attempt:
Session local_XXXX query error: Claude Code process exited with code 1
[CCD CycleHealth] unhealthy cycle for local_XXXX (0s, hadFirstResponse=false, reason=no_response)
unknown-window.log shows a CSP violation blocking the API:
Connecting to 'https://a-api.anthropic.com/v1/m' violates the following Content Security Policy directive
Fetch API cannot load https://a-api.anthropic.com/v1/m. Refused to connect.
The CSP connect-src directive does not include a-api.anthropic.com.
Additional context:
Environment:
- macOS Darwin 25.3.0 (Apple Silicon / arm64)
- Claude Desktop v1.1.8629
- Bundled Claude Code binary: v2.1.78
- CLI Claude Code: v2.1.84 (works fine)
- Node: v24.14.0 / Git: 2.50.1 (Apple Git-155)
Timeline: Issue started March 25, 2026 during the major Anthropic outage (4,000+ Downdetector reports). Persists after
services recovered.
Troubleshooting attempted (none resolved):
- Full quit/restart of Claude Desktop
- Clearing all caches, sessions, worktrees, and skills plugins
- Full reset of ~/Library/Application Support/Claude/ (preserving login)
- Re-downloading Claude Desktop (same v1.1.8629 served from claude.ai/download)
- Re-authenticating after full reset
- sudo xcode-select --reset
- Enabling Terminal in macOS Developer Tools
- Installing Rosetta 2
Claude Code CLI and claude.ai in browser both work — only the Desktop app's local process integration is broken.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v1.1.8629
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
26 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Same issue, happening inside Claude.ai artifacts not just Claude Code desktop. AI-powered artifacts are completely broken since March 25
Still broken as of March 31, 2026 – 6 days since the regression started. This is affecting AI-powered artifacts on Claude.ai, not just Claude Code desktop. The fetch to api.anthropic.com hangs indefinitely with a 30-second timeout, no error returned. This is blocking a core advertised feature.
Same issue. In Claude Cowork. On an existing thread.
Same here. Exactly the same
I'm facing the same issue today
Ditto: Claude Cowork on first message of new chat...
Claude Code process exited with code 1
Same here but in claude cowork
Same issue in Claude Code. I've tried a bunch of internal fixes; nothing works.
Same issue. Apple M1 Pro, MacOS Tahoe Version 26.4.1 (25E253)
Just updated, cowork is having this issue now
Me too!
same here, tried several techniques that I could found but nothing work
same issue, cowork
I had this same issue, this is the fix that worked in my mac https://github.com/anthropics/claude-code/issues/49391#issuecomment-4285254876
Kill Claude Desktop if it is still running via Terminal (or close Claude)
pkill -9 -f "Claude"
Reset macOS privacy permissions related to file access
tccutil reset SystemPolicyAllFiles
tccutil reset SystemPolicyDocumentsFolder
tccutil reset SystemPolicyDownloadsFolder
tccutil reset SystemPolicyDesktopFolder
Reset all permissions specifically for Claude Desktop
tccutil reset All com.anthropic.claudefordesktop
Accept all permissions
Same issue here, still happening as of April 24, 2026.
with "Claude Code process exited with code 1". Happens with both
Opus 4.7 and Opus 4.6. CLI works fine, only the desktop app fails.
process exits instantly.
Have exactly the same issue on Claude Code Desktop on macOS. Terminal CLI and the VS Code plugin both work fine — only the Desktop app spawns a child process that exits with code 1 immediately. Logs show the same CSP violation against a-api.anthropic.com.
Same issue here. I've tried all reset/redownload/delete tricks. In Code on Claude Desktop it will run on a legacy code chat, but any new session immediately crashes.
no such column: paths
the same here
same shit, how claude can't fix this, I'm paying PRO and no support whatsoever
same here
Also hitting this on Windows — Claude Desktop build 1.12603.1, bundled Claude Code agent 2.1.170. Every Code session dies the instant a message is sent (
Claude Code process exited with code 4294967295, i.e. -1); the session "warms" fine, then the query process exits ~3s in. Chat/Cowork work; only Code is affected.I ran a fairly exhaustive isolation, and it strongly confirms the "Desktop spawns the child differently than the CLI" theory — the fault is in the app's spawn, not the agent/config/env/auth:
--resume <session>+ the inline--mcp-config+ all--plugin-dirs from a normal shell → works, exit 0.claude.exe(2.1.170) also runs a real query fine standalone, including the--input-format stream-jsonstdin protocol.Ruled out (no effect): full quit/relaunch, Windows reboot, full uninstall + reinstall (the "latest" installer resolves to the same build, so reinstalling can't bring a fix), restarting Explorer to refresh the env,
claude doctor(all pass).Note for anyone arriving from the Windows duplicate (#52766): setting
CLAUDE_CODE_GIT_BASH_PATHdid not fix it here — it was unset, I set it and verified via PEB read that the spawned child inherited it, and it still crashes. NoSessionStart/UserPromptSubmithooks either (both empty).Confirmed workaround: start sessions from the terminal CLI (
claude) — those work fine and even show up in the Desktop session list. Only the in-app "New session" path is broken.Happy to share the captured (secret-scrubbed) command line and environment diff if it would help narrow down what Desktop changes about the spawn.
Anything new on this?
Windows update with additional isolation and a supported workaround, tested July 10, 2026.
Current versions:
1.20186.0.02.1.2052.1.206Claude Code process exited with code 4294967295The Desktop-native spawn failure still reproduces after all of the following:
New evidence from restoring pre-incident session metadata:
/compact, immediately producesSession was interruptedand the same exit code4294967295.Verified workaround using Anthropic's documented Remote Control server mode:
After selecting that Remote Control environment in Desktop, newly created sessions work end to end. A current Haiku 4.5 session successfully responded, used the local Read tool, and read workspace files through Desktop. The hub also survives a Desktop close/relaunch because it runs as an independent local process.
Practical boundary:
same-dirsessions are not isolated from simultaneous edits, so users still need to avoid concurrent writes to the same project or use project-specific worktree servers.This issue is currently labeled only
platform:macos, but the reproducible Windows variant remains active. Aplatform:windowslabel would help keep the two manifestations visible.