mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Add ephemeral turn context support
Introduce app-server ephemeralContext, render it as additional_context_for_this_turn fragments, and strip it correctly across contextual-user diffing and compaction flows. Regenerate app-server schema fixtures and add coverage for model-visible layout, compaction, oversize validation, and resumed/forked context reconstruction. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Codex
parent
4bcfdafd01
commit
72d53a2c9b
@@ -113,6 +113,7 @@ pub async fn run_codex_tool_session(
|
||||
// MCP tool prompts are plain text with no UI element ranges.
|
||||
text_elements: Vec::new(),
|
||||
}],
|
||||
ephemeral_context: Vec::new(),
|
||||
final_output_json_schema: None,
|
||||
},
|
||||
trace: None,
|
||||
@@ -160,6 +161,7 @@ pub async fn run_codex_tool_session_reply(
|
||||
// MCP tool prompts are plain text with no UI element ranges.
|
||||
text_elements: Vec::new(),
|
||||
}],
|
||||
ephemeral_context: Vec::new(),
|
||||
final_output_json_schema: None,
|
||||
})
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user