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
Owner

Agent tools call ensure_fresh(120s) but the background loop defaulted to 900s, so most finance questions waited on an inline YNAB fetch. Default the loop to 90s (40 req/h, under YNAB's 200/h).

Note: an existing .env that sets YNAB_SYNC_INTERVAL=900 keeps the old behavior; update it on the host.

🤖 Generated with Claude Code

Agent tools call ensure_fresh(120s) but the background loop defaulted to 900s, so most finance questions waited on an inline YNAB fetch. Default the loop to 90s (40 req/h, under YNAB's 200/h). Note: an existing .env that sets YNAB_SYNC_INTERVAL=900 keeps the old behavior; update it on the host. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ryan added 1 commit 2026-10-12 23:02:53 -04:00
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>
ryan merged commit 0eb55560fa into main 2026-10-12 23:06:35 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/simbarag#74