Skip to content

[Bug]: Prolite weekly quota alternates between two seven-day windows without a conflict warning #8574

Closed

Description

@ThingsCouldGetDicey

Client or integration

OpenCodex dashboard (Codex Auth), with corroborating Codex CLI/TUI quota events through the local proxy.

Area

Authentication and account pool.

Summary

On @bitkyc08/opencodex 2.99.0, the same stored Codex pool-account quota-history bucket and credential generation repeatedly contained two incompatible weekly usage/reset pairs:

  • 100% used, reset 2026-11-11 18:55 UTC;
  • 24% used, reset 2026-11-17 18:34 UTC.

Both wham and response-header observations appeared for these conflicting states on 2026-11-11, before 18:55 UTC. The Codex Auth dashboard displayed whichever pair was currently retained, without warning that it conflicted with another recently observed weekly window. This led the operator to expect an imminent full reset even though the other displayed window was already partially used.

Scope and uncertainty: This report establishes a quota provenance / inconsistency-reporting problem in OpenCodex. It does not establish whether the underlying conflicting data originated upstream, from account routing, or from OpenCodex's ingestion. Do not infer that the earlier reset guarantees recovered quota, or that 24% was consumed after 18:55.

Reproduction

This is a read-only reconstruction of an intermittent production observation, not a deterministic fresh reproduction. No additional model requests or quota refreshes were sent during investigation.

  1. In a Codex account-pool setup, observe one stored prolite pool account via Codex Auth and the read-only CLI history command ocx account history openai <pool-account-id> --limit 200 --json. Do not attach raw account JSON or credentials publicly.

  2. The retained history for one pool account and the same credential generation (1) contained the following sequence. Times shown in UTC, all on 2026-11-11:

    Observed (UTC) History source Weekly used Reported weekly reset
    14:58 response-header 24% Nov 17, 18:34
    15:00 response-header 100% Nov 11, 18:55
    15:06 wham 100% Nov 11, 18:55
    15:17 wham 24% Nov 17, 18:34
    16:34 response-header 100% Nov 11, 18:55
    16:35 response-header 24% Nov 17, 18:34
    16:36 response-header 100% Nov 11, 18:55
    17:40 wham 24% Nov 17, 18:34
  3. The existing Codex TUI token_count / rate_limits.primary events separately show window_minutes=10080 (seven days) for both reset dates, ruling out a simple five-hour-versus-weekly label mix-up in those client events. In a long-running multi-account session, however, these events alone do not prove which upstream account produced each event; the pool-specific history is the account attribution evidence above.

  4. The dashboard showed 24% used / Nov 17 reset, after previously showing 100% used / Nov 11 reset, without identifying the incompatible observations or their source. Both states had been observed before Nov 11, 18:55.

Expected behaviour

  • When the same stored pool account receives conflicting, live weekly reset identities, surface a clear conflicting quota observations state (or equivalent diagnostics) with source and observation time. Do not present an earlier reset as a guaranteed restoration of the full allowance.
  • Preserve separate source, credential-generation, and account identity evidence. Distinguish a verified rollover from a changed reset timestamp.
  • Do not relax account admission, disable hard locks, alter routing, or enable paid credits based solely on a predicted reset.

Actual behaviour

The dashboard and read-only history display incompatible weeklyPercent / weeklyResetAt pairs as ordinary account readings. src/codex/quota.ts ingests fresh weekly tuples into the stored snapshot; the UI provides no indication that the weekly reset identity recently changed back and forth.

This is distinct from a carried, expired weekly reading: the history records fresh wham and response-header observations for both pairs.

Version

Affected installation: @bitkyc08/opencodex 2.99.0, OpenCodex Desktop 2.99.0. Codex CLI 0.167.0.

Source-only comparison: v2.100.2 includes #8185, addressing stale carried-forward weekly readings. Version 2.100.2 was not installed or tested here, and that fix does not by itself establish protection against contradictory fresh weekly observations.

Operating system

Linux x86_64, Wayland.

Provider and model

OpenAI Codex account pool (prolite plan code); the inconsistent meter is account-level, not specific to a model.

Logs or error output

Redacted quota-history evidence, UTC. This is an extracted field-only summary, not complete upstream HTTP headers:

2026-11-11 15:00:57  response-header  weekly=100%  reset=2026-11-11T18:55:40Z
2026-11-11 15:06:22  wham             weekly=100%  reset=2026-11-11T18:55:40Z
2026-11-11 15:17:23  wham             weekly=24%   reset=2026-11-17T18:34:49Z
2026-11-11 16:34:55  response-header  weekly=100%  reset=2026-11-11T18:55:40Z
2026-11-11 16:35:06  response-header  weekly=24%   reset=2026-11-17T18:34:49Z
2026-11-11 16:36:25  response-header  weekly=100%  reset=2026-11-11T18:55:40Z
2026-11-11 17:40:45  wham             weekly=24%   reset=2026-11-17T18:34:49Z

All quoted weekly observations refer to the same stored pool-history bucket and credential generation. No raw auth.json, quota cache, full logs, cookies, access/refresh tokens, email addresses, account IDs, hostnames, request IDs, or conversation IDs are included.

Screenshots and supporting files

No screenshots or raw session/credential files attached to protect account and personal information. Relevant source paths:

Related: OpenAI Codex #44251 reports a similar oscillation; OpenCodex #3376 covers quota-history/scheduling; OpenCodex PR #8185 addresses expired carried-forward weekly readings, a different mechanism.

Suggested offline regression: For one captured account identity/credential generation, feed fresh 100% / reset A (response header), 24% / reset B (WHAM), then 100% / reset A again; verify diagnostics report the inconsistent window identities and sources, without changing quota admission or credit consent. Include a normal true rollover control case.

Redacted configuration

Illustrative shape only, not a verbatim configuration dump:

{
  "providers": { "openai": { "codexAccountMode": "pool" } },
  "codexAccounts": [ { "isMain": false, "plan": "prolite" } ]
}

Checks

  • I searched existing issues and documentation, including similar upstream oscillation and the already-fixed expired-carry issue.
  • I removed secrets, tokens, account details, request credentials, machine/local paths, and personal data.
  • I distinguished direct local observations from hypotheses about their upstream origin.

Activity

  1. added
    bug
    account-pool
    platform
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    account-poolbugplatform

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions