[PR #1145] [MERGED] feat(tui): collapse session header into single line when sharing is disabled #9825

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1145
Author: @yihuikhuu
Created: 7/19/2025
Status: Merged
Merged: 7/19/2025
Merged by: @adamdotdevin

Base: devHead: single-line-header-no-share


📝 Commits (2)

  • 004a4a2 feat(tui): collapse header into single line when sharing is disabled
  • 2daff93 chore: minor cleanup

📊 Changes

1 file changed (+18 additions, -22 deletions)

View changed files

📝 packages/tui/internal/components/chat/messages.go (+18 -22)

📄 Description

Currently the session header always occupies at least two rows. This is required when the sharing function is enabled, but may be unnecessary when it is disabled. This collapses the header into a single row if sharing disabled, giving us one row back.

Before

image

After

image

Session header when sharing enabled for comparison:

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1145 **Author:** [@yihuikhuu](https://github.com/yihuikhuu) **Created:** 7/19/2025 **Status:** ✅ Merged **Merged:** 7/19/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `single-line-header-no-share` --- ### 📝 Commits (2) - [`004a4a2`](https://github.com/anomalyco/opencode/commit/004a4a28a2b4603155eba05ffb83c6018f4dc5d7) feat(tui): collapse header into single line when sharing is disabled - [`2daff93`](https://github.com/anomalyco/opencode/commit/2daff936e4e2d4d85daabc55360151303ad9fbe8) chore: minor cleanup ### 📊 Changes **1 file changed** (+18 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/chat/messages.go` (+18 -22) </details> ### 📄 Description Currently the session header always occupies at least two rows. This is required when the sharing function is enabled, but may be unnecessary when it is disabled. This collapses the header into a single row if sharing disabled, giving us one row back. #### Before <img width="768" height="131" alt="image" src="https://github.com/user-attachments/assets/f7d3f577-81d8-498e-95be-13817a69f813" /> #### After <img width="780" height="118" alt="image" src="https://github.com/user-attachments/assets/a0d8b29e-c270-44ae-8864-dc5e7a95a61c" /> --- Session header when sharing enabled for comparison: <img width="771" height="125" alt="image" src="https://github.com/user-attachments/assets/b2bfc822-b0be-4b28-b060-902d76bf3ffc" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:14 -05:00
yindo closed this issue 2026-02-16 18:14:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9825