Sync YNAB in the background inside the tools' freshness window #74

Merged
ryan merged 1 commits from perf/ynab-sync-interval into main 2026-10-12 23:06:35 -04:00

1 Commits

Author SHA1 Message Date
Ryan Chen d49907aefe Sync YNAB in the background inside the tools' freshness window
Agent tools call ensure_fresh(120s) but the background loop ran every
900s, so most finance questions waited on an inline YNAB fetch. Default
the loop to 90s (40 requests/hour, well under YNAB's 200/hour limit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 22:55:33 -04:00