mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Support persistent reasoning effort (#40799)
## What changed - Add `persistent` to the reasoning-effort protocol and TypeScript SDK types. - Show model-advertised persistent reasoning in the TUI as “Persistent”. - Preserve `persistent` in local configuration while sending the Responses API's `disabled` wire value. ## Testing - Cover parsing and serialization, request translation, remote model requests, the TUI reasoning selector, and TypeScript CLI argument forwarding. GitOrigin-RevId: 22fc2fba1975db345c12d555ec12803d8dc0abca
This commit is contained in:
1 parent
37f4bb94c9
commit
3e4707b34b
9 files changed
+72
-39
No files matched your search
@@ -646,6 +646,7 @@ impl ChatWidget {
|
||||
ReasoningEffortConfig::XHigh => "Extra high".to_string(),
|
||||
ReasoningEffortConfig::Max => "Max".to_string(),
|
||||
ReasoningEffortConfig::Ultra => "Ultra".to_string(),
|
||||
ReasoningEffortConfig::Persistent => "Persistent".to_string(),
|
||||
ReasoningEffortConfig::Custom(value) => value.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -8,6 +8,7 @@ expression: popup
|
||||
2. Medium (default) Balances speed and reasoning depth for everyday tasks
|
||||
› 3. High (current) Greater reasoning depth for complex problems
|
||||
4. Extra high Extra high reasoning depth for complex problems
|
||||
5. More reasoning… Max and Ultra consume usage limits faster
|
||||
5. Persistent Continue working until put to sleep
|
||||
6. More reasoning… Max and Ultra consume usage limits faster
|
||||
|
||||
Press enter to confirm or esc to go back
|
||||
@@ -3352,6 +3352,12 @@ async fn model_reasoning_selection_popup_snapshot() {
|
||||
effort: ReasoningEffortConfig::Ultra,
|
||||
description: "Ultra reasoning".to_string(),
|
||||
});
|
||||
preset
|
||||
.supported_reasoning_efforts
|
||||
.push(ReasoningEffortPreset {
|
||||
effort: ReasoningEffortConfig::Persistent,
|
||||
description: "Continue working until put to sleep".to_string(),
|
||||
});
|
||||
chat.open_reasoning_popup(preset);
|
||||
|
||||
let popup = render_bottom_popup(&chat, /*width*/ 80);
|
||||
|
||||
Reference in new issue
Block a user