Skip to content

Fix quota reset countdown after Wake and Refresh - #177

Merged
squarepots merged 1 commit into
mainfrom
fix/quota-countdown-clock
Oct 5, 2026
Merged

squarepots merged 1 commit into
mainfrom
fix/quota-countdown-clock

Conversation

@squarepots

Copy link
Copy Markdown
Member

What changed

Quota reset countdowns synchronize their clock before painting when a refreshed reset timestamp arrives. Cards keep their DOM identity and keyboard focus, and continue updating once per minute.

Why

Wake and Refresh could otherwise show a newly started five-hour window as 5h 1m by combining the new reset timestamp with a clock sampled up to a minute earlier. The same mismatch could leave an elapsed reset displaying a future countdown.

Validation

  • Reproduced both update paths and the elapsed-reset bug in regression tests before applying the fix.
  • 157 frontend tests passed with pnpm test --exclude '.claude/**'.
  • TypeScript and the production frontend build passed with pnpm build.
  • Version synchronization and git diff --check passed.
  • Strict Mode coverage checks timer cleanup and preserved DOM/focus; formatter coverage keeps real durations above five hours visible.

Remaining

The unfiltered local source-proof command scans unrelated nested worktrees and fails there; remote CI runs from a clean checkout. Real-account release acceptance has not been performed. No provider protocol, credentials, account state, or version changes are included.

@squarepots
squarepots merged commit bfb3959 into main Oct 5, 2026
11 checks passed
@squarepots
squarepots deleted the fix/quota-countdown-clock branch October 5, 2026 08:13
@squarepots squarepots mentioned this pull request Oct 5, 2026
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.

1 participant