Reasoning replay
Responses
SDK output objects can serialize absent optional fields as null, and a compatible endpoint answers HTTP 422 to content: null on reuse. convert_responses_messages, shared by all Responses adapters, handles it at the outgoing boundary.
| Item | At conversion |
|---|---|
Null content, encrypted_content, status | Omitted from reasoning items |
| Non-null values, summary arrays, opaque encrypted content | Preserved |
| Server-assigned IDs, cross-model signatures | Existing handling unchanged |
| Stored history | Never rewritten; byte-for-byte unchanged |
| Later turns | The reply stores each reasoning item whole, summary or not, as its thinking block's signature, and text under the message id the provider gave it; the next turn, a retry and a turn resumed from its journal send them again to the same model, so the next request starts with the bytes of the last one; another model gets no earlier reasoning (Rendering) |
| Asking for it | Every request of a reasoning model sends include: ["reasoning.encrypted_content"], whatever the effort (on Azure, whose requests are stored, only with a reasoning field). With store: false nothing else brings the reasoning back to the next round; Codex asks the same way |
| Payloads | Never decrypted |
| Permissions, failed external actions | Not changed, not retried |
No new queue, provider fallback or retry policy. The installed OpenAI SDK ResponseReasoningItem declares these fields optional; its output serialization differs from input requirements.
Chat Completions
Thinking models on Chat Completions stream unsigned reasoning; the next request sends it back so the model keeps its plan across tool calls.
| Item | Handling |
|---|---|
| Streamed | From reasoning_content, reasoning or reasoning_text; the thinking block records the field as reasoning_field, not as a signature |
| Sent back | On the assistant message, in that same field, inside the turn and in every later turn to the same model, so each request starts with the bytes of the one before it |
| DeepSeek | Every replayed assistant message carries reasoning_content, empty when it had none |
| Another model | Gets the reasoning as plain text, never in a reasoning field |
| Follows | Pi's openai-completions provider; KimiCode and Maka keep it too. Exo drops it and has the eval's lowest pass rate (Framework comparison) |
Last updated · 2026-11-30