You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Claude session (5h) window transiently reads 100% via OAuth while claude.ai shows 5% - v0.48.0, same symptom class as #210 #279
Setup: codexbar 0.48.0, Windows 11, Claude Max 5x, OAuth source.
The exact-100% symptom from #210 (fixed for the all-models weekly lane in 0.48.0) appeared today on the session (5h) window. Timeline, all times UTC on 2026-08-13:
04:53Z — session window read 98%, resets_at 07:50Z. This was genuine (a CLI session really did hit the limit).
07:50Z — window reset; a new session window anchored shortly after (resets_at 2026-08-13T12:49:59Z).
08:14Z — usage --provider both --json returned used_percent: 100.0 for the session window, minutes into the fresh window.
08:15Z — claude.ai/settings/usage showed Current session: 5% used, resets in 4h 31m. Note it agreed on the reset time — only the percentage differed.
08:50Z — a fresh CLI call returned used_percent: 10.0 (plausible). So the bogus reading is transient and self-corrects.
08:50Z raw output (bug no longer showing):
{"primary":{"is_informational":false,"reset_description":"Aug 13 at 12:50PM","resets_at":"2026-08-13T12:50:00.181641Z","used_percent":10.0,"window_minutes":300}}
The 08:14Z reading was captured through a thin wrapper that camelCases the CLI JSON (values verbatim): {"usedPercent":100,"resetDescription":"Aug 13 at 12:49PM","resetsAt":"2026-08-13T12:49:59.578826Z","windowMinutes":300}
Given the #210 root cause (stale legacy seven_day.utilization reporting 1.0 while the truth lived in limits[]), this looks like the same pattern on the session lane — a stale five_hour-style utilization field winning over the fresh limits[] value, transiently, right after a window rollover.
Opened #334 with the fix. It applies the same #210 pattern (prefer limits[] over the stale legacy utilization field) to the session (5h) lane, in both the OAuth and web API paths. Six new unit tests reproduce the transient-100% rollover scenario and assert the fresh limits[] value wins; legacy five_hour remains the fallback when no limits[] session entry is present.
Activity
Finesssee commentedon Aug 14, 2026
thanks for the issue, I will try to fix it ASAP
Finesssee commentedon Aug 16, 2026
Opened #334 with the fix. It applies the same #210 pattern (prefer
limits[]over the stale legacy utilization field) to the session (5h) lane, in both the OAuth and web API paths. Six new unit tests reproduce the transient-100% rollover scenario and assert the freshlimits[]value wins; legacyfive_hourremains the fallback when nolimits[]session entry is present.fix(claude): prefer limits[] session over stale five_hour after 5h ro…