Conversation State Management in LLM Chat Applications: UX Differences and Design Considerations Across Devices

    Why do some LLM chat apps resume your last conversation on launch while others open a blank one? This article examines the product design and technical reasons behind these differences, covering mobile vs. desktop usage patterns, the distinction between persisted chat history and the model's context window, and optimization strategies such as memory summarization and RAG. It concludes with practical guidance for developers building conversational AI tools.

    When using mainstream LLM chat applications, users often notice an interesting phenomenon: some apps resume the previous conversation by default when opened, while others start a brand-new blank conversation. On the surface, this may look like a missing feature or an inconsistency between products. From the perspective of product design and technical implementation, however, it is actually a deliberate design decision driven by multi-device usage scenarios, interaction habits, and underlying technical constraints.

    1. Differences in Multi-Device Usage Scenarios and Interaction Habits

    Mobile and desktop devices differ significantly in hardware form factor, screen size, and user mindset. These differences directly determine how applications manage conversation state.

    1.1 Mobile: Fragmented, High-Frequency, Short-Duration Usage

    Mobile app usage is typically characterized by fragmented, high-frequency, and short-duration sessions. Users often turn to conversational AI tools while commuting, waiting in line, or taking a quick break. Their core need is usually to get an answer to a specific question as fast as possible.

    In this context, users frequently want to follow up or ask additional questions on the same topic. For example, a user looks up a new term on the subway, closes the app, and later wants to ask about a related concept after getting off. If the app opened a new conversation by default, the user would have to expand the sidebar, scroll through the history list, and tap into the target conversation. On a small screen, often with one hand and while on the move, this interaction path is extremely cumbersome. Therefore, resuming the last conversation by default on mobile is a highly pragmatic design that aligns with interaction intuition.

    1.2 Desktop: Multitasking, Structured, Long-Focus Work

    On the desktop, users typically work in multitasking environments that involve structured workflows, sustained focus, and tasks with clear beginnings and ends. The larger screen provides ample space, making it entirely feasible to keep a full history sidebar visible at all times.

    When handling complex workflows, users generally prefer to keep different tasks isolated to avoid interference from irrelevant context. Starting a new conversation by default gives users a clear psychological signal: “a brand-new task starts now.” Meanwhile, since the history sidebar is always within reach, the cost of switching back to an old task is minimal. This design better matches the desktop office work mindset.

    2. Distinguishing Chat History from the Context Window

    When discussing conversation management, one core technical concept must be clarified: the history records users can “see” in the interface are not the same as the context window the model can “recall” during inference.

    2.1 Persistence of Chat History

    Chat history is the complete, persistent storage of user interactions at the application layer. Every user prompt and model response is stored chronologically in a server-side database. As long as the user does not actively delete it, the history remains permanently available and can be searched and reviewed at any time from the frontend sidebar. This is business-level data retention.

    2.2 Context Window Truncation

    Large language models have a physical context length limit during inference, defined by the maximum number of tokens. When the conversation history grows too long, the model cannot process all of it at once. To ensure response speed and avoid exceeding the token limit, applications typically truncate the history before sending it to the model API.

    A widely adopted strategy is the sliding window approach: keep only the most recent N turns (for example, the last 20 rounds) as context, while older content is automatically truncated and excluded from the current inference call.

    The following pseudocode illustrates this truncation logic:

    1. def build_prompt_context(history_logs, max_context_tokens):
    2. current_tokens = 0
    3. context_window = []
    4. # Traverse history in reverse order to build the context window
    5. for message in reversed(history_logs):
    6. msg_tokens = count_tokens(message['content'])
    7. # Check whether the token limit would be exceeded
    8. if current_tokens + msg_tokens > max_context_tokens:
    9. break
    10. # Insert the qualifying message at the head of the context window
    11. context_window.insert(0, message)
    12. current_tokens += msg_tokens
    13. return context_window

    3. Trade-off Strategies Between Technical Limits and User Experience

    While straightforward truncation solves the token limit problem, it causes the model to “forget” earlier exchanges, seriously degrading the experience of long conversations. To deliver better interactions under this technical constraint, modern LLM applications typically adopt a set of compromise and optimization strategies.

    3.1 Memory Summarization

    To prevent early context from being discarded outright, some applications trigger an asynchronous “memory summarization” task in the background. When the number of conversation turns reaches a certain threshold, the system calls the LLM to summarize the history that is about to be truncated. This summary is then continuously injected into subsequent conversations as part of the system prompt, preserving long-range memory at a relatively small token cost.

    3.2 Retrieval-Augmented Generation (RAG)

    For enterprise-grade applications or scenarios involving extremely long documents, a common approach is to introduce a RAG architecture. The system vectorizes the conversation history and stores it in a vector database. When the user asks a new question, the system first retrieves the most relevant fragments from the history via similarity search and feeds them to the model together with the current question. This approach fundamentally breaks through the context window limit and enables accurate recall of massive historical records.

    4. Conclusion

    The differences in how LLM chat applications handle new conversations are by no means a simple matter of feature superiority or deficiency. They are targeted optimizations made by product designers after gaining deep insight into multi-device user scenarios: mobile apps resume conversations to reduce interaction cost, while desktop apps start new conversations by default to ensure task isolation. At the technical layer, the separation between persisted chat history and context window truncation strikes a balance between physical constraints and user experience. For developers, understanding the logic behind these differences helps in making architecture decisions that better fit business scenarios and current technical realities when building conversational AI tools.