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:
rka-oai authored and copyberry committed 2026-08-26 05:00:23 +00:00
1 parent 37f4bb94c9
commit 3e4707b34b
9 files changed
+72 -39

No files matched your search

+2
View File
@@ -180,6 +180,8 @@ pub(crate) struct CompactConversationRequestSettings {
fn reasoning_effort_for_request(effort: ReasoningEffortConfig) -> ReasoningEffortConfig {
match effort {
ReasoningEffortConfig::Ultra => ReasoningEffortConfig::Max,
// Keep "persistent" in local settings; the Responses API calls it "disabled".
ReasoningEffortConfig::Persistent => ReasoningEffortConfig::Custom("disabled".to_string()),
effort => effort,
}
}