Support the `/compact` command
Resolved 💬 2 comments Opened Jun 6, 2025 by bolinfest Closed Aug 2, 2025
💡 Likely answer: A maintainer (bolinfest, collaborator)
responded on this thread — see the highlighted reply below.
The TypeScript CLI has this nifty /compact feature (introduced in https://github.com/openai/codex/pull/289) to summarize a conversation and use it as the starting point for a new conversation in order to "reclaim" context window. Ideally, model providers would implement this themselves, but as Codex supports third-party model providers, we cannot guarantee such a feature will always be available, so /compact is a nice workaround to have.
2 Comments
See https://github.com/openai/codex/pull/1497.
Fixed in https://github.com/openai/codex/pull/1527.