Issue for this PR
No issue.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Adds a "Keep side panel open across sessions" setting under Settings > Preferences > General. It's off by default.
Today each session tab remembers whether its own side panel is open, and a tab with nothing saved opens with the panel closed. So when you switch to another session, the panel often closes. With the setting on, all session tabs share one open/closed state: opening or closing the panel in one session does the same in every other session. The panel width and the bottom pane stay per tab.
The change is in tabs.region / setRegion in shell/tabs/tabs.tsx. Every reader and writer of the side region goes through these: the session screen, the plugin host's side APIs and the close-tab guard. With the setting on, the side region reads and writes one shared flag, persisted under tabs.panes.shared, instead of the tab's own entry. With the setting off, nothing changes.
No feature flag: the setting itself is opt-in and off by default.
How did you verify your code works?
bun typecheck and bun run test:unit in packages/app pass.
- Ran the app against a dev server with the setting on. Opened the side panel in one session, switched to another session (the panel stayed open), then switched back (still open).
Screenshots / recordings
The new setting:

With the setting on, open the side panel in one session:

Switch to another session and the panel is still open:

Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Added by the opencode bot (AI-generated).
Related: #62876