[BUG] CC on Web or CC standalone App: "Claude Code execution failed" 100% of the time

Resolved 💬 19 comments Opened Apr 29, 2026 by sroussey Closed Jun 1, 2026

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?

Claude Code on the web has been completely non-functional on my account for the past 48 hours. Every new session fails on initialization with: "An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session." Standard troubleshooting (cache clear, different browser, incognito) does not help. Same issues in the desktop app. Please investigate or escalate.
Plan: Max
Browser: Chrome on macOS
Reproduces: 100% across all repos and new sessions
CLI works normally with the same account

I am pretty sure this is related to setting up a dev environment after git clone and then starting CC and it dies.

<img width="1080" height="1386" alt="Image" src="https://github.com/user-attachments/assets/d9830164-5e44-40b8-b811-b303bd78466b" />

What Should Happen?

It used to work, though i did rename some things on github. So i deleted the github claude app and deleted the connection on CC side, and then re-connected but that does not seem to be it.

The cli works fine.

The CC desktop app has something slightly different:

<img width="771" height="174" alt="Image" src="https://github.com/user-attachments/assets/bcea6152-37b4-4fde-92af-c8d6989eb76a" />

Error Messages/Logs

API Error
An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.



An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.

Steps to Reproduce

I select a repo and then type anything. What i type does not matter. CC fails on anything and everything.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

CC on the Web

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Cursor

Additional Information

_No response_

View original on GitHub ↗

19 Comments

sroussey · 2 months ago

<img width="799" height="1298" alt="Image" src="https://github.com/user-attachments/assets/77969bee-8206-435e-8298-8a48c0e83fb3" />

sroussey · 2 months ago

In the CC app, i was able to bring up the dev tools and saw this:

<img width="2230" height="616" alt="Image" src="https://github.com/user-attachments/assets/f8e4be21-fbe4-45e8-9449-8460e31d57cc" />


{"request_id":"01riluxwh2y9","type":"control_request","request":{"subtype":"initialize"}} | 90 | 18:35:01.140
-- | -- | --
{"created_at":"2026-04-29T01:35:03.736420Z","data":{"category":"init","content":"Environment runner started","extra":{"expected_steps":"provision,clone,setup_script,start_cc","session_mode":"resume-cached","step_id":"provision","step_status":"completed"},"level":"info","timestamp":"2026-04-29T01:35:03.631573045Z"},"type":"env_manager_log","uuid":"fd96fea2-d233-49a4-9a34-3e541130d0b0"} | 388 | 18:35:03.745
{"created_at":"2026-04-29T01:35:03.895223Z","data":{"category":"init","content":"Initializing environment","extra":{},"level":"info","timestamp":"2026-04-29T01:35:03.633822309Z"},"type":"env_manager_log","uuid":"ce08d3de-a8d9-455d-938a-17061902bc10"} | 251 | 18:35:03.895
{"created_at":"2026-04-29T01:35:03.905879Z","data":{"category":"init","content":"Fetching repository workglow-dev/libs","extra":{"step_detail":"workglow-dev/libs","step_id":"clone","step_status":"started"},"level":"info","timestamp":"2026-04-29T01:35:03.637308562Z"},"type":"env_manager_log","uuid":"368ae723-36f4-4b97-9ce7-425c10d97588"} | 339 | 18:35:03.908
{"created_at":"2026-04-29T01:35:05.029937Z","data":{"category":"init","content":"Fetching repository workglow-dev/libs","extra":{"step_detail":"workglow-dev/libs","step_id":"clone","step_status":"completed"},"level":"info","timestamp":"2026-04-29T01:35:04.930893538Z"},"type":"env_manager_log","uuid":"349ca7c4-a222-45ef-8d6e-4e04ac97130f"} | 341 | 18:35:05.036
{"created_at":"2026-04-29T01:35:05.107915Z","data":{"category":"init","content":"Finished processing sources","extra":{"step_id":"clone","step_status":"completed"},"level":"info","timestamp":"2026-04-29T01:35:04.931191356Z"},"type":"env_manager_log","uuid":"8343ea66-f96b-4c98-b6eb-8901f2ac025c"} | 297 | 18:35:05.111
{"created_at":"2026-04-29T01:35:05.121013Z","data":{"category":"init","content":"No setup script configured","extra":{"step_id":"setup_script","step_status":"skipped"},"level":"info","timestamp":"2026-04-29T01:35:04.942817624Z"},"type":"env_manager_log","uuid":"83591356-ee21-4648-88db-9d93d90c1d1d"} | 301 | 18:35:05.127
{"created_at":"2026-04-29T01:35:05.133267Z","data":{"category":"init","content":"Parallel initialization completed","extra":{"duration_ms":1311},"level":"info","timestamp":"2026-04-29T01:35:04.94315052Z"},"type":"env_manager_log","uuid":"28e7e53d-01ae-4f0c-8223-8476b9782b8d"} | 277 | 18:35:05.138
{"created_at":"2026-04-29T01:35:05.146712Z","data":{"category":"init","content":"Claude Code executor created","extra":{"duration_ms":0,"total_startup_duration_ms":1313},"level":"info","timestamp":"2026-04-29T01:35:04.943460962Z"},"type":"env_manager_log","uuid":"9d10d15d-8e7a-4777-bee2-5b92863c33fb"} | 303 | 18:35:05.150
{"created_at":"2026-04-29T01:35:05.158491Z","data":{"category":"init","content":"Starting Claude Code","extra":{"step_id":"start_cc","step_status":"started"},"level":"info","timestamp":"2026-04-29T01:35:04.948238279Z"},"type":"env_manager_log","uuid":"80bed92f-42ea-411f-8528-7843eb9392d6"} | 291 | 18:35:05.163
{"created_at":"2026-04-29T01:35:05.170043Z","data":{"category":"init","content":"Claude Code process started","extra":{"step_id":"start_cc","step_status":"completed"},"level":"info","timestamp":"2026-04-29T01:35:04.95331504Z"},"type":"env_manager_log","uuid":"22b592b4-94c3-4adb-9082-70379d9ad635"} | 299 | 18:35:05.174
{"created_at":"2026-04-29T01:35:08.013008Z","isApiErrorMessage":true,"message":{"content":[{"text":"An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.","type":"text"}],"model":"\u003csynthetic\u003e","role":"assistant","stop_reason":"stop_sequence","usage":{"input_tokens":0,"output_tokens":0}},"type":"assistant","uuid":"c8637c31-448c-4f0f-beae-68ac331762ea"} | 427 | 18:35:08.135
{"created_at":"2026-04-29T01:35:08.029522Z","duration_api_ms":0,"duration_ms":0,"errors":["An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session."],"is_error":true,"num_turns":0,"subtype":"error_during_execution","total_cost_usd":0,"type":"result","usage":{"input_tokens":0,"output_tokens":0},"uuid":"be289684-f46c-461b-96ae-c862f686b114"} | 402 | 18:35:08.232
{"created_at":"2026-04-29T01:35:08.061855Z","data":{"category":"execute","content":"Claude Code execution failed","extra":{"duration_ms":2960,"error":"exit status 1","exit_code":1},"level":"error","timestamp":"2026-04-29T01:35:07.909114398Z"},"type":"env_manager_log","uuid":"490ad382-8053-4d5f-8250-c660badb21eb"} | 315 | 18:35:08.239
{"type":"keep_alive"}
sroussey · 2 months ago

Back to the web version, there is also an event history:

{
    "data": [
        {
            "created_at": "2026-04-29T01:22:48.992844Z",
            "request": {
                "subtype": "initialize"
            },
            "request_id": "gbp7a9ntxmr",
            "type": "control_request",
            "uuid": "bca08a19-02a9-4a7f-8518-6e74a2c347d6"
        },
        {
            "created_at": "2026-04-29T01:22:52.185704Z",
            "data": {
                "category": "init",
                "content": "Environment runner started",
                "extra": {
                    "expected_steps": "provision,clone,setup_script,start_cc",
                    "session_mode": "resume-cached",
                    "step_id": "provision",
                    "step_status": "completed"
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:52.082815709Z"
            },
            "type": "env_manager_log",
            "uuid": "9d1f8bde-ae1a-45da-a849-bb4a6110434d"
        },
        {
            "created_at": "2026-04-29T01:22:52.273499Z",
            "data": {
                "category": "init",
                "content": "Fetching repository workglow-dev/libs",
                "extra": {
                    "step_detail": "workglow-dev/libs",
                    "step_id": "clone",
                    "step_status": "started"
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:52.084584765Z"
            },
            "type": "env_manager_log",
            "uuid": "8eaeca70-8d5c-4ab3-becf-1153be2fdcbc"
        },
        {
            "created_at": "2026-04-29T01:22:52.285919Z",
            "data": {
                "category": "init",
                "content": "Initializing environment",
                "extra": {},
                "level": "info",
                "timestamp": "2026-04-29T01:22:52.083513081Z"
            },
            "type": "env_manager_log",
            "uuid": "2ff15273-cd32-4931-ad25-f4dc8d30ad17"
        },
        {
            "created_at": "2026-04-29T01:22:53.401881Z",
            "data": {
                "category": "init",
                "content": "Fetching repository workglow-dev/libs",
                "extra": {
                    "step_detail": "workglow-dev/libs",
                    "step_id": "clone",
                    "step_status": "completed"
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:53.310930949Z"
            },
            "type": "env_manager_log",
            "uuid": "e67099ea-eacd-43ab-92b5-e024317f397f"
        },
        {
            "created_at": "2026-04-29T01:22:53.487425Z",
            "data": {
                "category": "init",
                "content": "Finished processing sources",
                "extra": {
                    "step_id": "clone",
                    "step_status": "completed"
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:53.311080753Z"
            },
            "type": "env_manager_log",
            "uuid": "1bac6cab-8dc6-44df-ac30-475d39c84a9d"
        },
        {
            "created_at": "2026-04-29T01:22:53.497512Z",
            "data": {
                "category": "init",
                "content": "No setup script configured",
                "extra": {
                    "step_id": "setup_script",
                    "step_status": "skipped"
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:53.319834325Z"
            },
            "type": "env_manager_log",
            "uuid": "3000e478-c8c4-491f-ac2f-9a1068423cef"
        },
        {
            "created_at": "2026-04-29T01:22:53.507405Z",
            "data": {
                "category": "init",
                "content": "Parallel initialization completed",
                "extra": {
                    "duration_ms": 1237
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:53.32004072Z"
            },
            "type": "env_manager_log",
            "uuid": "e8798086-45d3-4d9b-8491-ef0035eccc7f"
        },
        {
            "created_at": "2026-04-29T01:22:53.519314Z",
            "data": {
                "category": "init",
                "content": "Claude Code executor created",
                "extra": {
                    "duration_ms": 0,
                    "total_startup_duration_ms": 1239
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:53.320197005Z"
            },
            "type": "env_manager_log",
            "uuid": "b8e4e4c2-4431-4ac7-93b6-ee833b5ebff3"
        },
        {
            "created_at": "2026-04-29T01:22:53.531295Z",
            "data": {
                "category": "init",
                "content": "Starting Claude Code",
                "extra": {
                    "step_id": "start_cc",
                    "step_status": "started"
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:53.32335849Z"
            },
            "type": "env_manager_log",
            "uuid": "41c8086a-89d7-4764-841e-8feb0fc441a2"
        },
        {
            "created_at": "2026-04-29T01:22:53.548639Z",
            "data": {
                "category": "init",
                "content": "Claude Code process started",
                "extra": {
                    "step_id": "start_cc",
                    "step_status": "completed"
                },
                "level": "info",
                "timestamp": "2026-04-29T01:22:53.326015798Z"
            },
            "type": "env_manager_log",
            "uuid": "e91b9c1e-827d-420d-9745-8c310f9093e9"
        },
        {
            "created_at": "2026-04-29T01:22:56.291684Z",
            "isApiErrorMessage": true,
            "message": {
                "content": [
                    {
                        "text": "An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.",
                        "type": "text"
                    }
                ],
                "model": "\u003csynthetic\u003e",
                "role": "assistant",
                "stop_reason": "stop_sequence",
                "usage": {
                    "input_tokens": 0,
                    "output_tokens": 0
                }
            },
            "type": "assistant",
            "uuid": "06e62808-e221-49e6-8c37-da344b10db4f"
        },
        {
            "created_at": "2026-04-29T01:22:56.309794Z",
            "duration_api_ms": 0,
            "duration_ms": 0,
            "errors": [
                "An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session."
            ],
            "is_error": true,
            "num_turns": 0,
            "subtype": "error_during_execution",
            "total_cost_usd": 0,
            "type": "result",
            "usage": {
                "input_tokens": 0,
                "output_tokens": 0
            },
            "uuid": "f210d764-88fa-4193-826a-349c1316f050"
        },
        {
            "created_at": "2026-04-29T01:22:56.349480Z",
            "data": {
                "category": "execute",
                "content": "Claude Code execution failed",
                "extra": {
                    "duration_ms": 2866,
                    "error": "exit status 1",
                    "exit_code": 1
                },
                "level": "error",
                "timestamp": "2026-04-29T01:22:56.190485354Z"
            },
            "type": "env_manager_log",
            "uuid": "329ce0ed-af63-4a66-a87c-47b083fdb16e"
        }
    ],
    "first_id": "bca08a19-02a9-4a7f-8518-6e74a2c347d6",
    "has_more": false,
    "last_id": "329ce0ed-af63-4a66-a87c-47b083fdb16e"
}
sroussey · 2 months ago

!image

iOS app fails too

sroussey · 2 months ago

Tried looking at logs

!image

But that fails too

sroussey · 2 months ago

The support AI is terrible!

CC reports internal API errors, and the support AI can not let go of the idea that it must be a VPN on my side (no network API issues, really AI for real please please believe me).

_Steven: no. this is an error between CC on web and api for provisioning a dev environment, and so the calls are entirely without anthropic not between me and anthropic like the app or cli might do Steven • 16h and the cli is fine Steven • 16h You’re right to call that out: in Claude Code on the web, the “API Error” you’re seeing is coming from the cloud session’s call to our API (not a direct browser-to-Anthropic request), so it’s not the same as a local CLI connection issue.
Since your CLI works, this is most likely either: a network block (firewall, proxy, VPN) that prevents the cloud session from reaching api.anthropic.com, or an organization IP allowlist that blocks cloud sessions because they call the API from our infrastructure (not your network). Quick check: are you on a corporate network with IP allowlisting or a required proxy?_

So, apparently Anthropic has some internal VPN issues??? LoL

skhaz · 2 months ago

I have the same issue when I try to use /ultraplan

sroussey · 2 months ago

I thought if the cli used remote-control that would work. But i tried pasting an image to the remote controlled cli session and got this error:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.144.content.1.text: cache_control cannot be set for empty text blocks"},"request_id":"req_011CaYudCtp6KyVvNe1cL6FD"}

I also tried text:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_011CaYuyW2FwE76dWs7LCyn7"}

So my idea of setting up worktrees in the cli, all with remote control, is not going to work.

sroussey · 2 months ago

<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/6d87089d-f04e-498e-b578-c356e8fec178" />

<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/ff0aa4f5-831c-4c65-ae51-218e05fa2513" />

<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/c7f403b5-16af-450b-903f-6a490ed9f43b" />

older

[](https://claude.ai/code/session_01U8JLoP13X27q32HUK3RPQd)
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/1c040910-4719-4cbd-8f90-c44693044369" />



<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/17d096f4-3401-4d72-bcf6-720ee1833ec7" />

[](https://claude.ai/code/session_01XrPU6EbKV8JqN97ZFN5UHX)
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/dfcb56e7-6c7d-48d4-9712-e8f66b57d252" />

[](https://claude.ai/code/session_01EfcvNvAkh3ZbE19TjGgNSr)
<img width="996" height="574" alt="Image" src="https://github.com/user-attachments/assets/fa293fd5-fdef-41d2-b818-08ea1feed4d2" />

sroussey · 2 months ago

The AI support told me to do /doctor /feedback and /bug but none work.

rwdaigle · 2 months ago

This happens to me 100% of the time across multiple projects and cloud envs (but works with local envs and via the CLI). Just completely bricked for me a few days ago and nothing since.

!image

rwdaigle · 2 months ago

Hmmm, I just tried with the Default cloud env and I got a response. I wonder if we don't need to delete and recreate our cloud envs? Maybe a bad caching issue on their side after recent upgrades?

sroussey · 2 months ago

What default cloud environment? How do I do that?

sroussey · 2 months ago

@rwdaigle Thanks! I figured it out.

If you have code that uses ANTHROPIC_API_KEY and you set it in the env of the cloud env, claude code dies.

rwdaigle · 2 months ago

Ah, ok - good find thanks!

vlogbase · 2 months ago

Same thing worked for me - rename the anthropic key in the cloud env.
Looks like that's the fix.
This is a new issue though - I've had that key set in that cloudy env for months and was completely fine until a few days ago.

sroussey · 2 months ago
Same thing worked for me - rename the anthropic key in the cloud env. Looks like that's the fix. This is a new issue though - I've had that key set in that cloudy env for months and was completely fine until a few days ago.

Agreed. This change was this week.

Admittedly, it did push me to not have keys directly in the env. Now I encrypt them and commit to source and the decrypt key is now in the env

ThomasHendrickx · 2 months ago

I had the same issue, and the fix was as well removing or renaming the anthropic key in the cloud environment variables.

One proposed fix for anthropic is to

  1. Get some documentation on what variables cannot be set (or at least I could not find it)
  2. Add better error handling
  3. Have some basic validation in the form field where you write (paste) in the environment variables.
github-actions[bot] · 1 month ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.