Skip to content

Bug: "Keep Screen On" silently stops working after visiting a Settings sub-page #6

Open

Description

@TimmySheep

Hi! Thanks for FreeReps.

A small but consequential bug in Settings → Keep Screen On.

Steps to reproduce

  1. Enable Keep Screen On
  2. Stay on the sync page — screen stays awake as expected ✅
  3. Navigate to any Settings sub-page (e.g. Connection)
    — nothing needs to be changed, just open it and go back
  4. The toggle still looks enabled, but the screen now turns off normally ❌

Why this matters

When the screen locks mid-sync, the running upload is force-disconnected.
On my self-hosted server this shows up as:

level=ERROR msg="ingest error"
error="processing metrics: inserting health metrics: context canceled"

After returning to the app, sync progress shows "No Complete Baseline" and
the run has to be restarted. A stale Keep Screen On state silently aborts long
backfills.

Expected

The setting should stay in effect until explicitly toggled off, regardless of
navigation between Settings sub-pages.

Environment

  • iOS app v1.0, iPhone, iOS 27.0

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions