Developer shares method to prevent Mac sleep during long AI coding tasks
A developer explains why Claude Code sessions stall when closing a MacBook lid. macOS automatically sleeps during lid closure unless specific external hardware is connected. The pmset command can disable sleep entirely but carries battery drain and overheating risks. The developer created a wrapper script that temporarily disables sleep only during active processes.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in