Skip to content

[FEATURE]: Add tui.json option to set sidebar hidden by default #20774

Description

@dwen3232

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently, the TUI sidebar (right panel) can be toggled at runtime via the sidebar_toggle keybind (<leader>b by default), but there is no way to configure it to be hidden by default on startup.

Request: Add a tui.json config option to control the sidebar's initial visibility state, for example:

{
  "$schema": "https://opencode.ai/tui.json",
  "sidebar": {
    "visible": false
  }
}

Benefits:

  • Users who prefer a minimal, full-width chat layout can set this once and not have to toggle it every session.
  • The sidebar takes up significant horizontal space, which is especially noticeable on smaller terminal windows or when using a split-pane tmux setup.
  • The toggle keybind already exists, so the underlying mechanism is in place — this just needs a way to set the initial state via config.

Metadata

Metadata

Assignees

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