I saw I had apparently closed an issue at 02:35 last night, when I thought my laptop wasn’t awake!
I looked into it and every session of Claude Code runs spawns a
caffeinate
process and keeps refreshing it every 4 minutes for as long as it’s working.
It makes sense to have this feature , there is just 0 visibility on it doing this, so I thought I had to e.g. run caffeinate -du -t 2700 to keep awake for 45 mins (2700 seconds), and always guessed way too high just to be safe
It’s not mentioned in the release notes this feature, only a mention of fixing a bug with it:
- Fixed
caffeinateprocess not properly terminating when Claude Code exits, preventing Mac from sleeping (from https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md ) I since found an issue which requests allowing it to be turned off: https://github.com/anthropics/claude-code/issues/21432 , which I would like the option to be able to do! submitted by /u/mcmuff1n
Originally posted by u/mcmuff1n on r/ClaudeCode
You must log in or # to comment.
