Skip to content

Last message in conversation can disappear #18568

Closed

Description

@hyphaene

Description

The last message in a conversation can sometimes disappear unexpectedly.

Steps to reproduce

  1. Have a conversation with multiple messages
  2. [Need more details on exact trigger conditions]

Expected behavior

All messages in the conversation should persist and remain visible.

Actual behavior

The last message in the conversation disappears.

Environment

  • OS: macOS (Darwin 24.6.0)
  • Claude Code version: [current]

Additional context

Reported by user during normal usage. Exact reproduction steps unclear - may be intermittent.

Activity

  1. hyphaene commented on Jan 16, 2026

    @hyphaene
    Author
    Image
  2. hyphaene commented on Jan 16, 2026

    @hyphaene
    Author

    Additional context:

    I've experienced this issue multiple times across different scenarios:

    1. Mid-conversation truncation: Several conversations where my last request gets cut off - the message disappears and is not present in the local history.
    2. Multi-session workflow: I work with multiple prompts/sessions. When I switch back to a previous session, some last messages are gone.
    3. Session close/reopen: I closed a session, reopened it, and the last message had disappeared from the conversation.

    Screenshot attached showing the issue across 3 sections:

    • Section 1 (left): Original session page (bottom part) - Shows the complete message block with "Analyse du skill /xx" followed by a detailed analysis
    • Section 2 (middle): Original session page (top part) - Shows the session context with line numbers and code, proving this is the same session
    • Section 3 (right): Reopened session - The entire analysis block is completely gone, and the message is truncated mid-content

    The annotated areas highlight: "this whole block is completely gone", "same message" (proving continuity), and "missing end of message from session".

    This affects both the visual display and the persisted local history - the messages don't come back after restart.

  3. COGSY321 commented on Jan 22, 2026

    @COGSY321

    YA I've been having this same problem with the claude app. I send a message, the Orange wheel spins for 3 seconds then the message gets deleted. The conversation gets stalled and I cant send another more messages in this conversation. 1-2 weeks ago this was not happening. The conversation would condense and we carry on.

  4. deafsquad commented on Feb 1, 2026

    @deafsquad

    Additional reproduction info (Windows):

    The issue appears to be related to how the session ends:

    • Interrupt (Ctrl+C / closing terminal): Last assistant message is lost on resume
    • Clean exit (/exit command): Last assistant message is preserved on resume

    This suggests the session file isn't being flushed/finalized properly when the session is interrupted vs cleanly exited.

    Tested on Windows with Claude Code 2.1.29.

  5. github-actions commented on Mar 3, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  6. locked as resolved and limited conversation to collaborators on Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workingplatform:macosIssue specifically occurs on macOSstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions