mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Pin request reasoning effort while configuration overrides are active (#43795)
## Why Reasoning-effort changes should preserve the request baseline while trusted `configuration_update` items carry the selected effort. ## What changed - Pin request-level reasoning effort for the current model when reasoning-effort overrides are available, including during WebSocket prewarm. - Re-establish the selected effort after rollback, resume, or a model switch, refreshing the trusted override even when the selection is unchanged. - Continue using the selected request effort when overrides are unavailable. ## Testing Add regression coverage for WebSocket prewarm and reconnect, rollback, resume, and model switches. Update transition tests to assert that request-level effort stays pinned while configuration updates change. GitOrigin-RevId: 89cfee6289543230347b0488d1388190b4da7216
This commit is contained in:
1 parent
df522cae16
commit
31ccaf40c2
7 files changed
+504
-14
No files matched your search
@@ -2313,7 +2313,8 @@ async fn try_run_sampling_request(
|
||||
prompt,
|
||||
&step_context.settings.model_info,
|
||||
&step_context.session_telemetry,
|
||||
step_context.settings.reasoning_effort().cloned(),
|
||||
sess.reasoning_effort_for_request(&step_context.settings)
|
||||
.await,
|
||||
step_context.settings.reasoning_summary,
|
||||
step_context.settings.service_tier.clone(),
|
||||
responses_metadata,
|
||||
|
||||
Reference in new issue
Block a user