Repository navigation
feat(protocol): preserve inference wire evidence - #712
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
Code Review
This pull request introduces the InferenceCallSource enum to track the local provenance of inference attempts and refactors several existing enums (InferenceCallStatus, InferenceCallTransport, and InferenceCallField) to support open-ended variants with an Unknown fallback. This ensures forward compatibility and lossless round-tripping of newer wire tokens. Comprehensive unit tests are also added to validate serialization, deserialization, and schema generation. The review feedback points out a forward-compatibility issue in the deserialization of the "code_mode" source type, where missing or malformed fields trigger a hard error instead of falling back to the Unknown variant, and provides a code suggestion to resolve it.
Summary
Ops reference: w13328
Validation
cargo fmt --manifest-path codex-rs/Cargo.toml --package codex-protocolcargo test -p codex-protocol inference_call_ --lib(12 passed)Base:
d79f6761d3e55ee23a7a622b7192b57962c73ae6Candidate:
54bc6aa316288345284b2dd4663fb390bf1f9008