Fix explicit-year Claude reset parsing#2038
Merged
Merged
Conversation
Owner
Author
|
Exact-head proof for
|
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
Why
An existing Claude CLI fixture contains
Resets Jan 2, 2026, 10:59pm (Europe/Helsinki). CodexBar preserved that text but returned no structured reset date because the canonical parser only accepted yearless forms. That removed countdown, pace, warning, and reset-scheduling behavior from an otherwise valid quota window. The public JSON helper also anchored partial reset dates to year 2000 through a separate formatter.This is a focused follow-up to #2022. Explicit years are authoritative and never become annual recurrences; existing yearless/time-only behavior remains unchanged.
Verification
Exact candidate:
becac52c39183fee8f0c351c0561b3e94bf41c46make check: passed; SwiftFormat and SwiftLint report zero violations.make test: 599/599 selections and 50/50 groups passed with zero failures, retries, or timeouts.autoreview --mode branch --base origin/main: clean; no accepted/actionable findings.e0ee6a04(Fix stale native menu hover highlight geometry #2035), producing tree069be2eawith the exact five-file +171/-41 delta. The only overlap is independent changelog additions; all four runtime/test blobs are byte-identical to the proven candidate. GitHub's cached merge ref still uses the older base, so this is reported separately as current-main merge-tree proof.No provider login, browser session, real Claude request, or Keychain access is required for this parser-only change.
Public Model Identifier Gate: PASS (model-free diff and fixtures).
Dependency freshness: N/A (no dependency changes).