Skip to content

Fix Cursor provider dropping data older than 35 days#169

Merged
iamtoruk merged 1 commit intomainfrom
fix/cursor-lookback
Apr 28, 2026
Merged

Fix Cursor provider dropping data older than 35 days#169
iamtoruk merged 1 commit intomainfrom
fix/cursor-lookback

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

@iamtoruk iamtoruk commented Apr 28, 2026

Summary

  • Increase the Cursor parseBubbles lookback from 35 to 180 days so longer period views (30-day, month, all) surface historical data
  • The hardcoded 35-day floor silently dropped all bubbles older than 5 weeks, making --period all return $0
  • NULL createdAt handling (OR IS NULL in SQL, fallback timestamp) was already fixed in 0.9.2
  • Period scoping is handled downstream by parseProviderSources; the cursor-cache prevents repeated full DB scans

Fixes #159, fixes #163

Test plan

  • 374 tests pass
  • TypeScript type check clean

Increase lookback from 35 to 180 days so longer period views
(30-day, month, all) show accurate totals.

Fixes #159, fixes #163
@iamtoruk iamtoruk force-pushed the fix/cursor-lookback branch from f949c12 to e3506ca Compare April 28, 2026 03:02
@iamtoruk iamtoruk merged commit 383df90 into main Apr 28, 2026
@iamtoruk iamtoruk deleted the fix/cursor-lookback branch April 28, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant