Create more vertical space by using first line #787

Open
opened 2026-02-16 17:28:19 -05:00 by yindo · 7 comments
Owner

Originally created by @chinwobble on GitHub (Jul 17, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Great TUI!

As you mentioned a few times the tui is constrained especially in terms of vertical space.
I imagine you have intentionally made the look and feel of this app different to other project charm/opencode.

There's currently a lot of space wasted with blank lines especially at the top of the screen.

We currently have "layout":"stretch" and "layout":"auto".

This is my experience I can only see 7 lines of response at a time.
Can we change. Perhaps we do it in layout=stretch only
https://github.com/sst/opencode/blob/dev/packages/tui/internal/components/chat/messages.go#L500

-return "\n" + header + "\n"
+return "header + "\n"
Image
Originally created by @chinwobble on GitHub (Jul 17, 2025). Originally assigned to: @adamdotdevin on GitHub. Great TUI! As you mentioned a few times the tui is constrained especially in terms of vertical space. I imagine you have intentionally made the look and feel of this app different to other project `charm/opencode`. There's currently a lot of space wasted with blank lines especially at the top of the screen. We currently have `"layout":"stretch"` and `"layout":"auto"`. This is my experience I can only see 7 lines of response at a time. Can we change. Perhaps we do it in `layout=stretch` only https://github.com/sst/opencode/blob/dev/packages/tui/internal/components/chat/messages.go#L500 ```diff -return "\n" + header + "\n" +return "header + "\n" ``` <img width="3428" height="1305" alt="Image" src="https://github.com/user-attachments/assets/36df5404-b4d9-434a-92b1-4e8e5619bb89" />
Author
Owner

@adamdotdevin commented on GitHub (Jul 17, 2025):

why is your terminal so short? lol

@adamdotdevin commented on GitHub (Jul 17, 2025): why is your terminal so short? lol
Author
Owner

@chinwobble commented on GitHub (Jul 17, 2025):

why is your terminal so short? lol

I have vision impairment so I run the terminal with larger font. This is also on an ultrawide monitor
Would you be open to make this change so we can use more of the screen?

@chinwobble commented on GitHub (Jul 17, 2025): > why is your terminal so short? lol I have vision impairment so I run the terminal with larger font. This is also on an ultrawide monitor Would you be open to make this change so we can use more of the screen?
Author
Owner

@thdxr commented on GitHub (Jul 18, 2025):

we probably need to be responsive vertically too and make it more compact if there's not enough vertical lines

@thdxr commented on GitHub (Jul 18, 2025): we probably need to be responsive vertically too and make it more compact if there's not enough vertical lines
Author
Owner

@adamdotdevin commented on GitHub (Jul 19, 2025):

why is your terminal so short? lol

I have vision impairment so I run the terminal with larger font. This is also on an ultrawide monitor
Would you be open to make this change so we can use more of the screen?

(i'm sorry for being ignorant 🤦‍♂️)

@adamdotdevin commented on GitHub (Jul 19, 2025): > > why is your terminal so short? lol > > I have vision impairment so I run the terminal with larger font. This is also on an ultrawide monitor > Would you be open to make this change so we can use more of the screen? (i'm sorry for being ignorant 🤦‍♂️)
Author
Owner

@adamdotdevin commented on GitHub (Jul 19, 2025):

we probably need to be responsive vertically too and make it more compact if there's not enough vertical lines

yep, i'll work on this

@adamdotdevin commented on GitHub (Jul 19, 2025): > we probably need to be responsive vertically too and make it more compact if there's not enough vertical lines yep, i'll work on this
Author
Owner

@tgrushka commented on GitHub (Sep 23, 2025):

Bless you @chinwobble . I am legally blind as well and have same issue as you. I didn't see this issue so I opened #2750 -- which the maintainer may see as a duplicate -- but it has a different description than yours so may give them more insight on the problem.

@tgrushka commented on GitHub (Sep 23, 2025): Bless you @chinwobble . I am legally blind as well and have same issue as you. I didn't see this issue so I opened #2750 -- which the maintainer may see as a duplicate -- but it has a different description than yours so may give them more insight on the problem.
Author
Owner

@felores commented on GitHub (Nov 9, 2025):

Image

Not even mentioning the fact that the H1 title in the top bar is most of the times unrelated to the real topic of your thread

The path at the bottom shows the first folders in the path, it should show only the last one

I ❤️ opencode btw

@felores commented on GitHub (Nov 9, 2025): <img width="849" height="451" alt="Image" src="https://github.com/user-attachments/assets/475be9b5-3ab1-48a3-b585-ca3f42ba0459" /> Not even mentioning the fact that the H1 title in the top bar is most of the times unrelated to the real topic of your thread The path at the bottom shows the first folders in the path, it should show only the last one I ❤️ opencode btw
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#787