My Mac won't go to sleep (after a crash or uninstall)
AgentBarista's optional lid-closed mode uses a macOS power setting called disablesleep (pmset disablesleep 1). The app always switches it back off — but if the app crashed, was force-quit, or was deleted while that setting was on, your Mac can be left unable to sleep. Two ways to fix it:
- Reopen AgentBarista. If a leftover sleep block exists, the panel shows a one-tap warning that restores it. The Emergency Restore button in Settings also clears it.
- Or run this one line in Terminal (it asks for your password):
sudo pmset -a disablesleep 0
To check it worked, run:
pmset -g | grep SleepDisabled
SleepDisabled 0 means normal sleep is restored.