[PR #5738] Titlebar Disable Toggle #11556

Closed
opened 2026-02-16 18:16:24 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5738

State: closed
Merged: No


This pull request adds a new configuration option to control the visibility of the session titlebar in the TUI, and updates the UI to display context and cost information in the prompt area when the titlebar is hidden. It also includes minor refactoring and type imports to support these changes.

TUI Titlebar Visibility and Context/Cost Display:

  • Added a titlebar boolean configuration option to the TUI settings in config.ts, allowing users to show or hide the session titlebar. [1] [2]
  • Updated the session route to only render the Header component (titlebar) when both the sidebar is hidden and the titlebar setting is enabled. [1] [2]
  • Modified the prompt component to display context and cost information in the prompt area when the titlebar is hidden, including logic to compute and format these values. [1] [2] [3] [4]

Titlebar Enabled (Default):

image

Titlebar Disabled:

image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5738 **State:** closed **Merged:** No --- This pull request adds a new configuration option to control the visibility of the session titlebar in the TUI, and updates the UI to display context and cost information in the prompt area when the titlebar is hidden. It also includes minor refactoring and type imports to support these changes. **TUI Titlebar Visibility and Context/Cost Display:** * Added a `titlebar` boolean configuration option to the TUI settings in `config.ts`, allowing users to show or hide the session titlebar. [[1]](diffhunk://#diff-2ca52542d251bb69bf981f39dd51de9943a6c2cb4ee53d7799c83bbf322a0891R581-R586) [[2]](diffhunk://#diff-235f858bb7068575a1edc0a69f815840b6bceac32f1daedf3c41195d3edf60edR17-R19) * Updated the session route to only render the `Header` component (titlebar) when both the sidebar is hidden and the `titlebar` setting is enabled. [[1]](diffhunk://#diff-ac546dd32bc846999ff811172f32c802b0a0c224dd92d712027c38b260be4c78R135) [[2]](diffhunk://#diff-ac546dd32bc846999ff811172f32c802b0a0c224dd92d712027c38b260be4c78L841-R842) * Modified the prompt component to display context and cost information in the prompt area when the titlebar is hidden, including logic to compute and format these values. [[1]](diffhunk://#diff-804ae5628d4a21b7be38317420b0fde31897ef353716263bc3d28d6137d9199fL21-R22) [[2]](diffhunk://#diff-804ae5628d4a21b7be38317420b0fde31897ef353716263bc3d28d6137d9199fR121-R144) [[3]](diffhunk://#diff-804ae5628d4a21b7be38317420b0fde31897ef353716263bc3d28d6137d9199fL980-R1011) [[4]](diffhunk://#diff-804ae5628d4a21b7be38317420b0fde31897ef353716263bc3d28d6137d9199fR1029) ### Titlebar Enabled (Default): <img width="853" height="665" alt="image" src="https://github.com/user-attachments/assets/9ee02a8f-9fd0-498e-a1ce-36e991006129" /> ### Titlebar Disabled: <img width="853" height="665" alt="image" src="https://github.com/user-attachments/assets/64c45189-09fd-46ae-9a57-3646af96d739" />
yindo added the pull-request label 2026-02-16 18:16:24 -05:00
yindo closed this issue 2026-02-16 18:16:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11556