Repository navigation
Conversation
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
Plain-English summary: This pull request adjusts the control that opens the right panel in the new-thread view. It also updates the related tests.
I am the Slop Cop. I am reviewing this change for security, code quality, architecture, performance, and end-to-end behavior. I will post the full result after the parallel checks finish.
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
Plain-English summary: This PR gives the new-thread panel button the same quiet icon color as nearby panel controls. It also adds style checks.
I found no security, correctness, performance, or accessibility defect.
- Security: The change adds one fixed class token. It adds no new data path or trust boundary.
- Code quality: The change uses the established shared chrome token. The class merge gives the intended hover color.
- Architecture: The similar split-workspace button follows a separate window-level policy. It serves thread, compose, and plugin panes.
- Refactor scan: Some panel-toggle logic repeats. A shared component could remove it, but this PR does not require that refactor.
- Performance: The change adds no hook, state, listener, node, or layout class. The test adds only three direct DOM checks.
Validation passed on the exact head SHA:
- The focused test passed with two tests.
- The
@bb/appTurbo typecheck passed. git diff --checkpassed.- The browser check opened and closed the right panel on the new-thread page.
- The browser found the subtle token classes and no
data-statevalue.
The GPT-5.6 review gate found no issue that needs an inline comment. This is a comment-only review.
|
Closing because this PR addressed only opener styling and did not implement the requested new-thread tabbed-panel consistency work. A correctly scoped replacement will follow. |
## Summary - render the new-thread launcher as a normal active `New tab` pill in the shared right-panel tab strip - keep the shared add-tab, tab-close, resize, hide, and responsive drawer interactions aligned with thread panels - hide the panel when its lone launcher tab is closed, avoiding an immediate close-and-respawn loop ## Why Root compose was explicitly marking its launcher tab as hidden. The panel therefore opened to an unlabeled launcher body with only a bare `+`, even though it already used the same panel shell as thread pages. This replaces closed PR #1700, which changed only the external opener color and did not address the requested tabbed panel. ## Intentional differences The new-thread surface still omits Info, Diff, and conversation full-screen controls because there is no materialized thread, thread metadata, or conversation pane yet. The panel shell, tab strip, launcher, resizing, hide control, persistence, and compact drawer remain shared. ## Verification - focused `@bb/app` panel tests — 73 tests passed - `pnpm exec turbo run typecheck --filter=@bb/app` — passed - `pnpm exec turbo run lint --filter=@bb/app` — passed with repository baseline warnings and no errors - changed-file ESLint for `RootComposeView.tsx` and its test — passed with no findings - real BB UI at 390×844, 768×900, 1440×900, and 3440×1440 — visible active `New tab`, adjacent add-tab control, lone-tab close behavior, and five open/close cycles passed - `git diff --check` — passed BB-Thread-ID: thr_bwikffmsvp > AGENT GENERATED: by GPT-5 <!-- codesmith:footer --> --- <a href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1715"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789594897&installation_model_id=432835&pr_number=1715&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1715&signature=ab96e0f8229a393a4bf8523dd3578325ddd32583e5ae1b636c0f1f3cdc379272"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a> <sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need. Autofix is disabled.</sup> <!-- codesmith:autofix:disabled --> <!-- /codesmith:footer --> --------- Co-authored-by: Michael Yong <[email protected]>
Summary
Rationale and boundary
Thread and new-thread pages already share
SecondaryPanelLayoutandThreadSecondaryPanelfor width persistence, responsive drawer behavior, tabs, Browser/Terminal bodies, focus lifecycle, and resize seams. This patch stays at the new-thread wrapper boundary and changes no shared panel internals.The new-thread page intentionally keeps its own pinned opener while the panel is closed because it has no shared page header. When open, the shared panel owns Hide and New Tab. It also intentionally omits thread-only Info, Diff, and Full Screen actions. Navigation-panel plugins remain page-header-owned and are outside this patch.
This PR is standalone on
main. It does not depend on the plugin right-panel stack (#1546 → #1553) or the thread split-pane PR (#1601), and it has no file overlap with either.Verification
RootComposeRightPanelToggle.test.tsxandRootComposeSecondaryContent.test.tsx— 10 tests passed.turbo run typecheck --filter=@bb/app— passed.git diff --check— passed.BB-Thread-ID: thr_bwikffmsvp