mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
Add opt-in output token replay for OpenAI requests (#52742)
## What changed - Add the disabled-by-default `output_token_replay` feature to request `output.encrypted_content` from OpenAI providers. - Preserve encrypted message and tool-call output, message and function-call status, and output-text `annotations` and `logprobs` through history and replay. Update the generated protocol schemas and SDK types. - Strip output ciphertext from requests to other providers while retaining it in stored history, including after replay is disabled. Remove encrypted content from memory extraction inputs. ## Testing Add integration coverage for the feature/provider combinations, metadata replay across follow-up requests, and history preservation when resuming with replay disabled. GitOrigin-RevId: 77729a021b6771933402aebe74ece8eb39c057e2
This commit is contained in:
@@ -770,6 +770,8 @@ mod tests {
|
||||
] if start_content.is_empty()
|
||||
&& text == "First result."
|
||||
&& done_content == &vec![codex_protocol::models::ContentItem::OutputText {
|
||||
annotations: None,
|
||||
logprobs: None,
|
||||
text: "First result.".to_string()
|
||||
}]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user