fix: invalidate Cursor cache after missing-createdAt fix#337
Open
lincolnwan wants to merge 1 commit into
Open
Conversation
Contributor
|
Validation run on macOS arm64. No local project names, paths, prompts, session IDs, costs, or usage details are included here. Proof:
Read-only review notes:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CODEBURN_CACHE_DIRfor Cursor result cache, matching docs and enabling isolated cache tests.createdAtfix.Why
This follows up on
fe2e622("Skip Cursor bubble rows that lack a createdAt timestamp") from PR #321; it invalidates caches generated before that parser fix.That parser fix made fresh parsing skip Cursor bubble rows without
createdAt, but existing~/.cache/codeburn/cursor-results.jsonfiles could still contain v3 cached calls timestamped with parse time.If the Cursor DB mtime/size did not change, CodeBurn would continue trusting that stale cache and still report phantom current-day usage.
Testing
npm test -- tests/cursor-cache.test.ts tests/providers/cursor.test.ts tests/providers/cursor-bubble-dedup.test.ts tests/providers/cursor-workspace-breakdown.test.tsnpx tsc --noEmitNotes
This does not change Cursor parsing logic. It only invalidates previously poisoned Cursor result caches and adds coverage for that behavior.