Repository navigation
Dashboard 2.0 - Preview 21: Health Connect and agent nutrition
What's new: Add a Health Connect calorie widget and optional agent food logging, goals and health-stat access.
- Add Health from the widget picker; configure it under Settings → Health Connect.
- Remaining = food goal − eaten + active calories burned. Total burned is shown separately; no food goal is assumed.
- Separate opt-ins control Drive health sharing and agent food/goal edits. Stable meal IDs prevent duplicate retries.
- Guide version 9 documents the private health request/result files. Copy the updated short prompt for your agent.
- Includes Preview 20's faster Home return. Health Connect can be unavailable or denied without disabling the launcher.
Health access depends on Android/device support and permissions. Clinical/FHIR documents and exercise routes are excluded. Background sync can be delayed by Android. See HEALTH_CONNECT.md for setup and limits.
Validation: 37 JVM tests pass; full Android regression passes 85 tests; final targeted checks pass 21 tests after permission/bounds hardening. A real emulator Health Connect provider was tested with synthetic nutrition data, including retry deduplication, correction, aggregation, read-back and cleanup. No physical sensor or live personal Drive account test was performed. SHA-256: 871470e8e0777b31bb0bdfbaa10b8da9bd7c1f48a516270d2c24f8189b2d0ee0