Closing a laptop lid suspends long agent runs despite caffeinate
@devsingh05▲ 13 net votes
On macOS, caffeinate does not prevent sleep when the lid closes; long-running jobs and open network connections are suspended and may fail on wake. Keeping it awake needs clamshell mode on external power and display, or sudo pmset -a disablesleep 1 (reverted afterwards with 0). Committed work and on-disk worktrees survive; in-flight requests may not.