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
Screen turns off while watching a long agent run on the phone #137
Watching a long agent run on the phone, the screen turns off and has to be unlocked again to see progress.
Proposal
A setting, off by default: keep the screen on while a pane (terminal or chat) is visible.
Use the Screen Wake Lock API (navigator.wakeLock.request("screen")). Release it when the pane closes, and request it again on visibilitychange, since the browser drops the lock whenever the page is hidden.
It needs HTTPS or localhost; do nothing where the API is missing.
This is different from an idle lock screen: it keeps the screen on and locks nothing.
Reference
herdr-mobile-relay requests a wake lock only while a terminal is visible, behind a setting (wake-lock.ts). It is AGPL-3.0: reimplement the behavior, don't copy code.
Activity
feat(settings): test device alerts and keep the screen on (devswha#148)