Why AI Chatbots Forget What You Said: Context Windows Explained
Chatbots like ChatGPT and Claude do not truly forget on purpose. Learn what a "context window" is, why long chats get confused, and how to work around it.
You are an hour into a chat with an AI assistant. You mentioned your project name at the start, and now, fifty messages later, it asks you what the project is called again. It feels like talking to someone with short-term memory loss. This is not a glitch and not the AI being careless. It is a hard limit built into how every chatbot works, called the context window.
Understanding this one idea explains a lot of AI's odd behaviour: why it loses track in long conversations, why pasting a huge document sometimes makes answers worse, and why a brand-new chat often performs better than one you have kept going for days.
What a context window actually is
A chatbot does not read your message the way you do. It breaks your text into small pieces called tokens. A token is roughly three-quarters of an English word, so 100 tokens is about 75 words. Every word you type, every reply the AI gives, and the entire back-and-forth history of the conversation all get converted into tokens before the model can use them.
The context window is the maximum number of tokens the model can hold and look at in one go, covering the system instructions, your whole conversation so far, and the answer it is about to write. Once a conversation's tokens pass that number, something has to give: older parts of the chat are no longer visible to the model when it writes its next reply.
Context windows vary by model, from around 128,000 tokens on smaller or older models to one million tokens on the newest large models, according to Anthropic's own technical documentation. A million tokens sounds huge, and it is enough for a long book, but a chat with many turns, pasted documents, images or long tool outputs can still fill it, especially once you add a system prompt and the AI's own previous replies, which also count toward the same limit.
Why "more room" does not mean "no problem"
You might assume a bigger context window fixes everything. It does not. Anthropic's documentation describes a real effect called "context rot": as the number of tokens in a conversation grows, the model's accuracy and recall quietly get worse, even while it is technically still inside the limit. A model can "see" something you said earlier and still fail to use it well once there is a lot of other text competing for its attention.
This is why chatbots can behave strangely in a long session even before they hit the hard token cutoff. Some chat apps also manage this on a rolling basis, quietly dropping the oldest messages first as new ones come in, so the model keeps responding smoothly but loses access to the start of the conversation without telling you.
Memory is a different feature
Many people confuse the context window with "Memory," a separate feature some chatbots offer. According to OpenAI's help documentation, when Memory is turned on, the system can save specific facts about you, such as your job or preferences, and quietly bring them into future chats, even brand-new ones.
Memory is useful, but it is selective. It only stores details the system judges worth keeping, not your whole conversation history, and even with Memory on, the context window limit inside any single chat still applies. Turning Memory on does not give the model unlimited recall of everything you have ever typed.
How to work with the limit
Start fresh for a new task
Begin a new conversation when you switch topics instead of continuing one giant thread. This gives the model a clean, uncluttered context window.
Repeat key facts
If something important (a name, a number, a rule) was said much earlier, restate it instead of assuming the model still "remembers" it clearly.
Paste only what is needed
Trim long documents to the relevant section before pasting. A smaller, focused context works better than dumping an entire file.
Ask it to summarise first
In a long chat, ask the AI to summarise the conversation so far, then start a new chat using that summary as the opening message.
Watch for contradictions
If an answer suddenly ignores something agreed earlier, treat it as a context-window sign, not a one-off mistake, and restate the missing detail.
What most people miss
- A context window is shared by everything in the request: your messages, the AI's replies, any files or images you add, and its instructions. A long document can crowd out earlier chat history.
- Hitting the limit is not always an error message. Many apps silently drop the oldest messages first, so the conversation keeps flowing without any warning that older context is gone.
- A model's reasoning or "thinking" steps on harder questions also use up tokens from the same window, so very complex multi-step requests can fill it faster than plain text chat.
- Bigger context windows reduce but do not remove the problem. Accuracy can still drop in very long conversations well before the token limit is actually reached.