Conversational AI UX: A Technical Comparison of Session Models

    This article explains why conversational AI products behave differently across mobile and desktop, tracing the divergence to session lifecycle design rather than UI layout. It breaks the problem into session boundaries, context ownership, and device assumptions, then compares the single-thread model optimized for continuity with the new-session model optimized for isolation and control. It also covers why the two diverge, and recommends one shared session model with per-platform defaults, plus session title generation, context overflow fallback, and end-to-end tracing.

    1. The Real Problem Behind the Behavior: Different Session Models, Not an Extra Step

    Developers trying a conversational AI product for the first time often assume that identical chat boxes imply identical interaction. That is not the case. The “start a new conversation?” prompt reflects how each product defines the session lifecycle, not where a button sits on the screen.

    Abstracted one level up, the difference comes down to three technical factors:

    • Session boundaries: where a task starts and where it ends;
    • Context ownership: whether message history is bound to the session or to the user account;
    • Device assumptions: session length, input cost, and task continuity.

    The mobile-versus-desktop difference is only the surface symptom. What actually drives it is the combination of the three factors above.

    2. Single-Thread Mode: Continuity First

    The single-thread mode drops users straight into their previous context, with the input box always available. It fits high-frequency, short tasks and scenarios where voice input dominates.

    Implementation typically uses one active session plus scrolling history:

    1. User -> Client (single session view)
    2. -> Gateway (auth / rate limiting)
    3. -> Session service (defaults to the most recently active session_id)
    4. -> Context assembly (truncation / summarization / retrieval)
    5. -> Model inference

    Key design points:

    1. Default session strategy: no explicit creation; reuse the most recent active session to reduce interaction cost;
    2. Context compression: sliding window, summarization, or vector retrieval when history grows too long;
    3. State recovery: resume by message sequence number after a network interruption to avoid duplicate generation.

    The tradeoff is clear: tasks bleed into each other, debugging and reproduction are harder, and parallel multitasking is weak.

    3. New-Session Mode: Isolation and Control First

    Defaulting to a new session on desktop makes the “task unit” explicit. Each session is an independent context container, which makes parallelism, backtracking, and collaboration easier.

    A typical structure:

    1. Session list (session_id, title, created_at, summary)
    2. |- Message sequence (msg_id, role, content, token_count)
    3. |- Context policy (window, summary, retrieval)
    4. |- Artifacts and citations (attachments, code blocks, structured results)

    The advantages:

    • Isolation: tasks do not contaminate each other, and results are reproducible;
    • Manageability: rename, archive, search, and share all operate at session granularity;
    • Cost control: context length and usage can be tracked per session, which simplifies governance.

    The cost is that users must make a “create” decision, so the first-use barrier is slightly higher.

    4. Why the Two Platforms Diverge: Different Scenarios and Constraints

    1. Input cost: mobile input is expensive, so reusing context is more economical; desktop input is cheap, so rebuilding context costs little.
    2. Session length: mobile usage is fragmented and emphasizes “keep talking”; desktop usage involves long, multi-task sessions and emphasizes “talk separately.”
    3. Screen and attention: small screens make multiple sessions hard to manage, while large screens can host a sidebar and session switching.
    4. Network and power: mobile favors local caching and incremental sync to reduce waiting.
    5. Product positioning: assistant-style products lean toward continuous companionship, while workbench-style products lean toward task production.

    The divergence is therefore not inconsistency. Both platforms apply different default values to the same session model.

    5. Practical Guidance for Developers: One Model, Per-Platform Defaults

    Make the session a first-class citizen and let each client adjust only the defaults:

    1. {
    2. "session": {
    3. "default_mode": "reuse_or_new",
    4. "reuse_window": 7,
    5. "max_context_tokens": 8000,
    6. "overflow": "summarize_then_retrieve",
    7. "persist": "local_cache + remote_sync"
    8. }
    9. }
    • Mobile: default_mode=reuse, emphasizing continuation and offline caching;
    • Desktop: default_mode=new, emphasizing isolation, parallelism, and searchability;
    • Shared: the same context assembly, summarization, and retrieval pipeline on both, avoiding divergent logic.

    Three things also need to be in place: automatic session title generation, a fallback strategy for oversized context, and end-to-end tracing (a trace_id spanning sessions and messages). This preserves the experience differences while keeping the architecture unified, observable, and evolvable.