Skip to content

Route rollout reads through the canonical JSON decoder - #42378

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/49abac1e0751c073daa5a93a840d8a483fd2d013
Sep 2, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/49abac1e0751c073daa5a93a840d8a483fd2d013

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Route rollout reads through the canonical JSON decoder

Why

Directly deserializing the flattened RolloutLine envelope can reject nested
decimal values, preventing affected paginated sessions from resuming.

What changed

  • Add canonical string, byte, and reverse-scanner helpers that decode rollout
    records through serde_json::Value before decoding the flattened item.
  • Route rollout readers across session discovery, history, migration, search,
    thread storage, and transcript previews through those helpers.
  • Remove Deserialize from RolloutLine so new readers cannot bypass the
    canonical persistence decoder.

Testing

Add coverage that resumes a paginated rollout after a token-count record with
a decimal rate-limit value and verifies that ordinal sequencing continues.

## Why

Directly deserializing the flattened `RolloutLine` envelope can reject nested
decimal values, preventing affected paginated sessions from resuming.

## What changed

- Add canonical string, byte, and reverse-scanner helpers that decode rollout
  records through `serde_json::Value` before decoding the flattened item.
- Route rollout readers across session discovery, history, migration, search,
  thread storage, and transcript previews through those helpers.
- Remove `Deserialize` from `RolloutLine` so new readers cannot bypass the
  canonical persistence decoder.

## Testing

Add coverage that resumes a paginated rollout after a token-count record with
a decimal rate-limit value and verifies that ordinal sequencing continues.

GitOrigin-RevId: 49abac1e0751c073daa5a93a840d8a483fd2d013
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/49abac1e0751c073daa5a93a840d8a483fd2d013 branch from 3749fa8 to 69cebb5 Compare September 2, 2026 22:46
@copyberry
copyberry Bot merged commit 69cebb5 into main Sep 2, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/49abac1e0751c073daa5a93a840d8a483fd2d013 branch September 2, 2026 22:47
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant