Repository navigation
fix(tui): align managed Codex OAuth quota with upstream - #534
Merged
Merged
Conversation
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.
Managed
codex_oauthproviders could show Usage Query as disabled even though native subscription refresh worked. Enabling a generic balance template then replaced the working native query.Use the bound account's native Codex OAuth quota regardless of saved usage templates. In the Claude provider form, hide the generic Usage Query entry, preserve saved account bindings and legacy script metadata, and explain native quota refresh in the existing account-field help. Keep the existing automatic queries, five-minute refresh interval, and manual
rrefresh; no new refresh switch or query mode is introduced.This follows the desktop provider card's native quota display and hidden configuration entry for Claude-side Codex OAuth providers:
Scope is limited to quota selection and the existing TUI form/help. Model routing, failover, account rotation and the scheduler are unchanged.
Closes #533.
Validation: focused quota tests (42), usage-query tests (62), and OAuth form tests (3) passed with isolated home/config directories on pinned Rust 1.91.1. Formatting and whitespace checks passed. Clippy remains blocked by the unchanged
clippy::reversed_empty_rangeserror insrc/cli/tui/ui/home_chart.rs:806.