Add hide chat option to the TUI - #150
Merged
Merged
Conversation
Contributor
|
Ahh makes sense - will take a look! |
destari
self-requested a review
September 10, 2026 21:05
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The log detail modal height calculation doesn’t adjust when the tabs row is omitted (chat hidden), reducing available vertical space and likely leaving unused space in the modal.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds an opt-in way to hide the AI chat pane in the TUI log detail modal to maximize space for log details, with a runtime toggle.
Changes:
- Introduces
--hide-chat-pane(plus config/env support) to start with the chat pane hidden. - Adds
xkeybinding (and status bar hints) to toggle chat pane visibility during a log detail modal session. - Updates split-modal rendering/navigation/mouse handling and adds unit tests for the new behavior.
File summaries
| File | Description |
|---|---|
| USAGE_GUIDE.md | Documents the new hide-chat-pane option, including CLI/config/env and runtime toggle. |
| internal/tui/update.go | Prevents modal click-based pane switching when the chat pane is hidden. |
| internal/tui/navigation.go | Adds x toggle and disables Tab pane switching when chat is hidden. |
| internal/tui/navigation_test.go | Adds tests for x toggle behavior and Tab behavior when chat is hidden/visible. |
| internal/tui/model.go | Adds chatPaneVisible state (default true) and a setter used by app config. |
| internal/tui/modal_log_details.go | Updates log detail modal rendering to support full-width details when chat is hidden. |
| internal/tui/modal_help.go | Updates help modal with the new x shortcut for log detail modal. |
| internal/tui/modal_base.go | Updates status bar hints to reflect chat visibility and toggling. |
| internal/tui/modal_base_test.go | Adds tests for updated status bar behavior with chat shown/hidden. |
| cmd/gonzo/main.go | Adds hide-chat-pane config/flag binding and env/config support via viper. |
| cmd/gonzo/app.go | Applies HideChatPane configuration to the dashboard model at startup. |
Review details
- Files reviewed: 11/11 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
destari
requested changes
Sep 10, 2026
destari
left a comment
Contributor
There was a problem hiding this comment.
Take a look at the one comment about the sizing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I sometimes (particularly when using in K9s) would rather have the full view for the log details. It's personal preference and taste, but for me with long messages even when I have wrap enabled I find it easier to digest with the 30% extra space.
The change is opt-in so no issues for existing users.