feat(cli): let agents drive the right sidebar with superset panes
Merged
KI
1d ago+1342+1342+0123456789012345678901234567890123456789-212-212-012345678901234567890123456789
Summary
superset panes only saw the main area. With the right sidebar on for everyone, agents can now read and arrange it too.
- Read:
panes listand every mutation result carry asidebarblock (shown, full screen, tabs and panes). - Arrange:
split,resize,focus,close,swap,equalizeandmovefind a pane in either area.move --toandswapwork across areas;move --sidebar/move --maingive a pane its own tab there.focuson a sidebar pane shows the sidebar. - Open:
panes open changes|file|files|pages|browsershows the sidebar with that tab in front, like "Open in right pane" in the app.--backgroundadds it quietly.open file PATH [--line N]shows a file in the editor;open changes PATH [--line N]points Changes at one file. The host turns the path into the form each pane needs and rejects missing files and paths outside the workspace. - Show:
panes sidebar show [--full-screen],panes sidebar hide. new-tab --sidebaropens a terminal there.- Right pane full screen moved from
useRightPaneModestate tostores/right-pane-full-screen.tsso the CLI can set it. Both pane layout stores now register for live edits. - The panes skill covers the sidebar.
Film of it running against this branch: https://app.superset.sh/page/agents-can-drive-the-right-sidebar-ux0iq2
Compatibility
New procedures (panes.open, panes.sidebar) and optional inputs (area, background, path, line). The sidebar block on results is optional. A newer CLI against an older desktop app gets "too old" for the new commands; --sidebar on new-tab/move errors when the result has no sidebar block.
Testing
- Desktop
applyPaneLayoutOptests (22), host-service panes tests incl.resolveOpenPath, CLI suite (464) pass. Typecheck clean in desktop, host-service, CLI, shared.check:pluginspasses. - In the dev app over CDP: every command above, including moves both ways, full screen and back,
open file --line,open changes PATH, and the error cases. - Seen once, not reproduced in three repeats: a terminal moved from the sidebar into the main area drew blank until its tab re-rendered, seconds after the workspace opened.
Summary by cubic
Lets agents read and arrange the right sidebar with superset panes, not just the main pane area.
panes listand every mutation result now carry asidebarblock: whether it's open, full screen, and its tabs and panes.split,resize,focus,close,swap,equalize, andmovefind a pane in either area;move --toandswapwork across areas, andmove --sidebar/move --maingive a pane its own tab there. Focus on a sidebar pane shows the sidebar. The main area only accepts terminals and chats:moveandswaprefuse to place viewer panes there.- New
panes open changes|file|files|pages|browsershows the sidebar with that tab in front —--backgroundadds it quietly — andopen file PATH [--line N],open changes PATH [--line N]point the editor or Changes at a specific file.open filewithout--lineopens the code view. The host resolves the path against the worktree, follows symlinks, and rejects missing files and paths outside it. - New
panes sidebar show [--full-screen]andpanes sidebar hide;new-tab --sidebaropens a terminal there. - Right-pane full screen moved from component state to
stores/right-pane-full-screen.tsso the CLI can set it; both pane layout stores now register for live edits.
Compatibility
- The new ops are optional inputs; a newer CLI against an older desktop app fails with "too old" for
open,sidebar, or--sidebaronnew-tabandmove.move --mainneeds no sidebar support.
Summary by CodeRabbit
- New Features
- Manage panes in the main workspace and right sidebar. Open files, Changes, Files, Pages, and browser tabs in the sidebar, move panes between areas, and show or hide the sidebar, including in full-screen mode.
- Use CLI commands and options to open sidebar content, control sidebar visibility, and create or move tabs in a chosen area.
- Pane listings now include sidebar tabs and their split layouts.
- Bug Fixes
- Pane details and terminal information are now available for sidebar tabs as well as main workspace tabs.