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
Web: keep the phone screen on while an agent is working #155
The iOS app keeps the screen on while an agent is working, on a session's page and in its full-screen terminal (and while recording voice). The phone web app (PWA) does neither yet.
What to do on the web:
Keep the screen on while the agent of the open chat or terminal is working, and while recording voice input.
Use the Screen Wake Lock API (navigator.wakeLock.request('screen')). The lock is released when the page is hidden, so request it again on visibilitychange while it is still wanted.
Several reasons can want it at once (a recording inside a working agent's terminal); release the lock only once none does.
blocked (the agent asks you) does not keep the screen on, as in the app.
Activity