Skip to content

Screen turns off while watching a long agent run on the phone #137

Closed

Description

@devswha

Problem

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.

Size: small.

Activity

  1. added a commit that references this issue on Oct 13, 2026
    d776654
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