context and cost display should be prioritized over directory path when screen width is narrow #414

Closed
opened 2026-02-16 17:26:39 -05:00 by yindo · 2 comments
Owner

Originally created by @AVGVSTVS96 on GitHub (Jul 1, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Issue Summary

When using opencode I generally keep it to the side with neovim taking most of the space on my screen. right now when making opencode's window narrower the context and cost get cut off, with all space being taken up by the working directory which isn't nearly as important as cost and context length.

context and cost are cut off when window is narrow and cwd path is long

Suggestions

  • Truncate the directory path
    Truncate the working directory path to ensure context and cost are always shown on the right side of the status bar.

or

  • Move context and cost to the left side
    Alternatively, simply move the context and cost to the left side of the status bar, before the path. The path can be moved to the right side or just keep it on the left after cost and context. This simple change ensures that the path is truncated on small screen widths while cost and context are always visible.

A fix for this would be greatly appreciated! It's particularly important to stay on top of context usage considering the issue with auto compacting mentioned in #491

Originally created by @AVGVSTVS96 on GitHub (Jul 1, 2025). Originally assigned to: @adamdotdevin on GitHub. ### Issue Summary When using opencode I generally keep it to the side with neovim taking most of the space on my screen. right now when making opencode's window narrower the context and cost get cut off, with all space being taken up by the working directory which isn't nearly as important as cost and context length. <img width="652" alt="context and cost are cut off when window is narrow and cwd path is long" src="https://github.com/user-attachments/assets/5a8ae33e-bfcb-414e-b603-a9ce1dad4742" /> ### Suggestions - **Truncate the directory path** Truncate the working directory path to ensure context and cost are always shown on the right side of the status bar. or - **Move context and cost to the left side** Alternatively, simply move the context and cost to the left side of the status bar, before the path. The path can be moved to the right side or just keep it on the left after cost and context. This simple change ensures that the path is truncated on small screen widths while cost and context are always visible. A fix for this would be greatly appreciated! It's particularly important to stay on top of context usage considering the issue with auto compacting mentioned in #491
yindo closed this issue 2026-02-16 17:26:39 -05:00
Author
Owner

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

This particular issue was fixed by moving the context percentage to the header, but the new plan mode indicator is still being cut off when the screen width is narrow, this requires a solution to the directory path taking too much real estate in the status line. I think I'll make a new issue for this

@AVGVSTVS96 commented on GitHub (Jul 17, 2025): This particular issue was fixed by moving the context percentage to the header, but the new plan mode indicator is still being cut off when the screen width is narrow, this requires a solution to the directory path taking too much real estate in the status line. I think I'll make a new issue for this
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#414