Skip to content

[sleep] Sleep & Rest #259

Closed
Closed

Description

@cybermicky0

Whoop 4.0

Android 16

Pixel 7

I slept in morning 6am and its showing in 1am when I'm trying to edit it its showing 6am but its calculation is wrong in sleep Screenshot_20260711-135634.png

Screenshot_20260711-135615.png

Activity

  1. ryanbr commented on Jul 11, 2026

    @ryanbr
    Owner

    Fixed — thanks for the clear screenshots, the "asleep" being larger than "in bed" is exactly what pinned it.

    What was happening: you'd corrected the bedtime to 06:15, but the strap's motion was too sparse to re-stage the night, so the stored stages still covered the 01:58→06:15 stretch. The card summed that full span for "asleep" while "in bed" used your corrected 06:15 — so asleep came out larger than time-in-bed, and the score rode on the inflated number.

    The stages (the asleep number, the stage bars, the hypnogram) and the score now all clamp to your corrected bedtime, so asleep can never exceed time-in-bed. It applies to the night as soon as you're on a build with the fix — no re-sync needed, it recomputes from what's already stored.

    One thing this does NOT change: why the strap detected the start at ~01:58 so you had to edit at all. That's a separate WHOOP 4.0 detection quirk (it can read a long "lying still" stretch as sleep) — I've opened #271 to chase it. Your night's numbers are honest now either way.

  2. tanarchytan commented on Jul 11, 2026

    @tanarchytan

    I put up a fix for this in #269. The likely cause is a small sleep fragment before your real sleep getting folded into the night and setting the displayed bedtime hours early (1am), while the edit picker correctly anchors on the main block (6am). #269 drops such a minor pre-onset fragment when its sleep is small relative to the main block.

    To confirm it matches your night and to tune the threshold precisely, could you share the Sleep tab for that night (the naps card, if one shows) or an export? Mainly how much sleep the ~1am fragment carried versus the 6am block. Thanks.

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