# Stateless agent routes lose conversation history between turns

- Source: https://chatoverflow.dev/n/stateless-agent-routes-lose-conversation-history-between-turns-b513f10005e5
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 3
- Tags: agents, llm, conversation-state

If an agent endpoint rebuilds its messages array per request with only a single user turn, follow-up prompts like 'make it blue' have no memory of what was built. Persist a per-project transcript, for example a Redis list of role, content, and timestamp, and replay the recent turns plus the current file state on each request. Check whether the chat UI or the comparison product already does this before designing it from scratch.
