Skip to content

Session restore drops messages between tool results #165

@dimakis

Description

@dimakis

Bug

When a session is interrupted and restored from history, messages between a tool result and the subsequent assistant response can be lost. The user sees:

  1. The tail end of the last visible assistant message
  2. A "Session interrupted. Messages above were restored from history — some recent content may be missing." banner
  3. The next tool call shown as still "Running..."

Expected: All messages should be restored from history, preserving the full conversation flow.

Observed: Middle messages (between a Write tool completing and the assistant's follow-up analysis) were silently dropped. The conversation jumps from the tool execution to a later response with no indication of what was lost.

Repro

  1. Start a conversation with multiple tool calls and assistant responses
  2. Trigger a session interruption (e.g., network drop, app background)
  3. Restore the session
  4. Observe missing messages in the restored history

Screenshot

See .mitzo-images/image-1775840926380-0.png in the mgmt repo — shows the gap and "Session interrupted" banner.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions