mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +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
@@ -299,13 +299,18 @@ fn test_session_telemetry() -> SessionTelemetry {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ultra_reasoning_uses_max_for_requests() {
|
||||
fn reasoning_effort_for_requests_maps_ultra_and_persistent() {
|
||||
assert_eq!(
|
||||
(
|
||||
super::reasoning_effort_for_request(ReasoningEffort::Ultra),
|
||||
super::reasoning_effort_for_request(ReasoningEffort::High),
|
||||
super::reasoning_effort_for_request(ReasoningEffort::Persistent),
|
||||
),
|
||||
(ReasoningEffort::Max, ReasoningEffort::High,)
|
||||
(
|
||||
ReasoningEffort::Max,
|
||||
ReasoningEffort::High,
|
||||
ReasoningEffort::Custom("disabled".to_string()),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user