Skip to content

Restored agent sessions can show new conversation UI after restart #11751

Open

Description

@seemeroland

Summary

After restarting Warp to apply an update, restored panes that were previously agent sessions can display the "new agent conversation" UI after restored blocks instead of restoring the original agent conversation.

Observed behavior

  • The restored pane shows a new agent conversation UI below restored blocks.
  • Navigating back out of that UI makes it appear that the pane was not actually in an agent conversation.
  • The original agent conversation appears to have failed to restore, leaving the pane in a broken state.

Expected behavior

Agent sessions should restore into the prior conversation state after restart/update, or fail gracefully without showing a misleading new conversation UI.

Source

Internal Slack report: https://warpdev.slack.com/archives/C08KTPNQN65/p1779894048101819

Two screenshots were attached internally but are intentionally omitted from this public issue because they could not be inspected for public-safety; no attachments were uploaded.

Activity

  1. added
    warp:internal-report
    on May 27, 2026
  2. warp-for-oss commented on May 27, 2026

    @warp-for-oss
    Contributor

    @seemeroland

    Here's what I found while triaging this issue:

    The report points to a restored-agent UI state issue after restart/update rather than an agent execution failure. I found one adjacent restored-conversation bug (#11252), but not enough matching reports to mark this as a duplicate.

    I have a few follow-up questions before I can narrow this down:

    1. Can you attach a redacted screenshot or short recording showing the restored blocks and the unexpected new-agent UI immediately after restart?
    2. Which Warp channel/build was running after the restart?

    Reply in-thread with those details and the triage workflow will automatically re-evaluate the issue and update the diagnosis, labels, and next steps.

    Maintainer details

    I concluded that restored agent panes can load prior blocks after restart but appear to enter a new empty agent conversation instead of the restored one..

    Triage summary

    This is a plausible agent-view/session-restore bug after app restart or update. The public report says restored panes that previously held agent sessions show restored blocks, but the UI then presents a new agent conversation instead of reopening the original conversation.

    Reproducibility

    Repro confidence is low from the public issue alone: the trigger and symptom are clear, but the internal screenshots were omitted and the report does not include the exact channel/build, OS, or minimal setup used before restart.

    Code observations

    • app/src/pane_group/pane/terminal_pane.rs snapshots all live conversation IDs for a terminal pane and only persists active_conversation_id when the agent view state is fullscreen.
    • app/src/persistence/sqlite.rs stores and reloads both conversation_ids and active_conversation_id for terminal panes.
    • app/src/pane_group/mod.rs uses RestoredAgentConversations to take persisted conversations for each restored terminal pane.
    • app/src/terminal/view/load_ai_conversation.rs restores prior conversation blocks on view creation, then only calls enter_agent_view_for_conversation when a saved active_conversation_id exists and resolves to a restored conversation.
    • app/src/terminal/view/agent_view.rs / app/src/ai/blocklist/agent_view/controller.rs create a new conversation when entering Agent View without a valid existing conversation ID. That makes a missing or stale restored active-conversation ID a plausible path to the observed new-conversation UI.

    Duplicate check

    I enumerated open issues and recently closed issues via the GitHub API. #11252 is adjacent because it also involves restored agent conversations, but it describes follow-up prompts not rendering new AI blocks after restore rather than startup restoring into a new empty conversation UI, and I did not find two likely duplicates for this exact symptom.

    What would help next

    A redacted screenshot or short recording and the affected Warp channel/build would materially improve confidence and help determine whether this is an active-conversation restore issue, a pane restoration issue, or a separate UI rendering state bug.

    Question reasoning

    1. Can you attach a redacted screenshot or short recording showing the restored blocks and the unexpected new-agent UI immediately after restart? — The public issue says internal screenshots existed but were omitted; visual evidence is needed to distinguish the zero-state UI from an entry block or another restored-pane rendering state.
    2. Which Warp channel/build was running after the restart? — The restore path is feature-flag and version sensitive, and the report only says the issue happened while applying an update.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Powered by Oz

  3. added
    area:agent
    area:window-tabs-panes
    bug
    needs-info
    repro:low
    triaged
    on May 27, 2026
  4. edwin1962 commented on Aug 21, 2026

    @edwin1962

    @seemeroland
    Confirming this on Windows with concrete log evidence. Setup: Warp v0.2026.08.19.08.15.stable_01, Windows, "Restore windows, tabs, and panes on startup" and "Store AI conversations in the cloud" both enabled, ~12 tabs open across separate repos, each with an agent conversation.

    Cross-referenced warp.sqlite: terminal_panes.active_conversation_id was non-null and matched an intact agent_conversations row for all 12 panes before restart.

    Checked warp.log for the actual cold start:

    • Process starts, root_view:open_from_restored fires (the restore trigger).
    • None of the four discriminating lines appear for any of the 12 eligible panes: no Restoring N conversations on view creation, no Failed to read AgentConversation, no Cannot restore agent view: conversation ... not found. They're simply absent — matching the "missing entirely" case, i.e. the silent-drop filter at pane_group/mod.rs:1695-1700.
    • The first Restoring N conversations on view creation line only shows up ~19 minutes later, when I manually reopened conversations from the conversation list — those all succeeded (one restored 749 AI blocks), confirming the data and capture side are fine.

    Since the manually-reopened conversations had substantial real content (not "no tasks" / "passive suggestion only"), the drop filter looks like it's misclassifying legitimate conversations as droppable during automatic restore, not just skipping genuinely empty ones. Happy to share the full log excerpt if useful.

    Cross-linking #11361, which reports the same conversation-becomes-invisible-after-restore symptom on Windows.

  5. bobrnor commented on Aug 27, 2026

    @bobrnor

    @oss-maintainers this report now has the details it was waiting on, and the labels haven't caught up.

    The needs-info request from May went to @seemeroland as the reporter. @edwin1962 answered it on 21 August from a different machine with the full set: Warp v0.2026.08.19.08.15.stable_01 on Windows, restore-on-startup and cloud conversation storage both on, 12 panes each with a conversation, terminal_panes.active_conversation_id non-null and matching an intact agent_conversations row for every one of them before the restart, and the cold-start log afterwards. Both needs-info and repro:low look stale against that.

    The log is the useful part, and also the reason I can't take this further on my own. None of the lines that would identify the failure appear for any of the 12 panes. That is a weaker signal than it looks, because the path is silent on at least three different faults:

    • RestoredAgentConversations::new opens a second, read-only SQLite handle at app/src/ai/restored_conversations.rs:38-46. The .ok() on line 44 turns a failed open into db_connection: None, with nothing logged.
    • load_from_db returns None for Ok(None) at restored_conversations.rs:95. Only the Err arm on line 97 logs.
    • The filter at app/src/pane_group/mod.rs:1687-1705 treats every None above as "no tasks or entirely passive", so a conversation that was never read is indistinguishable from one deliberately skipped. The empty list then fails Vec1::try_from_vec at mod.rs:1713, restoration becomes None, and the view never reaches the log line at terminal/view/load_ai_conversation.rs:690.

    So "no lines at all" is the expected output whether the conversations were filtered as passive, the read-only handle never opened, or the read came back empty. His manual reopens working afterwards, one of them restoring 749 AI blocks, doesn't narrow it either: that path takes the conversation from cloud data at mod.rs:6556-6562, not from the read-only handle.

    The ask: re-evaluate needs-info and repro:low against what's now in the thread. Whoever picks it up will also want those three exits to say something, because as it stands the next report of this arrives just as blind as this one.

    #11361 is worth looking at in the same pass. Same symptom, same platform, sitting on needs-info since May.

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:agentarea:window-tabs-panesbugneeds-inforepro:lowtriagedwarp:internal-report

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions