You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Option to auto-split an editor tab group when opening a file from a focused agent chat #29186
I work with an agent chat (native chat pane) as the focused pane in a workspace tab. Whenever I open a file — from the file explorer or a file link in the chat — the current tab group switches its view from the chat to the editor, so the chat I was working in gets visually replaced. To see both side by side I have to manually split every time (right-click the tab > Split, or Cmd+D).
Once one editor tab group exists, this is already handled beautifully: resolveEditorOpenTargetGroupId (from #6891) routes files opened from a focused agent terminal to the existing editor group instead of replacing the chat. The only rough case is the very first file open in a workspace: when no editor group exists yet, the fallback is recentEditorGroup?.id ?? activeGroup.id, which lands the file in the focused chat group and covers the chat.
Proposed solution
An opt-in setting such as "When opening a file from a focused agent chat with no editor group present, auto-split a new editor tab group" — i.e. instead of falling back to activeGroup.id, create a side-by-side editor tab group automatically, so the chat pane never gets covered by a file open.
Likely implementation point: the fallback in src/renderer/src/store/slices/editor/tabs/editor-open-target-group.ts.
Alternatives or additional context
Current workarounds: press Cmd+D (split) while focused in the chat before/after opening the first file, or right-click the editor file tab and choose Split. Since #6891 already reuses an existing editor group for subsequent opens, the manual split is only needed once per workspace — but it has to be repeated for every new workspace/tab, which breaks the flow many times a day.
Activity