Skip to content

Web: keep the phone screen on while an agent is working #155

Open

Description

@bencode

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions