Skip to content

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

Closed

Description

@AVGVSTVS96

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

Activity

  1. AVGVSTVS96 commented on Jul 17, 2025

    @AVGVSTVS96
    Author

    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

  2. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions