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
[FEATURE]: Remember, hide and reorder TUI sidebar sections #51535
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.
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.
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.
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.
Activity
github-actions commentedon Sep 26, 2026
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.
feat(tui): remember, hide and reorder sidebar sections
feat(tui): remember, hide and reorder sidebar sections
simonklee commentedon Sep 27, 2026
Makes sense 👍🏻
Nowaker commentedon Oct 8, 2026
I built the hide and reorder parts for my own use on v1: #53201 adds
sidebar.orderandsidebar.hiddentotui.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.
opencodejr commentedon Oct 28, 2026
Thanks for the detailed proposal, @iceteaSA! You're asking to remember each TUI sidebar section's collapsed state and to add a
sidebar_sectionsoption intui.jsonto hide sections and choose their order.On the current
devcode, 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 slotorder. A plugin can't add this either, because plugins can't filter or reorder other plugins' sidebar slots.Maintainers will consider the request.