Skip to content

[FEATURE]: Remember, hide and reorder TUI sidebar sections #51535

Open

Description

@iceteaSA

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

Let users control the TUI session sidebar's sections: remember which ones are collapsed, hide the ones they don't use, and choose their order.

Today each section (Context, MCP, LSP, Todo, Modified files, plus any plugin sections) keeps its open/collapsed state in a component signal. The state resets whenever the sidebar is rendered again: when you switch sessions, open a subagent's session and come back, or restart. If you keep MCP and LSP collapsed, you collapse them again every time. Order is fixed by each section's slot order, and there is no way to hide a section.

Proposal:

  • Remember each section's collapsed state globally in the TUI's KV store, so it survives session switches, subagent navigation and restarts. fix(tui): persist MCP sidebar state #50447 does this for the MCP section on v2; this covers every section on dev.
  • Add a sidebar_sections option to tui.json: order lists section names to show first, in that order (the rest follow in their default order), and hidden lists sections not to render. Unknown names are ignored.
{
  "sidebar_sections": {
    "order": ["context", "todo", "mcp"],
    "hidden": ["lsp"]
  }
}

Activity

  1. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:\n- #14858: requests user-configurable ordering and visibility for plugin sidebar panels, overlapping with this issue's ordering and hiding options.

  2. added 2 commits that reference this issue on Sep 26, 2026
    7f5ee47
    9d29e80
  3. simonklee commented on Sep 27, 2026

    @simonklee
    Member

    Makes sense 👍🏻

  4. Nowaker commented on Oct 8, 2026

    @Nowaker

    I built the hide and reorder parts for my own use on v1: #53201 adds sidebar.order and sidebar.hidden to tui.json (plugin sections included), and #53217 builds on it to reorder sections by dragging their headers. Remembering collapsed state is not covered.

    v1 is maintenance-only, so they're there for anyone who wants them; a v2 version will follow.

  5. opencodejr commented on Oct 28, 2026

    @opencodejr

    Thanks for the detailed proposal, @iceteaSA! You're asking to remember each TUI sidebar section's collapsed state and to add a sidebar_sections option in tui.json to hide sections and choose their order.

    On the current dev code, the MCP and Todo sections already save their open/collapsed state in the TUI's plugin storage (related: #50447). It should survive session switches and restarts. Hiding and reordering sections isn't possible today: order comes from each section's slot order. A plugin can't add this either, because plugins can't filter or reorder other plugins' sidebar slots.

    Maintainers will consider the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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