Skip to content

Restart replaces the focused pane with the New thread composer instead of adding it beside the restored panes #2919

Closed

Description

@Techno911

The workflow

I quit bb (Cmd+Q) with three or four panes open, some with work in progress, and open it again.

What happens today

The panes come back, but the first (focused) one is replaced by the New thread composer. The thread I left there is gone from the workspace and I have to find it in the sidebar again. I never closed it.

Why: the app opens on the root route, and on that route SplitThreadArea reconciles the restored layout against { kind: "new-thread" } (SplitThreadArea.tsx#L282-L289). A restored layout has no composer pane, so reconcileLayoutForContent takes its last branch and replaces the focused pane (splitThreadNavigation.ts#L105-L125). That rule is right for navigation (archive a thread, land on the composer in its pane); on load it silently closes a pane the person chose to keep.

What you would expect

Restoring keeps every saved pane, and the composer opens as a new pane to the right of them. Opening on the composer is welcome (limits and recents are useful at a glance); replacing a pane is not. Closing that pane stays the person's decision.

Notes

Prototype (not a PR, per CONTRIBUTING): Techno911@0ca5fbf7a

The first reconcile after mount uses an on-load variant that splits the composer in to the right of the rightmost pane (bounded by MAX_PANES); every later reconcile and every other content kind keep the current rules.

Activity

  1. added theissue type on Sep 2, 2026
  2. added
    ui
    confirmed-repro
    on Sep 2, 2026
  3. bb-slop-cop commented on Sep 2, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

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

    confirmed-reproui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions