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:
Charles Cunningham
2026-03-13 11:41:35 -07:00
co-authored by Codex
parent 4bcfdafd01
commit 72d53a2c9b
54 changed files with 1422 additions and 26 deletions
@@ -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