[BUG] Claude desktop app holds NoIdleSleepAssertion indefinitely, preventing macOS idle sleep
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?
Platform: macOS 15.6.1 (Sequoia)
Describe the bug:
The Claude desktop app (Electron) holds a NoIdleSleepAssertion power assertion
indefinitely, preventing the Mac from sleeping when idle. The assertion is never
released until the app is quit.
To reproduce:
- Open Claude desktop app
- Leave it open for several hours without quitting
- Run:
pmset -g assertions - Observe
pid <N>(Claude): NoIdleSleepAssertion named: "Electron"with a
multi-hour elapsed time
Expected: The assertion should be released when Claude is idle / not
actively processing.
Actual: The assertion persists indefinitely (observed 48+ hours),
preventing macOS idle sleep.
Workaround: Quit and relaunch Claude to release the assertion.
What Should Happen?
Claude Desktop should not prevent waking from sleep.
Error Messages/Logs
Steps to Reproduce
Diagnosed with Claude via calling
pmset -g assertions
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Sonnet 4.6
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗