Skip to content

feat: add Google Health meal backfill - #177

Merged
QueryPlanner merged 1 commit into
mainfrom
codex/google-health-meal-backfill-retry
Aug 27, 2026
Merged

feat: add Google Health meal backfill#177
QueryPlanner merged 1 commit into
mainfrom
codex/google-health-meal-backfill-retry

Conversation

@QueryPlanner

Copy link
Copy Markdown
Owner

What

Add durable Google Health nutrition backfill, account-safe ongoing export lifecycle, and user-requested retry/status tools.

Why

Connected users previously exported only newly logged meals, while normal confirmations could retain stale "sync is pending" wording.

How

  • Add a durable per-user, Health-account, versioned backfill ledger.
  • Capture high-water marks and queue historical meals in batches of 50.
  • Preserve terminal export history across disconnect/reconnect and isolate replacement accounts.
  • Keep edits/deletions on the existing worker path with lease/crash recovery.
  • Add private get_meal_sync_status and retry_meal_sync tools.
  • Remove pending text from normal confirmations and update prompt, Telegram copy, and docs.
  • Restrict backfill identity matching to canonical private chats and valid topics.

Tests

  • uv run ruff format
  • uv run ruff check
  • uv run mypy .
  • uv run pytest -q --cov=src (1855 passed, 1 skipped, 100% coverage)
  • git diff --check

Related Issues

- Add durable historical meal export coordination
- Preserve account-bound export history across reconnects
- Add private status and retry tools
- Update prompts, Telegram copy, and documentation
@QueryPlanner
QueryPlanner merged commit 1351265 into main Aug 27, 2026
3 checks passed
@QueryPlanner
QueryPlanner deleted the codex/google-health-meal-backfill-retry branch August 27, 2026 09:05
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.

1 participant