Repository navigation
Preserve floating-point values when decoding rollout lines - #38399
Merged
copyberry[bot] merged 1 commit intoAug 13, 2026
Conversation
## Why Serde's generic buffering for flattened and internally tagged fields is incompatible with `serde_json`'s `arbitrary_precision` representation. As a result, persisted rollout items containing nested floating-point values can fail to decode. ## What changed - Decode the rollout envelope at the JSON persistence boundary before deserializing the item payload. - Use the shared decoder for both session resume and thread-history projection. - Cover token-count floats, response-item metadata, field ordering, and ignored metadata in the decoder compatibility test. GitOrigin-RevId: 59c7f6fbcf83162b5ed6980a69381fe45fc20a0a
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/59c7f6fbcf83162b5ed6980a69381fe45fc20a0a
branch
from
August 13, 2026 16:04
cfc8366 to
2bd8727
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/59c7f6fbcf83162b5ed6980a69381fe45fc20a0a
branch
August 13, 2026 16:05
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.
Preserve floating-point values when decoding rollout lines
Why
Serde's generic buffering for flattened and internally tagged fields is incompatible with
serde_json'sarbitrary_precisionrepresentation. As a result, persisted rollout items containing nested floating-point values can fail to decode.What changed