Why can an LLM chat run out of room?

An old message can still be on screen without being in the model's next input.

The app decides what to send. Instructions, conversation, documents and tool results all need space, and the answer needs room too.

This comic packs a toy 1,000-token budget, overfills it with a tool result, then makes an explicit choice about what to shorten.

Download this comic as a PDF

Comic page 1 of 6: Why can an LLM chat run out of room?
Read page 1 as text

Why can an LLM chat run out of room?

The chat is on screen. Why can the model still lose track of something?

WHAT WE WILL FIGURE OUT

01

What the model receives this turn

02

Build a token budget

03

Memory is not the same as history

OUR EXAMPLE

A toy 1,000-token window with an explicit output reserve.

Follow the steps. Ask the obvious questions. Check the result.

Part 6 of 18 · Challenge: page 5 · Suggested answers: page 6

Comic page 2 of 6: What the model receives this turn
Read page 2 as text

What the model receives this turn

1

THE CHAT WINDOW

stored history

supplied context

stored history

supplied context

Can it see everything on screen?

The application or service assembles model input. The visible chat history is not proof that every old message is included.

Screen history and model context can differ

2

ROLES AND FORMATTING

instructions

messages

evidence

instructions

messages

evidence

Instructions, user messages, earlier answers and tool results are formatted into the model input. Role delimiters also take space.

Instructions + messages + retrieved material

3

A FOLLOW-UP

FOLLOW THE CHANGE

mat was blue

What color?

mat was blue

→

What color?

When you ask “What color was the mat?”, the relevant earlier discussion must be available in the new turn’s context.

Earlier: The mat was blue.

4

APP-SIDE MEMORY

FOLLOW THE CHANGE

stored record

selected input

stored record

→

selected input

An app can store history, retrieve memories or use service-managed sessions. That is separate from changing model weights.

Stored history → selected context → model

Comic page 3 of 6: Build a token budget
Read page 3 as text

Build a token budget

5

THE WINDOW

ONE SHARED SEQUENCE BUDGET

1,000 tokens total

Input 850

Reserved output 150

Input + reserved output must fit

input + output

→

1,000 max

Is the advertised limit all mine?

A context limit constrains the sequence. In a simple shared budget, input and reserved generated output must fit together.

Toy total budget: 1,000 tokens

6

COUNT THE PARTS

TOY LIMIT: 1,000 TOKENS

100 + 500 + 250 + 150 = 1000

rules / history / docs / output

100 + 500

250 + 150

Budget instructions, conversation, documents and output, including formatting overhead in your estimates.

100 + 500 + 250 + 150 = 1,000

7

ONE MORE TOOL RESULT

TOY LIMIT: 1,000 TOKENS

100 + 500 + 250 + 200 + 150 = 1200

rules / history / docs / tool / output

1,000 + 200

→

1,200: too much

Adding a 200-token result makes this example exceed its limit. Something must shrink or be excluded.

1,000 + 200 = 1,200 tokens

8

MAKE AN EXPLICIT CHOICE

TOY LIMIT: 1,000 TOKENS

100 + 300 + 250 + 200 + 150 = 1000

rules / history / docs / tool / output

history 500

→

history 300

Reducing history from 500 to 300 tokens restores the budget, if the needed information survives.

100 + 300 + 250 + 200 + 150 = 1,000

Comic page 4 of 6: Memory is not the same as history
Read page 4 as text

Memory is not the same as history

9

BIGGER IS NOT PERFECT

capacity

successful recall

capacity

successful recall

Will a huge window fix forgetting?

A longer limit allows more input. It does not guarantee the model will use every relevant detail correctly.

Capacity and successful recall are different tests

10

LONGER ALSO COSTS

relevant input

output space

relevant input

output space

More input can increase processing, storage and cost. Caching may reduce repeated work; it does not make context unlimited.

Choose relevant context, not maximum context

11

TEST A CRITICAL FACT

FOLLOW THE CHANGE

UTC constraint

next-turn test

UTC constraint

→

next-turn test

Put an important condition in a long conversation and check whether it is supplied and used on the next turn.

Example condition: use UTC for all dates

12

MY NEW MENTAL MODEL

included

omitted

reserved

included

omitted

reserved

The app packs the input for this turn.

Ask what was included, what was omitted and what room remains for output before blaming model memory.

Next: what compaction changes

Comic page 5 of 6: Your turn. Can you explain what happens?
Read page 5 as text

Your turn. Can you explain what happens?

Use the same example. Change one detail. What follows?

KEEP THIS EXAMPLE IN MIND

A toy 1,000-token window with an explicit output reserve.

Try first. Suggested answers are on the next page.

1

What caused the toy input to exceed the limit?

What makes you say that?

2

Does storing a message in an app guarantee that the next model call includes it?

What makes you say that?

3

Why leave output room before submitting the prompt?

What makes you say that?

Write your answers in the comments.

Comic page 6 of 6: Suggested answers
Read page 6 as text

Suggested answers

Why can an LLM chat run out of room?

01

What caused the toy input to exceed the limit?

The extra 200-token tool result raised the budget from 1,000 to 1,200.

02

Does storing a message in an app guarantee that the next model call includes it?

No. The app or service decides what context is assembled or retrieved.

03

Why leave output room before submitting the prompt?

Generated output also consumes the allowed sequence budget, subject to service-specific limits.

Try the challenge on page 5. Suggested answers follow on page 6.