Files
Meal-Planner/.agent/lessons.md
T
admin 2695ba0232
CI / backend (pytest + alembic) (push) Canceled after 0s
CI / frontend (build) (push) Canceled after 0s
feat(meals): enforce three lower-calorie dinners with media
2026-09-01 10:11:36 -07:00

805 B

Project Lessons

  • Weekly bulk meal generation must call generate_meal_plan; fill-empty-slots is a manual slot-filling utility and does not enforce calorie, recency, blocklist, cost, or diversity rules.
  • DB-backed API tests in Compose must point both DATABASE_URL and TEST_DATABASE_URL at the same disposable database ending in _test; pre-migrate it when tests use SessionLocal without the shared schema fixture.
  • Generated local recipe images must be resolved through the current Home Assistant ingress prefix at render time; a root-relative /static/... URL alone escapes the ingress path.
  • Remote multiline verification scripts should be base64-encoded before python -c; layered shell quoting can turn binary escape assertions into literal backslash text and create false failures.