Problem
Currently, OpenCode TUI only supports toggling the left session sidebar (via ctrl+x b). There is no way to:
- Collapse/expand the right panel - Users cannot hide tool execution details, file previews, or other right-side content to maximize the chat area
- Multi-window/split pane layout - Users cannot have multiple sessions visible side-by-side within the same TUI instance
Proposed Solution
1. Collapsible Right Panel
Add a keybind (e.g., ctrl+x r) to toggle the visibility of the right panel, similar to how sidebar_toggle works for the left sidebar.
2. Multi-window / Split Pane
Add support for:
- Horizontal split (side-by-side sessions)
- Vertical split (stacked sessions)
- Tab management within splits
This could follow patterns from tools like tmux or Vim splits.
Alternatives Considered
Currently, users can:
- Use tmux to run multiple OpenCode instances in splits (workaround)
- Use VS Code extension for split terminal views
But native support would provide better UX and integration.
Additional Context
Problem
Currently, OpenCode TUI only supports toggling the left session sidebar (via
ctrl+x b). There is no way to:Proposed Solution
1. Collapsible Right Panel
Add a keybind (e.g.,
ctrl+x r) to toggle the visibility of the right panel, similar to howsidebar_toggleworks for the left sidebar.2. Multi-window / Split Pane
Add support for:
This could follow patterns from tools like tmux or Vim splits.
Alternatives Considered
Currently, users can:
But native support would provide better UX and integration.
Additional Context