Skip to content

fix(nano_banana_dashboard): inject current date into prompt and cache key#116

Open
natesilva wants to merge 1 commit into
usetrmnl:masterfrom
natesilva:fix-111-nano-banana-current-date
Open

fix(nano_banana_dashboard): inject current date into prompt and cache key#116
natesilva wants to merge 1 commit into
usetrmnl:masterfrom
natesilva:fix-111-nano-banana-current-date

Conversation

@natesilva
Copy link
Copy Markdown

When the plugin refreshes after midnight, source plugin data (e.g. calendar’s today_in_tz) may still contain yesterday's date. The Gemini prompt had no independent date reference, causing the LLM to render calendars and date-dependent visuals for the wrong day.

  • Add current_date method returning user’s timezone-aware date
  • Inject today’s date into prompt before source data, with override instruction to prefer it over stale dates in source data
  • Prepend current_date to cache key so the image regenerates on date change

Fixes #111

… key

When the plugin refreshes after midnight, source plugin data (e.g.
calendar’s today_in_tz) may still contain yesterday's date. The Gemini
prompt had no independent date reference, causing the LLM to render
calendars and date-dependent visuals for the wrong day.

- Add current_date method returning user’s timezone-aware date
- Inject today’s date into prompt before source data, with override
  instruction to prefer it over stale dates in source data
- Prepend current_date to cache key so the image regenerates on date
  change

Fixes usetrmnl#111
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.

Include today's date in user's timezone in the image generation prompt

1 participant