[BUG] "Scheduled tasks skipped as 'computer asleep' on awake Windows system"

Resolved 💬 5 comments Opened May 2, 2026 by MAXPAIN007 Closed May 6, 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?

Description template:
Environment
Claude Code Desktop version: 2.1.118
Platform: win32-x64
Windows version: [your Windows version]
Package manager: winget
Issue
Scheduled tasks are consistently skipped with reason "computer was asleep" even though the computer is awake and running.
Steps to Reproduce
Create a scheduled task in Claude Code Desktop Routines
Set schedule (e.g., 9:11 daily)
Ensure Windows sleep is disabled
Enable "Keep computer awake" in Claude Desktop settings
Keep Claude Desktop open and running
Wait for scheduled time
Expected Behavior
Task should execute at scheduled time
Actual Behavior
Task is skipped. History shows "computer was asleep" even though:
Windows was awake
Sleep mode disabled
Claude Desktop was open
Screen was active
Manual "Run now" works correctly minutes later
Pattern
9:11 scheduled runs: skipped as "asleep"
9:24 manual runs: succeed
Screenshots
[Attach your task history screenshot]
Event Viewer Logs
[Paste relevant entries from Windows Logs → Application around 9:11]
This appears to be false-positive sleep detection in Claude Code Desktop on Windows.

<img width="609" height="516" alt="Image" src="https://github.com/user-attachments/assets/71606a1a-5bec-4cb4-a421-9161061d87f6" />

What Should Happen?

Scheduled tasks should work! Task should execute at scheduled time

Error Messages/Logs

Scheduled tasks information doesn`t includeed to the log report.

Scheduled tasks only run while your computer is awake. but PC and app was swith on

Task is skipped. History shows "computer was asleep" even though:
Windows was awake
Sleep mode disabled
Claude Desktop was open
Screen was active
Manual "Run now" works correctly minutes later

Steps to Reproduce

Steps to Reproduce
Create a scheduled task in Claude Code Desktop Routines
Set schedule (e.g., 9:11 daily)
Ensure Windows sleep is disabled
Enable "Keep computer awake" in Claude Desktop settings
Keep Claude Desktop open and running
Wait for scheduled time

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude Code version 2.1.126.

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗