Skip to content

Workspace switching with multiple panes: sidebar updates but terminal content does not refresh #2121

@ywxc1997

Description

@ywxc1997

Bug Description

When I have 2 workspaces and one workspace has been split into multiple panes, switching workspaces via keyboard shortcut causes the sidebar to update correctly (showing the target workspace as selected), but the terminal screen content does not switch — it still displays the content from the previous workspace.

Typing commands in this state produces no visible changes on screen. However, after manually clicking the workspace button in the sidebar again, the terminal display refreshes correctly and shows the commands that were typed blindly.

Steps to Reproduce

  1. Create 2 workspaces
  2. In one workspace, split into multiple panes
  3. Use keyboard shortcut to switch to the other workspace
  4. Observe: sidebar shows the switched workspace, but terminal content remains from the previous workspace
  5. Type some commands — no visible output appears
  6. Manually click the workspace in the sidebar — terminal now refreshes and shows the previously typed commands
Image Image

Expected Behavior

When switching workspaces via keyboard shortcut, both the sidebar and the terminal content should update simultaneously.

Image

Actual Behavior

  • Sidebar updates correctly to show the target workspace
  • Terminal content stays on the previous workspace's display
  • Commands typed are executed but not visually rendered until manually clicking the sidebar workspace button

Screenshots

Before switching (obsidian workspace selected, multiple panes):
The sidebar highlights "obsidian" workspace. Terminal shows multiple panes with the obsidian workspace content.

After switching via shortcut (sidebar changed but terminal content stuck):
The sidebar now shows the other workspace selected, but the terminal still displays the obsidian workspace content.

Environment

  • Version: cmux 0.62.2 (77) [6c203b5]
  • OS: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions