Skip to content

Feature request: opening a file or terminal should not reflow the conversation — put them at the same tab level #3951

Open

Description

@Raing5Days

Problem

I searched for this first, with 侧栏 右侧 面板 抢占, 标签页 tab 布局, 终端 右侧栏 打开位置, 布局 会话 面板 空间 and round switching split mode session. Nothing matched. The closest is #3724, unrelated. One search hit a TLS timeout, so that gap is worth re-checking.

Opening a file or a terminal should cost a glance. Today it costs the conversation.

Three paths behave differently (app/global-search/productActionActivator.ts:36-56). The browser opens as a sibling pane when you are in a session and as its own scene otherwise. Files always open as a separate scene, sceneStore.openScene('file-viewer'). The terminal is dispatched as a terminal-create-requested event and resolved by TerminalActionBridge, which creates it through the terminal service (TerminalActionBridge.tsx:76-95), so where it lands depends on that service and on the bottom-panel settings.

Underneath sits a three-level container: scene tabs, one visible at a time (scenes/SceneViewport.tsx:401-410); the canvas pane inside the session scene, with primary, secondary and tertiary editor groups (canvasStore.ts:40-97); and tabs inside a group. The canvas pane has two display modes, 'split' and 'overlay' (workbench/workbenchPaneLayoutStore.ts:9).

The cost is attention, and it has three parts. Re-finding where you were, since line 40 of a diff is still line 40 but not where your eye is. Losing the thought you were holding, since opening a panel evicts the sentence you were about to type. And layout reflow, since a column width change re-wraps every line and the paragraph you just read changes shape.

Opening a file for two seconds currently pays all three. Overlay mode avoids the reflow and fails differently, because you cannot anchor on two things when one covers the other. Split mode is the honest attempt, and it pays the reflow.

So both modes are local patches on a structural issue: the layout knows how to show something next to something else, and it has no notion of showing something instead of something else. Every peek becomes a split.

What I want

A tab system already exists, and a tab is exactly the missing "replace" primitive. Clicking a tab reallocates nothing, it swaps content inside a stable frame. Terminals, files and the conversation should be siblings at the same tab level, so switching is a swap. Because the tab system is hierarchical, sub-tabs come for free.

Split should stay, and it should be entered on an explicit action rather than as a side effect of opening something. The rule that falls out is that opening something must never change the width of what you are already reading.

Four references share one property, that the content unit is independent of the arrangement. Obsidian's leaf model treats every view as a leaf which can be a tab in a split or the whole window, so there is no "where does this open" question to get wrong. VS Code editor groups make tabs the base unit, where opening a file replaces the active tab unless you ask for a split, and the important part is the replace default rather than multi-group support. tmux and zellij decouple what runs in a pane from the layout. Mobile half-height sheets exist because covering the whole screen costs too much context.

In OpenBitFun content is typed, so the type decides the container and the container's cost is imposed by content type rather than by what the user is doing.

Two things I could not verify. Reported round switching misbehaving when a session is split beside a panel: I did not reproduce it and did not find a root cause, so it is a user observation rather than a diagnosis, and it needs its own issue with steps. It is also evidence that the split path carries more state than it should, since a layout change should not break turn navigation. Separately, terminal-create-requested is dispatched without a destination while a bottom terminal panel has its own height and collapsed state (sessionPanelLayout.ts:22-33), and I did not trace which one wins in a session that already has a canvas pane open, so the resolution is spread across three places.

Acceptance

  1. Where each of browser, files and terminal opens is one stated policy, instead of three different answers.
  2. A file or terminal can open in place of the conversation as a sibling tab, and switching back does not reallocate width.
  3. split and overlay are entered only on an explicit action.

Step 2 may be enough on its own for the re-wrapping complaint, which is worth verifying rather than assuming. The Obsidian leaf direction, where content unit is independent of arrangement, is the version that stops generating special cases, and it is not a proposal to rewrite the scene and canvas split now.

Sources

productActionActivator.ts:36-56, TerminalActionBridge.tsx:76-95, SceneViewport.tsx:401-410, canvasStore.ts:40-97, workbenchPaneLayoutStore.ts:9, sessionPanelLayout.ts:22-33, SceneBar/types.ts:45-52,83.

Activity

  1. Raing5Days commented on Nov 16, 2026

    @Raing5Days
    ContributorAuthor

    A reference data model for the "sessions should be viewable side by side" half of this issue.

    eta (0xfe-project/eta) separates four things that this repo currently tends to collapse into one:

    Concept What it is
    Agent Global config — name, instructions, persona, model. Not a container; owns no sessions or conversations
    project One directory on one machine
    conversation A timeline belonging to a project, with several agents as members
    session One harness session, one per (agent × conversation)

    Then the concurrency rule falls out on its own: serial within a session, parallel across sessions. A session answers one thing at a time; an agent in three conversations has three sessions; three members' conversations run three at once. The queue key is the participant, which exists before its session does.

    Why this matters for the tab problem here: if a session is a product of (agent × conversation) rather than a container you open, then "several visible at once" stops being a special layout mode. Each one is just a view bound to an identity that already exists, and the layout question becomes "how many panes do I want", independent of which sessions they hold.

    Contrast with what's in this repo today: getSceneViewId() maps every session to a single presentation host (components/SceneBar/types.ts:45-52), and the type comment states the intent — "One presentation host; resource tabs may share that host" (:83). That rule is correct for files, which are resources. It's the session being typed as a resource that forces the one-visible-session limit.

    I'm not proposing to adopt the whole model — project and conversation here would collide with existing workspace and session concepts, and that's a bigger migration than this issue asks for. The transferable part is narrower: a session should be identified by what produces it, not by the pane it occupies, and that identity should exist before anything renders it.

    Source: docs/architecture/product-model.md in that repo.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions