Fixes
Afterhours 0.2.1
Fixes
- A stuck Claude Code session now times out after 15 minutes even when Afterhours can't match its process to a running agent, and an agent no longer shows up twice when its hook reports a child process. CPU activity is no longer sampled from scans less than a second apart, so a screen redraw can't be mistaken for real work.
- Installing or removing Claude Code hooks no longer overwrites your
settings.jsonwhen it isn't valid JSON. You'll see an error instead, and your file stays untouched. Afterhours now keeps a freshsettings.json.afterhours-backupbefore every write, and writes through a symlinkedsettings.jsoninstead of replacing it. The hook CLI ignores an unrecognized--statevalue instead of treating it as working, and the menu shows an error if the hook binary fails to install at launch. - A Mac docked to an external display with its lid closed now stays awake when agents finish, when you pause, and when you turn Afterhours off. Afterhours only puts a closed Mac to sleep when closing the lid would sleep it anyway. Stopping Afterhours with
killorpkillnow turns lid-closed mode off before the app exits. A laptop whose battery can't be read no longer counts as plugged in. - Lid-closed mode now writes its sudoers rule from the privileged step itself, so nothing else running as your user can change the rule while the password prompt is open.