Skip to content

[codex] Fix WHOOP historical sync and dashboard data - #7

Merged
BarMal merged 1 commit into
masterfrom
codex/whoop-history-sleep-gates
Jun 20, 2026
Merged

BarMal merged 1 commit into
masterfrom
codex/whoop-history-sleep-gates

Conversation

@BarMal

@BarMal BarMal commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #6.

This PR completes the existing codex/whoop-history-sleep-gates branch and addresses the WHOOP data sync issue where live heart rate could update while dashboard graphs stayed empty, and historical backfill could degrade from an initial connection failure into subsequent disconnected attempts.

What changed

  • Decode and persist additional WHOOP historical/live records already present on this branch, including compact HR history and dashboard graph wiring.
  • Repair missing hr_samples rows from previously captured raw IMU rows so older captures can populate the dashboard graphs without needing to recapture the same strap data.
  • Refresh dashboard analytics after HR repair so pull-to-refresh/disconnect completion can update graphs immediately.
  • Reset the GATT manager between retry attempts so failed handshakes do not poison later attempts with stale connected/connecting state.
  • Fail pending connection/live/history waits immediately on BLE disconnect, allowing historical sync retries to happen instead of waiting for long timeouts.

Validation

  • ./gradlew.bat :app:assembleDebug
  • ./gradlew.bat testDebugUnitTest

@BarMal
BarMal marked this pull request as ready for review June 20, 2026 07:36
@BarMal
BarMal merged commit 14cf7ad into master Jun 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Whoop data issues

1 participant