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

@@ -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);