Skip to content

fix(menubar): reduce repeated status parsing (#486) + clock-skew guard - #499

Merged
iamtoruk merged 2 commits into
mainfrom
reduce-status-parsing-patched
Jun 18, 2026
Merged

fix(menubar): reduce repeated status parsing (#486) + clock-skew guard#499
iamtoruk merged 2 commits into
mainfrom
reduce-status-parsing-patched

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Supersedes #486. Contains @vaibhavarora14's repeated-status-parsing fix (their commits preserved) plus one maintainer follow-up commit.

What #486 does (closes #484)

  • daily-cache: stops re-parsing yesterday on every hydration once it is already cached (the cache only stores complete past days, so re-parsing produced identical data). Real perf win.
  • cursor-agent: dedupes the "unrecognized transcript" warning so the same file only warns once per process.

Follow-up commit on this branch

The original change removed a block that also self-healed a rare case: a cached entry dated today or later (from the system clock moving backward, or a stale older cache) would be served frozen instead of recomputed live. Re-added as a narrow guard that purges only >= today entries, so yesterday and earlier stay cached (the perf win is preserved) while today is always recomputed live. Added a regression test.

Verification

  • npm run build passes.
  • Full suite: 1170/1171. The single failure is the pre-existing usage-aggregator timeout flake (passes in isolation at ~3.5s), unrelated to this change.
  • daily-cache + cursor-agent targeted tests pass, including the PR's regression tests and the new clock-skew test.

vaibhavarora14 and others added 2 commits June 13, 2026 00:07
Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps the perf win from PR #486 (yesterday stays cached, no re-parse every
run) but restores a narrow safety guard: drop any cached entry dated today or
later before computing the gap range. The cache only ever stores complete past
days, so a >= today entry can only come from the clock moving backward or a
stale older cache; without this it would be served frozen instead of being
recomputed live. Yesterday and earlier are untouched, so this does not
re-parse already-cached days. Adds a regression test.
@iamtoruk
iamtoruk merged commit 49d1ddc into main Jun 18, 2026
3 checks passed
@iamtoruk
iamtoruk deleted the reduce-status-parsing-patched branch June 18, 2026 10:08
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.

Reduce repeated Cursor agent status parsing

2 participants