[codex] Double pro quota ratio and align quota display#37
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.
Summary
This PR doubles the normalized
proquota capacity and makescodexm listandcodexm tuiuse the same quota display budgets and styling rules. It also removes unit tests that only asserted static quota/config mappings.What changed
proone-week capacity from25/3to50/3plus-equivalent units.src/cli/quota-display.ts.USEDis fixed at width 6 so decimal labels like62.5%fit.Impact
User-visible:
proaccounts now contribute double the normalized quota capacity, CLI/TUI quota rows align more consistently, and medium-width TUI terminals prefer stacked layout before the detail pane becomes cramped.No release is included in this PR: package version, git tag, and npm publish are intentionally deferred.
Validation
git diff --checkpassed.pnpm verify:fullpassed outside the sandbox. The sandboxed run failed only because the test process could not chmod/Users/bytedance/.codex-team(EPERM).dist/cli.jswith tempHOME/CODEX_HOME:node dist/cli.js listand PTY width 76 list rendering showed decimalUSEDlabels aligned.node dist/cli.js tuiin PTY width 120 used stacked list/detail layout.node dist/cli.js tuiin PTY width 136 used wide layout with62.5%/27.4%inside theUSEDcolumns.