You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bc5aa4e
Browse filesBrowse the repository at this point in the historyBrowse files
feat(tui): order and hide session sidebar sections from tui.json
Add `sidebar.order` and `sidebar.hidden` to tui.json. Sections are named
`context`, `mcp`, `lsp`, `todo`, `files`, or by the slot id a plugin's
registration received, so plugin-contributed sidebar sections can be
ordered and hidden the same way as built-in ones.
Listed sections render first, in the given order; every unlisted section
keeps its default order after them, so a section added later is never
silently dropped. The session title is a separate slot and always stays
first. Without the option nothing changes.
Slot order belongs to a whole registration, so the host moves a
registration's `sidebar_content` into its own registration and leaves
its other slots (e.g. `sidebar_footer`) where they were.
AI-Tool: opencode 1.18.33-vt-60-2fa3363c92
AI-Model: anthropic/claude-opus-5-5
AI-Variant: high
AI-Platform: linux
AI-Harness: Vibeterm e8a11eb
AI-Session-ID: ses_ef81ad30fffeo7m3HoZisuJdli
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/tui.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -410,6 +410,8 @@ This is separate from `opencode.json`, which configures server/runtime behavior.
410
410
-`keep_scroll_on_submit` - Keep the session scroll position when a prompt is submitted instead of jumping to the bottom (default: `false`). Toggle it at runtime with `/keep-scroll`; the toggle is remembered and takes precedence over this option.
411
411
-`sidebar.pin_title` - Keep the session title at the top of the sidebar while the rest of the sidebar scrolls (default: `false`). The `/pin-title` command toggles it for the current machine.
412
412
-`attention` - Configures TUI desktop notifications and sounds. Disabled by default.
413
+
-`sidebar.order` - Session sidebar sections in display order, for example `["todo", "context"]`. Built-in sections are `context`, `mcp`, `lsp`, `todo`, and `files`; plugin sections use their plugin id. Sections you do not list follow in their default order. The session title always stays first.
414
+
-`sidebar.hidden` - Session sidebar sections to hide, using the same names as `sidebar.order`.
413
415
414
416
Use `OPENCODE_TUI_CONFIG` to load a custom TUI config path.
0 commit comments