desktop: right side panel width is not restored after restart
Description
On the Desktop App, the right side panel (Review / Files) opens at roughly half of the window width on every start. Dragging the divider makes it narrower, but after quitting and relaunching the app, the panel is back to about half the window and the chat column is narrow again.
I would expect the app to remember the panel width and reopen with the same size after a restart. If new tabs are meant to start from a fixed default, a configurable default width (or "remember the last used width") would make this much more convenient.
Plugins
opencode-visual-cache, opencode-history, opencode-turn-markers, opencode-github-panel (none related to layout).
OpenCode version
2.4.1 (Desktop App and CLI)
Steps to reproduce
- Launch OpenCode Desktop and open a session.
- The right side panel takes about half of the window.
- Drag the divider to make the panel narrower.
- Quit and relaunch the app.
- Open the same session.
Screenshot
No screenshot attached; I can add one if useful.
Operating System
Windows 10 (10.0.19045), x64
Terminal
N/A — OpenCode Desktop App (Electron), not a terminal.
Thanks for the clear steps. I couldn't reproduce this here. It needs the Desktop app on Windows, and my test environment can't run that. The browser version of the app saves its layout differently, so testing there wouldn't show whether the desktop app loses the width.
From what I read in the code, each tab is meant to keep the width you drag the divider to, and the app is meant to remember it across a restart. So a tab that is restored when you relaunch should come back at your width. A session opened in a new tab starts at the default width.
One detail that would help a maintainer check this: after relaunching, is the session still open in the tab that came back with the app, or do you open it again in a new tab? A maintainer with the Windows desktop app will need to look at this.
I would like to investigate this on Windows. I will resize the right panel and compare a tab restored after relaunch with the same session opened in a new tab. If the restored tab loses its width, I will trace how the saved layout is restored. Could a maintainer assign this to me?