Skip to content

Sidebar panels as tabs and splits in the main view #1337

Description

@chadbailey59

TLDR: I want to be able to tear out (almost) all of the sidebar panels to tabs or splits in the main view.

Image

I've built the first stage of a prototype here: https://github.com/chadbailey59/bb/tree/feat/pane-tabs-tear-out

In my Very Humble Opinion, the IDE of the future is 1) mostly talking to agents; 2) doing stuff in terminals; 3) reading markdown docs or HTML reports generated by agents; and 4) occasionally editing prose or code files for agents. I've been trying to build that from a few different angles (like VS Code and Zed), but bb is a much better starting point because of its awesome architecture.

In the spirit of things, I was hoping to be able to do this as a plugin. But it requires shuffling ownership of objects around a bit, so I had to fork. Here's Claude's description of what it had to change so far:

A pane went from owning one content to owning an ordered list of tabs, with identity derived from the content itself rather than a generated id.

The bigger one: terminals and file previews used to have exactly one owner, the thread's server-synced panel. Now the device-local layout can own them too, so the two have to negotiate. The layout tells the panel which terminals it has taken, and the panel stops re-deriving tabs for them. Without that handshake the panel would undo every tear-out a moment later.

I'm curious to know if there's interest in me exploring this further!

Activity

  1. SawyerHood commented on Aug 11, 2026

    @SawyerHood
    Collaborator

    This is top of mind for us rn! We do plan on tackling this soon once we have our bug backlog pruned a bit. I think we want to do a few prototypes of our own to figure out the right shape of this for example:

    • if we have tabs, what is in the left panel, then we have two sources for tabs
    • instead what if terminals also appeared in the left panel.

    Anyway yeah we plan on doing this and I'm open to exploration, but I need to think a bit more about the space before I'm ready to merge code for it

  2. chadbailey59 commented on Aug 12, 2026

    @chadbailey59
    Author

    Completely understandable. I wrote my branch (and stopped writing it where I did) because I was mostly interested in seeing how much of a mess it would make in the code!

    FWIW, the current "open in split" behavior doesn't really mesh with how my brain works. I can end up in weird states where I have three threads open in columns, and I can't tell which is which in the left sidebar. "New thread" will open a new thread in... one of the splits. :) And if the right sidebar is open, it has content that's 'owned' by whichever thread of the three is 'active'; if that's the first one, I end up with a weird experience where my eyes have to 'skip over' the two panes in the middle to look at my thread on the left, and whatever's open in the sidebar on the right.

    To me, it makes more sense to say "the selected thread in the left sidebar owns everything that's drawn in the rest of the window's content area." That means the thread view itself, the info panel in the right sidebar, the diff in the right sidebar, the terminals, everything.

    From there, to me it's intuitive to say "the main content area has a collapsible right-hand sidebar, and the rest of the main content area can be tabs and splits and whatever." And from there, the next logical step is "plugins can contribute views that go into the sidebar, the main content area, or both." Plugins like bb-plugin-files could expose their file tree as a sidebar view, and the editor as a main content area view.

    I realize that's a lot, and I 100% understand if that's not how the core team thinks about it. But I wanted to type this all out somewhere anyway. :)

  3. added
    ui
    on Aug 18, 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

    ui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions