claude-code - 💡(How to fix) Fix [BUG] Claude Desktop (Windows) uses prevent-display-sleep instead of prevent-app-suspension, preventing monitor from turning off [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#46483Fetched 2026-04-11 06:19:06
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

Error: System Availability Request — Execution Required A program has requested that the system remain active. Requesting Process: \Device\HarddiskVolume3\Program Files\WindowsApps\Claude_1.1617.0.0_x64__pzs8sxrjxfjjc\app\claude.exe

Code Example

Error: System Availability RequestExecution Required
A program has requested that the system remain active.
Requesting Process: \Device\HarddiskVolume3\Program Files\WindowsApps\Claude_1.1617.0.0_x64__pzs8sxrjxfjjc\app\claude.exe

---

EXECUTION:
[PROCESS] \Device\HarddiskVolume3\Program Files\WindowsApps\Claude_1.1617.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
Electron

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

Claude Desktop on Windows uses Electron's powerSaveBlocker with the prevent-display-sleep type, which prevents the display from turning off even when the Windows power plan is configured to turn off the display after a set period of inactivity.

The prevent-display-sleep type keeps both the system and the screen active, but Claude Desktop only needs the system to stay awake (e.g., for Cowork scheduled tasks). The display does not need to remain on.

Evidence

Running powercfg /energy /duration 60 produces the following error entry:

Error: System Availability Request — Execution Required
A program has requested that the system remain active.
Requesting Process: \Device\HarddiskVolume3\Program Files\WindowsApps\Claude_1.1617.0.0_x64__pzs8sxrjxfjjc\app\claude.exe

Additionally, powercfg /requests shows:

EXECUTION:
[PROCESS] \Device\HarddiskVolume3\Program Files\WindowsApps\Claude_1.1617.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
Electron

The display never turns off regardless of the power plan setting (tested with 10-minute timeout on AC power, confirmed via powercfg /query that the correct value of 600 seconds is applied). Manually sending the display-off signal via SendMessage(WM_SYSCOMMAND, SC_MONITORPOWER) works fine — the display turns off and stays off — confirming the hardware and drivers are not the issue. The power save blocker from Claude Desktop is the sole cause.

What Should Happen?

Claude Desktop should use prevent-app-suspension instead of prevent-display-sleep. Per the Electron documentation:

  • prevent-app-suspension: Keeps the system active but allows the screen to be turned off. Suitable for background tasks like downloading files or running scheduled tasks.
  • prevent-display-sleep: Keeps both the system and the screen active. Only appropriate for video playback or similar use cases.

Since Claude Desktop needs to stay running for Cowork/scheduled tasks but does not need the display on, prevent-app-suspension is the correct type.

Error Messages/Logs

Steps to Reproduce

  1. Install Claude Desktop on Windows (MSIX from Microsoft Store)
  2. Set Windows power plan to turn off display after 10 minutes on AC power
  3. Leave the computer idle for 10+ minutes
  4. Observe that the display never turns off
  5. Run powercfg /requests — observe claude.exe under EXECUTION
  6. Close Claude Desktop completely
  7. Wait 10 minutes — display turns off as expected

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Desktop 1.1617.0 (Windows)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

Environment

  • Claude Desktop version: 1.1617.0
  • OS: Windows 11 (Build 26200)
  • Hardware: Samsung Galaxy Book4 Ultra (960XFH)
  • Power plan: Custom ("SAMSUNG MODE"), display off after 10 min (AC) / 3 min (DC), sleep disabled ("해당 없음")

Related Issues

  • #21432 — Request to disable automatic caffeinate in Claude Code (macOS, CLI — similar concept but different platform and app)

extent analysis

TL;DR

Change the Electron powerSaveBlocker type from prevent-display-sleep to prevent-app-suspension to allow the display to turn off while keeping the system active for background tasks.

Guidance

  • Review the Electron documentation for powerSaveBlocker to understand the differences between prevent-app-suspension and prevent-display-sleep.
  • Update the Claude Desktop code to use prevent-app-suspension instead of prevent-display-sleep to fix the issue.
  • Verify the fix by setting the Windows power plan to turn off the display after a set period and checking that the display turns off as expected while Claude Desktop is running.
  • Test the fix on different power plans and hardware configurations to ensure it works as expected.

Example

No code snippet is provided as the issue does not include the relevant code section.

Notes

The fix assumes that the Electron powerSaveBlocker API is being used correctly and that the issue is solely due to the incorrect type being used. Additional debugging may be required if the issue persists after applying the fix.

Recommendation

Apply the workaround by changing the powerSaveBlocker type to prevent-app-suspension, as this is the correct type for background tasks like scheduled tasks, and it allows the display to turn off while keeping the system active.

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