A user has identified an issue where Claude Code's remote control functionality stops when a MacBook lid is closed, preventing continued interaction. This occurs because the session runs on the Mac, and the machine enters sleep mode when the lid is shut. The user proposes a solution involving the `pmset` command to disable sleep, with a warning about potential battery drain and overheating if not managed properly. They also developed a menu bar app called Lidnight to automate this process, ensuring the Mac stays awake only during active Claude Code sessions and allows it to sleep afterward. AI
IMPACT Provides a workaround for users experiencing session interruptions with AI coding tools on laptops.
RANK_REASON User-developed tool to address a specific software behavior.
Read on dev.to — Claude Code tag →
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →