Core Pain

Why AI Loses Context When the Chat Fills Up — and the Real Fix

The pattern is real

You notice it the same way every time. Early in a chat, the assistant is sharp — it catches your meaning, remembers the details, gets you. An hour later, it's giving generic answers, repeating itself, or contradicting something it agreed to earlier. The conversation didn't get harder. It got longer. That's the moment AI loses context when the chat fills up.

This isn't a coincidence and it isn't a bug. It's the predictable, mechanical consequence of how a model holds a conversation. And once you understand the mechanism, you can stop treating it as a mystery and start solving it properly.

Why length makes it worse

A model reads your conversation through a context window — a fixed pool of tokens it can attend to at once. Here's the part that catches people out: the window is a fixed size, but a conversation grows without limit. So the longer you talk, the more of your earlier turns have to be squeezed out to make room.

What you experience as "the AI getting dumber" is really the signal-to-noise ratio collapsing as the window fills. It's not the intelligence that dropped. It's the clarity of what it has to work with.

The whiteboard that never gets cleaned

Here's the most useful way to picture it. The context window is a whiteboard with a fixed size. You start a conversation, and you write your brief on it — carefully, because it matters. The model reads it, understands, and you make progress.

As the conversation continues, the model writes more and more on the whiteboard. Eventually, the whiteboard is full. To keep going, someone has to erase the earliest writing. And the earliest writing is usually your brief.

By the time you're deep into a long session, the whiteboard is covered in the model's answers and your recent messages — but the original instructions have been erased to make room. The model is now working from a partial, degraded view of what you actually asked for.

That's not a failure of intelligence. It's a failure of storage. The whiteboard simply can't hold everything.

It's a storage limit, not an intelligence limit A bigger context window makes this problem start later — it doesn't make it stop. The model is still holding your conversation in a finite buffer that runs out. Adding tokens just moves the cliff.

A bigger window only delays it

There's real appeal in "just get a model with a huge context window." And it does help — for a while. But it treats a structural problem as a capacity problem:

So the model with a 1M-token window is a model with a very big whiteboard. It'll take you longer to fill it. But when it's full, the same erasure happens. The brief that set everything up is still the first thing to go.

The real signal: it's not getting worse, it's getting diluted

One of the subtlest and most important points is that the model isn't actually declining. The same model, given the same clarity, would perform identically. What's changed is the context it's working from — it's now a noisy, partial, compressed version of the conversation.

That matters because it tells you where to fix it. You can't make a "dumber" model smarter by arguing with it. But you can give a perfectly good model a cleaner, more reliable context — which is a completely different fix.

Why summarising doesn't save you

The instinctive solution is to ask the model to summarise the chat so far. It feels like a clean-up. But it carries the same flaw:

The fix is to stop filling a window

The clean solution is persistence. Give the agent a memory that lives outside the conversation buffer:

That's why a persistent-memory agent stays sharp on day forty the way a window-bound one is sharp on minute ten. It's not working from a whiteboard that keeps getting erased. It's working from a notebook it can always flip back to.

The bottom line

AI loses context when the chat fills up because the chat is stored in a finite window that has to make room. Length is the enemy of a fixed buffer. Move the memory out of the window and length stops costing you.

Read next: why ChatGPT loses context mid-chat and why persistent memory beats a bigger context window.

Using Codex? Keep the thread through compaction.

Seamless Context saves a bounded summary of your whole Codex conversation just before each compaction and gives it back afterwards, once. In our tests on GPT-5.6 Sol it brought back all 11 planted facts after six compactions; the same chat without it kept none. Where Codex already remembers well (GPT-5.6 Terra and Luna) it adds little. Windows, Codex Desktop.