Repository navigation
Replace the collapsed-conversation rail with a panel header toggle - #951
Merged
Merged
Conversation
Delete ConversationCollapsedRail and let the right panel's own header control restore the conversation. The control already resolved to "Restore conversation" while collapsed; it was suppressed in that state so the rail could own the action. Rendering it in both states keeps the expand/restore pair in one slot. Two consequences handled here: - Traffic-light geometry. The panel's macOS reserve was sized to sit behind the 32px rail. Without the rail both the page header and the collapsed panel start from the same px-4 inset, so the two reserve constants collapse into one MACOS_COLLAPSED_TOP_LEFT_RESERVE_CLASS at 104px. The old paired-geometry test was already stale: it asserted a 36px rail after the rail shrank to 32px. - Double seam. Collapsing drops the timeline and resize handle to zero width, so the panel's border-l landed on the sidebar's border-r and read as one 2px line. The panel gives up its border while collapsed; the sidebar owns that boundary. The working-state spinner the rail carried is dropped. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Collaborator
Author
|
🚨 SLOP COP 🚨 · SlopCop started this review. I will check security, code quality, performance, architecture, and the changed user flow. |
Collaborator
Author
|
🚨 SLOP COP 🚨 · End-to-end phase complete on the exact pull request SHA. I opened the right panel and used the header control to collapse the conversation. The control changed to The hidden conversation became inert. The same control restored the conversation. The app typecheck passed. All 52 focused tests passed. |
amadad
pushed a commit
to amadad/bb
that referenced
this pull request
Aug 14, 2026
…et-bb#951) ## Summary - delete `ConversationCollapsedRail` and restore the conversation from the right panel's own header control - collapse the two macOS traffic-light reserve constants into one now that both surfaces share a `px-4` base inset - drop the panel's `border-l` while the conversation is collapsed so it no longer doubles the sidebar's `border-r` ## Why The rail was a 32px placeholder whose only job was to carry the restore action. `resolveConversationCollapseControl` already resolves to "Restore conversation" while collapsed, but the panel header suppressed the control in that state so the rail could own it. Rendering it in both states keeps the expand/restore pair in one slot and removes a whole surface. Two consequences fell out of the deletion: **Traffic-light geometry.** The panel's reserve was `pl-[68px]`, sized to sit *behind* the rail. Without the rail that lands leading content at 84px — under the pinned sidebar trigger, which is BB-46. Both the page header and the collapsed panel now start from the same 16px `px-4` inset, so `MACOS_COLLAPSED_HEADER_RESERVE_CLASS` and `MACOS_COLLAPSED_PANEL_TRAFFIC_LIGHT_RESERVE_CLASS` merge into `MACOS_COLLAPSED_TOP_LEFT_RESERVE_CLASS` at `pl-[104px]`. The paired-geometry test was already stale — it hardcoded `RAIL_WIDTH = 36` after get-bb#934 shrank the rail to `w-8`, so it asserted a 120px target the app missed by 4px. **Double seam.** Collapsing drops the timeline panel to 0% and the resize handle to 0px, so the panel's `border-l border-border-seam` landed directly on the app sidebar's `border-r border-border-seam` and rendered as one 2px line. The panel gives up its border while collapsed; the sidebar owns that boundary. The split-workspace host was never affected — there the panel already omits its border and the host's resize handle is the seam. **Behavior dropped:** the rail showed a spinner while the agent ran with the conversation hidden. That signal is gone, by request. ## Verification - `pnpm exec turbo run typecheck --filter=@bb/app` - Vitest across `secondary-panel/`, `thread-detail/`, and `bb-desktop.test.ts` — 38 files, 279 tests - new `ThreadSecondaryPanel.collapseControl.test.tsx` pins both halves of the disclosure pair; without a rail this control is the only way back from a collapsed conversation, so losing it strands the user. Confirmed it fails when the old gating is restored. - ESLint on changed files — 0 errors - manual QA in the dev app, measuring the seam pixel columns at the sidebar/panel boundary: | state | seam columns | | --- | --- | | before fix, collapsed | 319, 320 — 2px | | after fix, collapsed | 319 — 1px | | after fix, conversation restored | 319 — 1px | 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Summary
ConversationCollapsedRailand restore the conversation from the right panel's own header controlpx-4base insetborder-lwhile the conversation is collapsed so it no longer doubles the sidebar'sborder-rWhy
The rail was a 32px placeholder whose only job was to carry the restore action.
resolveConversationCollapseControlalready resolves to "Restore conversation" while collapsed, but the panel header suppressed the control in that state so the rail could own it. Rendering it in both states keeps the expand/restore pair in one slot and removes a whole surface.Two consequences fell out of the deletion:
Traffic-light geometry. The panel's reserve was
pl-[68px], sized to sit behind the rail. Without the rail that lands leading content at 84px — under the pinned sidebar trigger, which is BB-46. Both the page header and the collapsed panel now start from the same 16pxpx-4inset, soMACOS_COLLAPSED_HEADER_RESERVE_CLASSandMACOS_COLLAPSED_PANEL_TRAFFIC_LIGHT_RESERVE_CLASSmerge intoMACOS_COLLAPSED_TOP_LEFT_RESERVE_CLASSatpl-[104px]. The paired-geometry test was already stale — it hardcodedRAIL_WIDTH = 36after #934 shrank the rail tow-8, so it asserted a 120px target the app missed by 4px.Double seam. Collapsing drops the timeline panel to 0% and the resize handle to 0px, so the panel's
border-l border-border-seamlanded directly on the app sidebar'sborder-r border-border-seamand rendered as one 2px line. The panel gives up its border while collapsed; the sidebar owns that boundary. The split-workspace host was never affected — there the panel already omits its border and the host's resize handle is the seam.Behavior dropped: the rail showed a spinner while the agent ran with the conversation hidden. That signal is gone, by request.
Verification
pnpm exec turbo run typecheck --filter=@bb/appsecondary-panel/,thread-detail/, andbb-desktop.test.ts— 38 files, 279 testsThreadSecondaryPanel.collapseControl.test.tsxpins both halves of the disclosure pair; without a rail this control is the only way back from a collapsed conversation, so losing it strands the user. Confirmed it fails when the old gating is restored.🤖 Generated with Claude Code