fix: count GPT-6 Pro in ChatGPT's reported week, not a rolling 7 days #85
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
x/ego-chat!85
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/easpot-chatgpt-week"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #83's count, which was wrong after a ChatGPT reset. #83 counted GPT-6 Pro over a rolling 7 days. But ChatGPT restores the whole weekly allowance at once at a reset: live on 2026-09-26 it reset GPT-6 Pro at 04:54:12 UTC, and eaSpot still showed 123 of 200 used when the true count was 0.
What changes
gpt6ProWindow:computeProUsagenow takesproLimitsand returns GPT-6 Pro's week as ChatGPT counts it,{ capped, startedAt, resetsAt, used }. It is null until ChatGPT has reported a GPT-6 Pro reset.gpt6ProWeek: now counts that week once a reset is known, and stays rolling otherwise. Itspro_usage_highalert follows and names the period it measured.withGpt6ProResetkeeps the last GPT-6 Pro reset that had passed, so the week stays anchored. A carried entry never reads as a limit in force.easpot status --jsonseed are removed;gpt6ProNewestAtandoldestUnansweredSentAt, which came in #83, are gone.Verification
npm test: 1549 tests, 1548 pass, 1 skipped.npm run lintis clean.