Add usage-based business plan types#15934
Merged
bwanner-oai merged 2 commits intomainfrom Mar 27, 2026
Merged
Conversation
aibrahim-oai
approved these changes
Mar 27, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
self_serve_business_usage_basedandenterprise_cbp_usage_basedto the public/internal plan enums and regenerate the app-server + Python SDK artifactsTesting
just write-app-server-schemauv run --project sdk/python python sdk/python/scripts/update_sdk_artifacts.py generate-typesjust fix -p codex-protocol -p codex-login -p codex-core -p codex-backend-client -p codex-cloud-requirements -p codex-tui -p codex-tui-app-server -p codex-backend-openapi-modelsjust fmtjust argument-comment-lintcargo test -p codex-protocol usage_based_plan_types_use_expected_wire_namescargo test -p codex-login usage_basedcargo test -p codex-backend-client usage_basedcargo test -p codex-cloud-requirements usage_basedcargo test -p codex-core usage_limit_reached_error_formats_cargo test -p codex-tui plan_type_display_name_remaps_display_labelscargo test -p codex-tui remappedcargo test -p codex-tui-app-server plan_type_display_name_remaps_display_labelscargo test -p codex-tui-app-server remappedcargo test -p codex-tui-app-server preserves_usage_based_plan_type_wire_nameNotes
cargo testrun still hits unrelated existing guardian-approval config failures incodex-rs/core/src/config/config_tests.rs