Skip to content

[Feature]: show the configured Codex usage-switch threshold beside the pool strategy #4524

Description

@mushikingh

Area

Authentication and account pool

What are you trying to accomplish?

Understand the effective Codex account-pool routing policy from the normal Providers view, including the configured usage-switch threshold.

For example, when the rotation strategy is Quota and the threshold is 80%, the visible summary should communicate both values.

What prevents this today?

The account-pool card visibly shows Rotation strategy: Quota, but the configured threshold is only available inside the collapsed Advanced settings section.

The threshold materially changes routing: it determines when an account is treated as drained for proactive switching and when an existing task may be rebound. Without the numeric value in the normal view, the visible priority list and strategy do not fully explain why a different account was selected.

Quota-bar styling can hint that a threshold exists, but it does not state the configured value or whether proactive switching is disabled.

What should OpenCodex do?

Show a compact, read-only summary of the configured threshold beside the visible rotation strategy. Keep the existing control for editing the value under Advanced settings.

Suggested states:

  • Quota · switch at 80%
  • Fill-first · drain at 80%
  • Round-robin · threshold not used
  • Quota · proactive switching off

The exact wording can follow the semantics of each strategy, but the effective configured value should be visible without expanding Advanced settings.

Example usage or interface

Current:

Rotation strategy  Quota
Advanced settings  (collapsed)

Suggested:

Rotation strategy  Quota · switch at 80%
Advanced settings  (edit)

Alternatives or workarounds

Expand Advanced settings whenever the value needs to be checked, or inspect it with ocx account current openai --json or the account auto-switch status command. Neither workaround exposes the effective threshold in the normal Providers view where routing decisions are being interpreted.

Additional context

This is separate from #806, which discussed strategy semantics and wording, and #4521, which reports manual selection of an account that the active threshold immediately rejects.

Observed in 2.53.0 and still present on the current development branch at the time of filing.

Checks

  • I searched existing issues and documentation.
  • This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
  • I removed secrets and personal data.

Activity

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-poolOAuth, credentials, Codex pool, quota, failover, plansenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions