Repository navigation
Keep collapsed panels from covering title-bar buttons - #6211
Merged
ymichael merged 1 commit intoOct 26, 2026
Merged
Conversation
react-resizable-panels sets an inline overflow: hidden on every Panel, overriding our overflow-clip class, so each panel was a scroll container. When something scrolled the collapsed right panel sideways, its hidden contents shifted back into the window. Painting stayed clipped to the 0px panel, but Electron's drag regions ignore clipping, so the panel's title-bar drag strip covered the "Show right panel" button and clicks moved the window instead. Reopening the panel reset the scroll. Give every Panel an inline overflow: clip, which can't be scrolled. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/verify-right-panel-button-fix-on-m5-thr_kjwrpdupdb
branch
October 26, 2026 16:58
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.
Human comments
What was wrong
In the desktop app, the "Show right panel" button in the thread header sometimes stopped responding. Dragging from it moved the window, it showed no hover state, and only ⌘J or visiting the new-thread page brought it back. While the button was stuck on a live bb Nightly, the collapsed right panel (
#thread-detail-secondary-panel, 0px wide) hadscrollLeft=283. react-resizable-panels sets an inlineoverflow: hiddenon everyPanel, which overrides ouroverflow-clipclass, so every panel was scrollable from code. Once the collapsed panel was scrolled, its hidden aside moved back into the window. Painting stayed clipped to the 0px panel, but Electron's drag regions ignore overflow clipping. The aside's title-bar chrome (thread-secondary-panel-top-chrome, a drag region later in the DOM than the header) therefore sat over the button. Reopening the panel reset the scroll to 0, which is why ⌘J fixed it. We still don't know what scrolls the panel in real use; the tab strip'sscrollIntoViewwas ruled out. This fix makes the scroll impossible, so the cause no longer matters. #6105 fixed a different overlap of this toggle's drag region.What changed
Each of the five product
Panels now gets an inlinestyle={{ overflow: "clip" }}, which overrides the library'shidden. The deadoverflow-clipclass is removed.clippaints the same ashidden, but the element is not a scroll container, so neitherscrollIntoViewnor settingscrollLeftcan move a collapsed panel.ThreadSecondaryPanel.tsx(SECONDARY_RESIZABLE_PANEL_STYLE)SecondaryPanelLayout.tsx(main panel)lazySecondaryPanelComponents.tsx(inline placeholder)SplitWorkspaceSecondaryPanelHost.tsx(both panels)No wire, CLI, or plugin API changes.
How you verified
pnpm exec turbo run typecheck --filter=@bb/apppasses.vitest run src/components/secondary-panel src/views/thread-detailinapps/app: 78 files, 795 tests pass.turbo run package --filter=@bb/desktop), launched against an isolated worktree instance with--remote-debugging-port. In a real thread, I opened and then closed the right panel, then forced the scroll over CDP withdocument.querySelector('#thread-detail-secondary-panel [aria-label^="Hide right panel"]').scrollIntoView({inline:"nearest"})andscrollLeft = 283:scrollLeftafter scrollIntoView / set 283overflow: clip)overflow: hiddenput backThe second row reproduces the stuck state seen on the nightly. Not yet covered: a person hovering and clicking the button in the packaged build after the forced scroll. That check is with Michael on the M5.
🤖 Generated with Claude Code