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
Proposal: let plugins size right-sidebar panes (fixed-width column, collapse rule), building on #10920
#14030
Written against dsh 0.2.2-rc.5. Paths are relative to node_modules/@deepseek-ai/ in the app sources.
Summary
Give client plugins a way to size a right-sidebar pane, including a fixed pixel width and a minimum below which
the pane yields its room, so a plugin can keep a narrow column beside the working views. This builds on the open
split proposals (#10920 nested panes, #12935 vertical split) and on #10026 (width setter), which cover the layout
tree and the column width but not per-pane sizing from a plugin. As an alternative, a wrap point around rightbar
would let a plugin add the column without replacing the shipped sidebar.
Use case
We are building a plugin that brings the Claude desktop app's right-hand layout to dsh. That layout has two parts:
A narrow environment column, about 320 px wide whatever the window size, with collapsible sections: machine,
folder and branch, context use, connectors, changes. It stays beside the chat and disappears only when the views
next to it need the room.
Next to it, the working views (terminal, files, browser, diffs, subagents) arranged as a grid: for example the
terminal across the top, files and browser side by side below it.
The plugin already draws the column as a right-sidebar tab, using only public APIs. What it cannot do:
keep that tab's pane at a fixed pixel width while the other pane takes the rest; today it fixes its own content
at 320 px and leaves empty space when the pane is wider;
Two docked panes, one horizontal split. dsh-client-ui-sidebar-right/src/client/service.ts:740,770 refuse a
split once dockPaneIds(layout).length >= 2; stores.ts:349,474 apply the same budget; the seat passes dropZones: 'horizontal' to dockkit. The saved layout schema already accepts axis: 'column'
(persistence.ts:16), but the validator accepts only a root row split of exactly two panes
(persistence.ts:52-58).
No wrap point. rightbar is a single slot (dsh-client-ui-layout/src/client/index.ts:89). Replacing it is
not an option for a plugin: the body slot sidebar.right.pane.tab is declared by the shipped seat, so every tab
body, the plugin's own included, stops rendering (renderSlot throws SlotOwnershipError for any other entry),
and dsh's own entry points (chat file links, the browser tool, agent terminals, subagent links) lose their
target.
Possible changes
Pane sizing on ctx.sidebarRight: for example setPaneSize(paneId, { px } | { fraction }), a way to read a
pane's current size, and an optional per-pane minimum or fixed width that the divider respects when the column
is resized.
An optional collapse rule: a pane may declare that it hides when its width would fall below a threshold, giving
the room to its neighbours, and comes back when there is room again.
Or, instead of 1 and 2: make rightbar a hoc slot (like conversation.chat.markdown.fence), so a plugin can
wrap the shipped sidebar and draw its own column beside it while every tab type keeps working.
1 + 2 together with #10920, or 4 alone, would let the plugin match the Claude desktop layout without replacing
shipped UI.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Written against dsh 0.2.2-rc.5. Paths are relative to
node_modules/@deepseek-ai/in the app sources.Summary
Give client plugins a way to size a right-sidebar pane, including a fixed pixel width and a minimum below which
the pane yields its room, so a plugin can keep a narrow column beside the working views. This builds on the open
split proposals (#10920 nested panes, #12935 vertical split) and on #10026 (width setter), which cover the layout
tree and the column width but not per-pane sizing from a plugin. As an alternative, a wrap point around
rightbarwould let a plugin add the column without replacing the shipped sidebar.
Use case
We are building a plugin that brings the Claude desktop app's right-hand layout to dsh. That layout has two parts:
folder and branch, context use, connectors, changes. It stays beside the chat and disappears only when the views
next to it need the room.
terminal across the top, files and browser side by side below it.
The plugin already draws the column as a right-sidebar tab, using only public APIs. What it cannot do:
at 320 px and leaves empty space when the pane is wider;
what Proposal: split the right sidebar in both directions (nested panes) #10920 and Proposal: vertical (stacked) split for the right Sidebar #12935 ask for);
What limits it today
ctx.sidebarRightofferssplit,float,dockandopenResource({ preferNewPane }), butno way to set or read a pane's size; ratios change only by dragging (divider limited to 20-80 %).
ctx.layoutexposes
openRightbarandcloseRightbarbut no width setter, and the column width is a transient framepreference clamped to 300 px-70 % (
dsh-client-ui-layout/src/client/columns.ts:25-63; see Right sidebar width resets on restart (layoutInfo.rightbar is memory-only) — please persist it and expose a public width setter on the layout service #10026).dsh-client-ui-sidebar-right/src/client/service.ts:740,770refuse asplit once
dockPaneIds(layout).length >= 2;stores.ts:349,474apply the same budget; the seat passesdropZones: 'horizontal'to dockkit. The saved layout schema already acceptsaxis: 'column'(
persistence.ts:16), but the validator accepts only a rootrowsplit of exactly two panes(
persistence.ts:52-58).rightbaris asingleslot (dsh-client-ui-layout/src/client/index.ts:89). Replacing it isnot an option for a plugin: the body slot
sidebar.right.pane.tabis declared by the shipped seat, so every tabbody, the plugin's own included, stops rendering (
renderSlotthrowsSlotOwnershipErrorfor any other entry),and dsh's own entry points (chat file links, the browser tool, agent terminals, subagent links) lose their
target.
Possible changes
ctx.sidebarRight: for examplesetPaneSize(paneId, { px } | { fraction }), a way to read apane's current size, and an optional per-pane minimum or fixed width that the divider respects when the column
is resized.
the room to its neighbours, and comes back when there is room again.
rightbarahocslot (likeconversation.chat.markdown.fence), so a plugin canwrap the shipped sidebar and draw its own column beside it while every tab type keeps working.
1 + 2 together with #10920, or 4 alone, would let the plugin match the Claude desktop layout without replacing
shipped UI.
Related
docking surface, which is where this proposal lands)
All reactions