{"version":"2.1.8","anchor":"macos-sleep-prevention","canonical_anchor":"macos-sleep-prevention","heading":"macOS Sleep Prevention","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.8\/e\/macos-sleep-prevention","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.8","markdown":"### macOS Sleep Prevention\n\n**What**\n\nClaude Code now automatically prevents macOS from sleeping during long-running operations.\n\nUsage: Automatic\u2014no user action required.\n\n**Details**\n\n- Uses macOS `caffeinate -i` command to prevent idle sleep\n- Active only during operations that need it (reference-counted)\n- Automatically restarts caffeinate every 4 minutes to maintain prevention during very long tasks\n- Properly cleans up on session exit\n- Only applies to macOS; no effect on other platforms\n\n**Evidence**\n\n`OW9()` at line 517291 (`caffeinate`, `-i`, `-t`, `\"Started caffeinate to prevent sleep\"`)"}