The whole conversation returns

The model does not reach back into the chat window and fetch old messages.

The chat application builds a new request. It places the instructions, the earlier conversation, and the latest message into one long sequence.

Then it sends that whole sequence to the model-serving system.

The past looks remembered because the application carries it forward.