Clarify ephemeral context compaction docs

Document that the current turn's ephemeral context is preserved across mid-turn compaction, while older ephemeral context is stripped during compaction.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-12 12:50:12 -07:00
parent 1f56845cc4
commit 766be572d4
6 changed files with 35 additions and 20 deletions

View File

@@ -2959,7 +2959,7 @@
"description": "Override the reasoning effort for this turn and subsequent turns."
},
"ephemeralContext": {
"description": "Additional model-visible context for this turn, such as editor or IDE state. This context is not re-injected automatically after compaction, so clients should send a fresh snapshot on each turn instead of expecting it to carry forward automatically.",
"description": "Additional model-visible context for this turn, such as editor or IDE state. If compaction happens while this turn is still in progress, the current turn's ephemeral context is preserved so the turn can continue. Ephemeral context from older turns is stripped during compaction, so clients should send a fresh snapshot on each turn instead of expecting it to persist automatically.",
"items": {
"$ref": "#/definitions/EphemeralContext"
},