Chat stream display corruption: lost responses and stacked messages in long/multi-session usage
Resolved 💬 4 comments Opened Mar 15, 2026 by therealLordtodd Closed Apr 12, 2026
Bug Description
In long sessions and when switching between multiple Claude Code sessions, the chat stream display becomes corrupted. Responses are generated (confirmed by asking Claude to repeat them) but fail to render, and message ordering breaks down.
Symptoms
- Claude responses vanish — Claude generates a response but it never appears in the chat stream. No error, no spinner — just silence. The response exists (see workaround #2 below) but was never rendered.
- User messages stack at bottom — Instead of interleaving with Claude responses in normal conversational flow, user messages pile up together at the bottom of the visible chat stream.
- Out-of-order rendering — When Claude responses do appear, they sometimes render above the stacked user messages rather than in their correct chronological position.
Reproduction
- Primary trigger: Switching between multiple concurrent Claude Code sessions
- Secondary trigger: Extended sessions (long back-and-forth conversations, especially after context compaction)
- The more you switch between sessions, the worse it gets
Workarounds
- End and restart the session — partially resets the display state, but doesn't fully fix it
- Ask Claude to repeat itself — "Tell me again in its entirety the last thing you told me" recovers the lost content, confirming the response was generated server-side but not rendered client-side
Analysis
The fact that workaround #2 works proves this is a client-side rendering/message-queue issue, not a generation or streaming failure. The response content exists in the conversation history — it just wasn't displayed. Likely a race condition or stale state in the chat stream renderer when switching session contexts.
Environment
- macOS (Sequoia)
- Claude Code CLI
- Multiple concurrent sessions via separate terminal tabs
---
🤖 Generated with Claude Code
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗