Skip to content

Preserve prewarmed reasoning effort across replay and early rollback - #44285

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

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2e2d0e8a06b24f01b717458ca0576d63107c7697

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 9, 2026

Copy link
Copy Markdown

Preserve prewarmed reasoning effort across replay and early rollback

Why

Initial history replay and rollback before the first turn could clear the reasoning-effort baseline established by startup prewarm, preventing the first request from preserving that baseline when the selected effort changes.

What changed

Preserve the reasoning-effort pin during history reconstruction. Clear it on rollback only after startup prewarm has been consumed. With reasoning-effort overrides enabled, a prewarmed medium baseline remains on the request while a subsequent high selection is sent as a configuration_update.

Testing

Add regression coverage for prewarm completing before initial replay on resume and fork. Expand WebSocket tests to cover resumed and forked threads with overrides enabled and disabled, plus rollback before the first turn.

…44285)

## Why

Initial history replay and rollback before the first turn could clear the reasoning-effort baseline established by startup prewarm, preventing the first request from preserving that baseline when the selected effort changes.

## What changed

Preserve the reasoning-effort pin during history reconstruction. Clear it on rollback only after startup prewarm has been consumed. With reasoning-effort overrides enabled, a prewarmed `medium` baseline remains on the request while a subsequent `high` selection is sent as a `configuration_update`.

## Testing

Add regression coverage for prewarm completing before initial replay on resume and fork. Expand WebSocket tests to cover resumed and forked threads with overrides enabled and disabled, plus rollback before the first turn.

GitOrigin-RevId: 2e2d0e8a06b24f01b717458ca0576d63107c7697
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2e2d0e8a06b24f01b717458ca0576d63107c7697 branch from 00ed86a to 5d3f875 Compare September 9, 2026 19:38
@copyberry
copyberry Bot merged commit 5d3f875 into main Sep 9, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2e2d0e8a06b24f01b717458ca0576d63107c7697 branch September 9, 2026 19:38
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 9, 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