Skip to content

Filter saved reasoning overrides from requests when disabled - #46291

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/aac3257da1ca38a0744807c4f7cb12565bd7fe53
Sep 17, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Filter saved reasoning overrides from requests when disabled

Why

Resuming a thread after disabling reasoning effort overrides still sent saved configuration_update items until compaction. Disabling the feature should also apply to requests built from existing history.

What changed

Pass the ReasoningEffortOverride feature state into ModelClient and filter configuration_update items from request input when disabled. Preserve persisted history and other input items while using the request-level reasoning effort.

Testing

Add regression coverage for resumed threads, compaction, and WebSocket warmup and turn requests. Verify that saved updates remain in history and agent_message items remain in request input.

## Why

Resuming a thread after disabling reasoning effort overrides still sent saved `configuration_update` items until compaction. Disabling the feature should also apply to requests built from existing history.

## What changed

Pass the `ReasoningEffortOverride` feature state into `ModelClient` and filter `configuration_update` items from request input when disabled. Preserve persisted history and other input items while using the request-level reasoning effort.

## Testing

Add regression coverage for resumed threads, compaction, and WebSocket warmup and turn requests. Verify that saved updates remain in history and `agent_message` items remain in request input.

GitOrigin-RevId: aac3257da1ca38a0744807c4f7cb12565bd7fe53
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/aac3257da1ca38a0744807c4f7cb12565bd7fe53 branch from c64864a to 47915ce Compare September 17, 2026 19:43
@copyberry
copyberry Bot merged commit 47915ce into main Sep 17, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/aac3257da1ca38a0744807c4f7cb12565bd7fe53 branch September 17, 2026 19:43
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 17, 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