mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Record reasoning effort changes in conversation history behind a flag (#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
This commit is contained in:
1 parent
e67a8ae6c9
commit
56a8470aa0
11 files changed
+523
-39
No files matched your search
@@ -41,6 +41,8 @@ pub use guardian::GuardianScope;
|
||||
|
||||
#[path = "openai_models/guardian_v2.rs"]
|
||||
mod guardian_v2;
|
||||
#[path = "openai_models/reasoning_effort.rs"]
|
||||
mod reasoning_effort;
|
||||
|
||||
pub use guardian_v2::GuardianV2ModelConfig;
|
||||
pub use guardian_v2::GuardianV2TranscriptModelConfig;
|
||||
@@ -1020,7 +1022,6 @@ mod tests {
|
||||
multi_agent_reasoning_effort: None,
|
||||
}
|
||||
}
|
||||
|
||||
fn personality_variables() -> ModelInstructionsVariables {
|
||||
ModelInstructionsVariables {
|
||||
personality_default: Some("default".to_string()),
|
||||
|
||||
Reference in new issue
Block a user