Skip to content

Record reasoning effort changes in conversation history behind a flag - #43110

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Record reasoning effort changes in conversation history behind a flag

What changed

Add the disabled-by-default reasoning_effort_override feature for OpenAI models with use_responses_lite enabled. Append a trusted configuration_update after accepted input when no effort is established in surviving history or the resolved effort changes. Preserve the existing history prefix and continue sending the request-level reasoning effort.

Share effort normalization through ModelInfo::resolve_reasoning_effort so requests and history updates resolve ultra consistently and translate persistent to disabled. Exclude other custom effort values from history updates, and compare only against harness-authored configuration items.

Testing

Add integration coverage for effort transitions, deduplication, history prefix and cache-key preservation, alias normalization, and feature/provider/model gating. Add unit coverage for model-specific ultra resolution, fallbacks, and persistent translation.

…#43110)

## What changed

Add the disabled-by-default `reasoning_effort_override` feature for OpenAI models with `use_responses_lite` enabled. Append a trusted `configuration_update` after accepted input when no effort is established in surviving history or the resolved effort changes. Preserve the existing history prefix and continue sending the request-level reasoning effort.

Share effort normalization through `ModelInfo::resolve_reasoning_effort` so requests and history updates resolve `ultra` consistently and translate `persistent` to `disabled`. Exclude other custom effort values from history updates, and compare only against harness-authored configuration items.

## Testing

Add integration coverage for effort transitions, deduplication, history prefix and cache-key preservation, alias normalization, and feature/provider/model gating. Add unit coverage for model-specific `ultra` resolution, fallbacks, and `persistent` translation.

GitOrigin-RevId: c3fe7050058076454d8ea20054a618bca9d48c7c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c3fe7050058076454d8ea20054a618bca9d48c7c branch from fa22498 to 56a8470 Compare September 5, 2026 21:57
@copyberry
copyberry Bot merged commit 56a8470 into main Sep 5, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c3fe7050058076454d8ea20054a618bca9d48c7c branch September 5, 2026 21:59
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 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