[BUG] Cloud routines fail with "An error occurred while executing Claude Code" every morning since July 4
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?
My morning cloud routines have been failing every day since July 4, 2026 (4 consecutive days). The routine shows "Completed" status in the runs panel but the actual task never executes -- it errors out immediately with "An error occurred while executing Claude Code."
The routine was working fine before July 4. No changes were made to the routine configuration. This appears to be an Anthropic infrastructure issue since there is nothing on the user side to fix.
Workaround: Running the same task manually in a Claude Code session works fine.
What Should Happen?
The cloud routine should execute the Claude Code task fully and complete successfully, the same way it does when run manually in a Claude Code session.
Error Messages/Logs
An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.
Steps to Reproduce
- Create a cloud routine in claude.ai/code/routines with a scheduled cron trigger
- Wait for the scheduled run time
- Routine shows "Completed" in the runs panel but task never executes
- Error message appears: "An error occurred while executing Claude Code"
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Web interface (claude.ai/code) - version unknown
Platform
Other
Operating System
Windows
Terminal/Shell
Other
Additional Information
<img width="1366" height="720" alt="Image" src="https://github.com/user-attachments/assets/3ec9f630-b328-4f4c-8b06-f13cac7b19b0" />
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗