-
Notifications
You must be signed in to change notification settings - Fork 35
feat(ui): move model + mode to footer ands move token count topbar #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This makes the panel closer to opencode tui.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the UI layout by moving the model and mode display from the topbar to the footer, and moving token count and cost information to the topbar. This makes the interface more consistent with the opencode TUI design.
Key changes:
- Topbar now displays session title and token/cost information instead of model/mode
- Footer now displays model (when not running) and mode with visual highlighting
- Footer text layout uses a new flexible left/right segment system with proper padding
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| lua/opencode/ui/topbar.lua | Refactored to display token count and cost info; removed model/mode display and related highlighting logic |
| lua/opencode/ui/footer.lua | Added model and mode display with highlights; introduced new layout system with left/right segments and window resize handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Ooh, I'll take a look today! |
|
You are right. I have been trying to add padding to the bottom for a while... But couldn't get it to work in a reliable way.. I tried phantom lines. scroll off on the buffer. And many other things. If you have an idea on how to do it let me know. The issue having it to the right. Is that it looks off when the cancel message is there. Maybe hiding it would make sense. |
|
Ok I will then align it to the right. It looks fine to me |



This makes the panel closer to opencode tui.
Model is hiddent when loading for the spinner