Skip to content

Messages render out of chronological order in Claude AI app when switching tabs; "Compacting conversation" shown as working status incorrectly #29054

Description

@JoshuaSP
Image Image

Description

When using Claude Code inside the Claude AI desktop app, messages frequently render out of chronological order. Messages from earlier in the conversation appear at the bottom, or batches of the user's own messages get grouped together at the end instead of interleaved with assistant responses.

Additionally, the "Compacting conversation..." text sometimes appears as the working/status indicator when no compaction is actually occurring.

Steps to reproduce

  1. Open a Claude Code session in the Claude AI app
  2. Have a moderately long conversation (many back-and-forth messages)
  3. Switch tabs (to another Claude Code session, or to a regular Chat tab, etc.)
  4. Switch back to the original Claude Code session
  5. Observe that messages are now displayed out of order

Expected behavior

Messages should always render in chronological order regardless of tab switching.

"Compacting conversation..." should only display when compaction is actually in progress.

Actual behavior

  • Messages visually jump around and appear in wrong chronological order after tab switches
  • Multiple user messages may appear grouped together at the bottom rather than interleaved with responses
  • "Compacting conversation..." sometimes shows as the working prompt when no compaction is happening

Environment

  • Platform: Claude AI desktop app (macOS)
  • Behavior trigger: Switching between tabs (between Claude Code sessions, or between Claude Code and Chat)
  • Conversation length: More noticeable in longer conversations

Possible cause

Suspect this may be a React key / list reconciliation issue where switching tabs and re-rendering the message list causes messages to be keyed or sorted incorrectly.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssue doesn't seem to be related to Claude Code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions