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
status line keeps the Anthropic rate-limit window after switching to another provider #479
After switching the model from an Anthropic one to openai-codex/gpt-6.2-astra in the same session, the status line keeps showing the 7-day window from the last Anthropic response (7d 11% (4d11h) for us).
Every later Codex response leaves it unchanged, so the number is stale and belongs to a different account.
In extensions/status-line.ts (1.9.0, same code in 1.10.1):
parseRateLimits reads only the anthropic-ratelimit-unified-5h / -7d header families.
after_provider_response replaces rateLimits only when that parse returns something, so a response without Anthropic headers keeps the old snapshot.
model_select only calls scheduleRefresh(); it doesn't clear rateLimits. Only session_start does.
Suggested approach
Clear rateLimits on model_select when the provider changes, so a stale window disappears instead of being shown against the wrong account.
Optionally, map the Codex usage headers into rate_limits. The Codex CLI binary references *-primary-used-percent, *-primary-window-minutes, *-primary-reset-at and the matching *-secondary-* fields. I haven't captured a live response to confirm the exact prefix.
1 alone fixes the wrong number. 2 is a feature on top.
Activity