Skip to content

Handle fractional rate limits in thread history projection - #36083

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/68da907987ffe59f4a3033ef90f3b88c39734cb1
Jul 30, 2026
Merged

Handle fractional rate limits in thread history projection#36083
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/68da907987ffe59f4a3033ef90f3b88c39734cb1

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 30, 2026

Copy link
Copy Markdown

Handle fractional rate limits in thread history projection

Why

Paginated thread history could reject valid rollout records when rate-limit
percentages were encoded as floating-point JSON values, preventing later final
answers from being projected.

What changed

Deserialize each rollout line through serde_json::Value before converting it
to RolloutLine, preserving floating-point rate-limit values during history
materialization.

Testing

Added coverage for projecting fractional, integral, very small, and large
floating-point rate-limit percentages across both catch-up materialization and
subsequent history appends.

## Why

Paginated thread history could reject valid rollout records when rate-limit
percentages were encoded as floating-point JSON values, preventing later final
answers from being projected.

## What changed

Deserialize each rollout line through `serde_json::Value` before converting it
to `RolloutLine`, preserving floating-point rate-limit values during history
materialization.

## Testing

Added coverage for projecting fractional, integral, very small, and large
floating-point rate-limit percentages across both catch-up materialization and
subsequent history appends.

GitOrigin-RevId: 68da907987ffe59f4a3033ef90f3b88c39734cb1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/68da907987ffe59f4a3033ef90f3b88c39734cb1 branch from 18e90dc to 88ec932 Compare July 30, 2026 04:55
@copyberry
copyberry Bot merged commit 88ec932 into main Jul 30, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/68da907987ffe59f4a3033ef90f3b88c39734cb1 branch July 30, 2026 04:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

8 participants