Repository navigation
Keep one chat toggle in the toolbar while a file is open - #1764
Merged
Merged
Conversation
A file alone in the center hides the conversation's toolbar tools (views, outline, share, trajectory, archive, inbox, terminal); the panel button then brings the conversation in beside the file, replacing the status bar's separate Chat beside button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
With a file open on its own in the center, the toolbar still showed every conversation tool: views, outline, share, trajectory, archive, inbox, terminal and the panel toggle. None of them apply to the file. The status bar also had its own "Chat beside" button, which repeated the toolbar's panel icon.
Change
.topbar-actionsgets afile-viewclass, and CSS hides the overflow group and the "more" button.data-center-splitandaria-pressed, and it toggles the conversation beside the file. Opening the chat closes the right pane, as the old split button did.center.split_shortkey.docs/gpui-parity.md.Files
ui/src/main.rs: topbarfile-viewclass and the dual-role panel button; status-bar split button removedui/src/styles/chat.css: hides the conversation tools in file viewui/src/i18n.rs: removedcenter.split_shortui-tests/tests/visual-polish.spec.ts: file-view toolbar assertionsdocs/gpui-parity.mdTests
visual-polish.spec.tsnow checks the following with a file open alone:Existing tests that click
[data-center-split](ui.spec.tscenter split,document-select-all.spec.ts) now reach the toolbar button. Onlycargo check --target wasm32-unknown-unknownwas run locally; Playwright runs in CI.Manual smoke
Known limitations
While a file is shown alone, the right pane can't be opened from the toolbar. Switch to the conversation tab to open it.
🤖 Generated with Claude Code