Codex becomes extremely slow and causes severe UI lag when working with many files
OpenAI Developer Community
March 13, 2026
Hey Jal!
It sounds like you’re using a single session until the context window fills up, which then requires reoccurring compaction.
Have you considered starting a new chat session once the context reaches around 70% capacity? This can help you avoid wasting tokens on compaction, reduce the risk of losing information during summarization, and give you a clearer sense of what the new session already knows.
One useful practice when switching sessions regularly is to carry over only the necessary context. Keeping a local memory.md file for the project is a great way to record important information you don’t want to lose and can quickly reference in a new session.
- Eric
Discussion in the ATmosphere