claude-code - 💡(How to fix) Fix [BUG] "Scheduled tasks skipped as 'computer asleep' on awake Windows system" [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#55565Fetched 2026-05-03 04:50:07
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

Code Example

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
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?

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

extent analysis

TL;DR

The issue can be mitigated by investigating the sleep detection mechanism in Claude Code Desktop and potentially adjusting the settings or the system's power management configuration.

Guidance

  • Review the Windows Event Viewer Logs around the scheduled time to check for any system events that might be triggering the false-positive sleep detection.
  • Verify that the "Keep computer awake" setting in Claude Desktop is functioning correctly and not being overridden by any system settings.
  • Check the system's power management configuration to ensure that it is not entering a low-power state that might be misinterpreted as sleep by Claude Code Desktop.
  • Test the scheduled task with a different schedule to see if the issue is specific to the 9:11 daily schedule.

Example

No code snippet is provided as the issue seems to be related to the interaction between Claude Code Desktop and the system's power management configuration.

Notes

The issue might be specific to the Windows platform, and further investigation is needed to determine the root cause. The fact that manual runs succeed minutes later suggests that the issue is not with the task itself, but rather with the scheduling mechanism.

Recommendation

Apply workaround: Adjust the system's power management configuration and the "Keep computer awake" setting in Claude Desktop to prevent the system from entering a low-power state that might be misinterpreted as sleep. This might help mitigate the issue until a permanent fix is available.

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