8000 Remember browser side panel visibility per workspace by strayge · Pull Request #470 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

Remember browser side panel visibility per workspace - #470

Merged
amirlehmam merged 2 commits into
amirlehmam:masterfrom
strayge:fix/workspace-browser-panel-visibility-pr
Nov 22, 2026
Merged

amirlehmam merged 2 commits into
amirlehmam:masterfrom
strayge:fix/workspace-browser-panel-visibility-pr

Conversation

@strayge
@strayge strayge commented Nov 21, 2026
Copy link
Copy Markdown
Contributor

Problem

Opening or closing the browser side panel in one workspace also affects every other workspace in the same window.
In contrast, the Git view and file explorer can be opened or closed in each workspace independently.

Changes

  • Save and restore the panel’s open or closed state independently for each workspace.
  • Use the browser preference only for new workspaces and older sessions that have no saved panel state. Rename the setting to “Open browser panel in new workspaces”.

Testing

  • Added regression coverage for independent workspace visibility, session restore, and the fallback for older sessions.
  • Full Vitest suite: 7,080 passed, 10 skipped. Typecheck and renderer build passed.

Closing the side panel used to close it for every workspace, and the choice was lost on restart. Save the open state with each workspace. Use the browser preference for new workspaces and old sessions that have no saved state.

Keep inactive open panels mounted with their normal content height; do not load a second guest for a closed or docked panel.
@amirlehmam
amirlehmam merged commit 0fd48b1 into amirlehmam:master Nov 22, 2026
@amirlehmam
Copy link
Copy Markdown
Owner

Merged, thank you. Making the panel's visibility a workspace field like the Explorer and Git view is the right model, and the fallback to the preference for workspaces saved before this keeps older sessions opening the way they did. I also checked the two things that could have gone wrong here: panels of other workspaces stay mounted and painting while the active one's is closed (so an agent driving a background workspace's browser still gets screenshots), and the hidden container cannot show the active workspace's pane. It ships in the next release, going out today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0