How OpenAI Codex CLI context compaction actually works: remote compaction v2, the encrypted compaction item, measurements over 1087 real compactions, and what the blob's encryption does and doesn't… OpenAI's Codex CLI implements context compaction via a server-side encrypted blob rather than client-side summarization, according to a developer's analysis of the Codex source code and live captures. The mechanism, labeled 'memento' internally, retains user messages verbatim, re-injects fresh instructions, and replays an opaque 'compaction' item that the server decrypts to resume the conversation. Security testing revealed the encryption is not access control, as a second ChatGPT account could decrypt and read a blob minted by another account, making it a long-lived bearer token for conversation state. Findings from reading the Codex source