[FEATURE]: Keep the side panel width stable across panel tabs
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
In Desktop, the side region can resize whenever the selected side-panel tab changes. A panel may declare its own width (for example Panel.width: "narrow"), and the host remembers a dragged width per panel. Switching between tabs with different widths resizes the whole side region, which reflows the active panel and the conversation, and makes tab switching feel unstable.
This is intentional from #60389, but there is no way to opt out. A related request, #66661, asks for a configurable default and persistent width, but not specifically for one stable width across panel tabs.
Proposal: add a setting such as "Keep side panel width across tabs" (or "Remember side panel width per tab", defaulting to today's behavior). When enabled, one dragged width is shared by every side tab; a panel's declared width acts only as a default or minimum. A per-panel opt-out such as width: "inherit" would also work.
This would keep the conversation and panel from jumping while inspecting different tabs, and give users control over whether panels may resize the layout. No server change is needed.
Environment: OpenCode Desktop 2.4.1 and recent dev builds, Windows 10. Example panels: GUI plugin side tabs that declare a narrow width.
Thanks for the clear write-up, @SanketDube!
To restate the request: in Desktop, you'd like a way to keep one side-region width across all side-panel tabs. A panel's declared width (such as "narrow") would then act only as a default or minimum, so switching tabs doesn't reflow the conversation. This could be an opt-in setting or a per-panel width: "inherit". Maintainers will take a look and consider it.
For context, the GUI plugin docs (Panel width) describe today's behaviour as intended. A panel's width applies while one of its tabs is shown, other tabs keep the conversation's width, and a dragged width is kept for that panel, app-wide. From what I read in the docs, a plugin can only store a width for its own panel, so this needs a change in OpenCode itself rather than a plugin.
Related issues:
- #60389: the request that added the per-panel width and the remembered dragged width
- #66661: a configurable default and persistent side panel width
- #62876: keeping layout proportions across new session tabs in Desktop
- #65924: the right side panel width not being restored after a restart
Just to keep this distinct from #66661: that request is about the default and last-used width of the side region. This one is about the behavior when the selected side tab changes.
Today each panel can declare a width and the host remembers a dragged width per panel. Switching tabs therefore resizes the whole side region even when the user did not touch the divider. In my setup it jumps between 544 px for Automations and 676 px for Go usage, reflowing the panel and the conversation. #66661 could ship and this would still happen.
The ask here is an opt-out from per-tab sizing: one width shared by every side tab, with Panel.width acting only as a default/minimum, or a per-panel width: "inherit". Removing width: "narrow" from a plugin is a local workaround, but users cannot make that choice globally.
If maintainers would rather track this under #66661, feel free to close this as a duplicate — the important part is that “stable while switching tabs” is covered somewhere.