GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(app): add setting to keep the side panel across sessions by neriousy · Pull Request #64950 · anomalyco/opencode

Conversation

@neriousy

@neriousy neriousy commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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:

Keep side panel open across sessions setting

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

Side panel open in the first session

Switch to another session and the panel is still open:

Side panel still open after switching sessions

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
neriousy added 2 commits November 19, 2026 19:35
@neriousy
feat(app): add setting to keep the side panel across sessions
659ecc7
@neriousy
fix(app): space shared side panel checks for lint
2bf1619
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks sound. All side-region reads and writes go through the four tabs accessors, so the shared entry applies to the session screen, the plugin host and the close-tab guard alike. The bottom pane and split ratio stay per tab, and with the setting off nothing changes. I couldn't run the app here (no browser in this environment), so I checked by reading every caller and running type checks (tsc -b passes) and the src/shell/tabs and src/settings unit tests (255 pass). A throwaway round-trip test also confirmed the shared entry is still saved with side as review.

Public API: unchanged. The PR adds only a local app setting (general.sharedSidePanel) and a new window storage key (tabs.panes.shared).

One behaviour to confirm is intended: the plugin host closes the side region when the last panel tab in a session is closed (host-apis.tsx, the closeAt close and the panel.closed effect of transitionSideRegion). With the setting on, closing the last panel tab in one session hides the side panel in every other session too, including sessions that still have panel tabs open.

Since I couldn't run the UI, could you attach before/after screenshots or a short recording of the setting in Settings > General and of the side panel staying open when you switch sessions?

Related: #62876

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commit only adds blank lines for lint, so behaviour is unchanged. The before/after screenshots I asked for are now in the description. Public API is still unchanged. Nothing new to raise.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
neriousy added 5 commits November 19, 2026 19:54
@neriousy
fix(app): shorten shared side panel description
71548ee
@neriousy
fix(app): share only the side panel open state
b118ffc
@neriousy
fix(app): reword shared side panel setting
533f780
@neriousy
fix(app): move shared side panel setting above language
b9fb4e6
@neriousy
fix(app): revert unrelated en.ts formatting
15094d0
@neriousy
neriousy merged commit 83f9021 into dev Nov 19, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@neriousy
neriousy deleted the shared-side-panel branch November 19, 2026 19:05
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@Zapdude Zapdude mentioned this pull request Nov 24, 2026
desktop: a bottom-pane tab is restored into the side strip after a session switch #65943
Open
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@neriousy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.