Add config bundle transport types#24617
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
e9202e5 to
015b89b
Compare
015b89b to
aefd558
Compare
bolinfest
left a comment
There was a problem hiding this comment.
There appear to be some non-idiomatic things here.
Is this how things are normally done in this crate?
| use serde::Deserialize; | ||
| use serde::Serialize; | ||
|
|
||
| #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] |
There was a problem hiding this comment.
I think you want:
#[serde(rename_all = "snake_case")]can drop the individual rename on each field?
| #[serde( | ||
| rename = "config_toml", | ||
| default, | ||
| with = "::serde_with::rust::double_option", |
| * | ||
| * The version of the OpenAPI document: 0.0.1 | ||
| * | ||
| * Generated by: https://openapi-generator.tech |
There was a problem hiding this comment.
What's the deal with this?
| pub requirements_toml: Option<Option<Box<models::DeliveredRequirementsToml>>>, | ||
| } | ||
|
|
||
| impl ConfigBundleResponse { |
There was a problem hiding this comment.
Can omit this and also use ::default()?
Yes, everything in this Since this is codegen and the other files follow the same patterns, I'm assuming it's OK we leave it as is? |
Add curated generated OpenAPI models for the codex-backend config bundle response and re-export them through codex-backend-client. Expose Client::get_config_bundle() for both Codex API and ChatGPT /wham path styles. This is transport-only wiring for the first cloud config bundle checkpoint; it does not replace the existing requirements loader or change runtime config behavior.
aefd558 to
1fde72a
Compare
|
@joeflorencio-openai I suppose it is, though I feel like the codegen logic could be improved to generate more canonical Rust... |
Summary
PR 1 of 5 in the cloud-managed config client stack.
Adds the generated backend models and client transport surface for the config bundle endpoint. This bundle endpoint is the replacement backend surface for legacy cloud requirements; the final PR in the stack switches runtime consumers over to it.
Details
/api/codex/config/bundleand/wham/config/bundle.Validation
Validated through the targeted stack checks after rebasing onto current
main:codex-coreandcodex-app-servercloud_config_bundletestscargo shear --deny-warningsargument-comment-lintfor config/hooks