Repository navigation
[codex] Follow up WHOOP history retry handling - #8
Conversation
|
Follow-up after checking the local Whoopsie and Goose reference repos:
Validated locally with:
|
|
Follow-up for the remaining The backfill path still treated history as failed unless one of a few terminal signals arrived within 180s. That is too brittle for a large strap backlog, especially if historical frames are flowing but the strap does not emit the exact completion marker we expected. This update mirrors the Goose-style completion behavior more closely:
Validated locally with:
|
|
Follow-up for historical data not appearing in the dashboard: I found a persistence-side issue separate from the BLE handshake. This update keeps live-session downsampling unchanged, but makes historical sync order-agnostic: if a historical record passes the existing exact timestamp/type duplicate guard, it is persisted regardless of arrival order. Validated locally with:
|
Summary
Follow-up to #7 after retesting issue #6.
The first PR fixed persistence and dashboard repair, but retesting still showed historical sync reporting connection failure on the first attempt and disconnected/no-op behavior on later attempts. This PR addresses the remaining session lifecycle and UI visibility issues.
What changed
currentSessionIdopen and swallow the next backfill request.Validation
./gradlew.bat :app:assembleDebug./gradlew.bat testDebugUnitTest