Repository navigation
Conversation
…ght-panel-migrations
|
🚨 SLOP COP 🚨 · I am the Slop Cop. I am reviewing this pull request for security, code quality, architecture, performance, and user workflow regressions. |
…bb/official-plugin-right-panel-migrations
| }); | ||
|
|
||
| it("opens registered custom views with persisted JSON params", () => { | ||
| const view = render(<HostFixture />); |
There was a problem hiding this comment.
🚨 slopcop/review — Remove the unused view variables on lines 705 and 735. The app typecheck fails with TS6133 at both lines.
There was a problem hiding this comment.
Already fixed in 1ea8391. The unused bindings are gone; the final @bb/app typecheck and focused host suite pass.
| useEffect(() => { | ||
| for (const terminalId of revokedTerminalIds) { | ||
| if (closedRevokedTerminalIdsRef.current.has(terminalId)) continue; | ||
| closedRevokedTerminalIdsRef.current.add(terminalId); |
There was a problem hiding this comment.
🚨 slopcop/review — Record this terminal only after closeTerminal succeeds. A failed mutation leaves the ID in the set. State reconciliation then removes the tab and blocks all retries. The terminal process can continue without visible controls. Also close these terminals when the panel registration disappears.
There was a problem hiding this comment.
Fixed in 0af5789 and retained through the latest parent head. Revoked terminals stay visible until close succeeds, failures clear the in-flight guard for retry, success closes the tab, and a previously observed registration disappearing triggers cleanup. Focused lifecycle regressions cover failure/retry, success, registration removal, and initial loading.
| } | ||
| return true; | ||
| } | ||
| const target = normalizeTerminalTarget(request.target); |
There was a problem hiding this comment.
🚨 slopcop/review — Validate the complete request before this access. A plugin can call the runtime API from JavaScript without TypeScript. A missing target throws instead of returning false as documented.
There was a problem hiding this comment.
Fixed in 0af5789 and retained through the latest parent head. The runtime now validates the complete discriminated request before target access; malformed JavaScript Terminal input returns false without throwing or mutating.
| @@ -2197,27 +1892,27 @@ function NotesPanel({ subPath }: PluginNavPanelProps) { | |||
| return ( | |||
| <div className="flex min-h-0 flex-1 flex-col"> | |||
| <div className="flex min-h-0 flex-1"> | |||
There was a problem hiding this comment.
🚨 slopcop/review — Make the navigation child fill this row. At a 1440-pixel viewport, the host content measured 468.6 pixels. The tree measured only 139.5 pixels and left 329 pixels blank. Add a full-width or flex rule to the navigation root.
There was a problem hiding this comment.
Fixed in 55cd5a2. The Docs Tree itself now owns w-full; its regression asserts the navigation parent, not a distant ancestor. Desktop QA measured 468.6px tree / 468.6px host at 1440px (0px gap), plus a full-width 720px compact drawer.
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
ELI5: This change puts the Docs and Tasks sidebars inside the standard BB right panel.
Plugin panels can also open Browser and Terminal tabs.
This review applies to 7ff65b2420e21630cf28a12d50fbbe469e47d3a1.
The pull request head changed during this review.
Findings
-
P1 — The app typecheck fails. Two tests assign unused
viewvariables at lines 705 and 735.
Remove both assignments and require the app Turbo typecheck to pass. -
P1 — Terminal cleanup can leave processes open. The host records an ID before the asynchronous close succeeds.
A failed close gets no retry. State reconciliation then removes the only visible control.
Plugin registration removal can also skip cleanup.
Record success after closure, retry failures, and test registration removal. -
P2 — A malformed Terminal request can throw. Runtime data reaches
normalizeTerminalTargetwithout complete validation.
Missing targets and non-string fields can throw, although the contract says invalid requests returnfalse. -
P2 — The Docs Navigation view does not fill its panel. The tree lacks a width growth rule.
In the browser, the tree measured 139.5 pixels inside a 468.6-pixel panel.
Performance and architecture
- The main Docs view and the Navigation view each load the complete notebook.
- Share or cache this data to avoid duplicate file reads on wide layouts.
- The production and test registration validators duplicate logic, but they currently enforce the same rules.
Validation
git diff --checkpassed.- The app typecheck failed only on the two unused variables.
- The 122 focused app tests passed.
- The 77 SDK tests, 56 Docs tests, 330 Tasks tests, and 14 server tests passed.
- Browser checks covered wide Docs, wide Tasks, and the compact Tasks drawer.
- GPT-5.6 Sol performed the security, quality, and final reviews at high reasoning.
- Opus 5 performed the UI and performance review at medium reasoning.
- The final GPT-5.6 gate found that these fixes are necessary.
I found no direct data exposure issue.
The Terminal lifecycle and runtime request boundary still need fixes.
…bb/official-plugin-right-panel-migrations
…bb/official-plugin-right-panel-migrations
…bb/official-plugin-right-panel-migrations
…bb/official-plugin-right-panel-migrations
|
Superseded by upstream-origin #1553 with the exact reviewed head. This removes the remaining fork-origin layer while preserving the BB host stack and review history. |
The official Tasks and Docs plugins now use BB's experimental right-panel extension model instead of maintaining separate sidebar chrome.
Validation:
Stack:
bb/plugin-panel-browser-apiBB-Thread-ID: thr_ehwczw5k36