Skip to content

fix(tui): align managed Codex OAuth quota with upstream - #534

Merged
SaladDay merged 2 commits into
SaladDay:mainfrom
zydo:fix/533-codex-oauth-usage-query
Oct 25, 2026
Merged

SaladDay merged 2 commits into
SaladDay:mainfrom
zydo:fix/533-codex-oauth-usage-query

Conversation

@zydo

@zydo zydo commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Managed codex_oauth providers 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 r refresh; 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_ranges error in src/cli/tui/ui/home_chart.rs:806.

@SaladDay SaladDay changed the title fix(tui): clarify managed Codex OAuth quota refresh controls fix(tui): align managed Codex OAuth quota with upstream Oct 25, 2026
@SaladDay
SaladDay merged commit a9eb0ce into SaladDay:main Oct 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UX/Bug] Codex OAuth 用量查询显示禁用但仍可刷新,通用模板会覆盖原生查询

2 participants