Skip to content

[FEATURE] TUI: Collapsible right panel and multi-window support #19388

@x-thooh

Description

@x-thooh

Problem

Currently, OpenCode TUI only supports toggling the left session sidebar (via ctrl+x b). There is no way to:

  1. Collapse/expand the right panel - Users cannot hide tool execution details, file previews, or other right-side content to maximize the chat area
  2. 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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions