You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Block suspension/hibernation while processing #13656
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
While that application is calling and waiting on inferences. Prevent the system from falling asleep. For me, I may have long running local models that continue to run. However, when they're done, I don't mind the system falling asleep. It's unnecessary to completely disable sleep for long periods of time while opencode isn't actively processing.
This should be a configurable option.
Helpful commands:
systemd-inhibit --what=sleep --why="OpenCode is active" sleep 60
Reacted by Peter Strøiman, Yeon-gil Kang(강연길), Loren Burkholder and drefrajo
Activity
mmirus commentedon Feb 28, 2026
For what it's worth, I had OpenCode make a plugin for me to do this. Haven't tested it much yet, but here it is:
Edit: the code I posted doesn't clean up the block after OpenCode finishes work or exits
You can run
systemd-inhibit --list --no-pagerwhile OpenCode is working on something, and you'll see an entry in the list for it.antonio-ivanovski commentedon Apr 18, 2026
Very surprised that there is no such option, especially when codex have had this since first version
Personally use
caffeinate -don macos to prevent sleep.github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
SirRufo commentedon Oct 2, 2026
I prefer
caffeinate -iso the display can save energy but the system is still working