#7518 · Child-card header inherits activity-row elevation
Verdict: PARTIALLY REPRODUCED · Root-cause confidence: medium · reproduction label: partial-repro
1. TL;DR
The reported symptom is an uneven lower edge on the collapsed child-thread card in the macOS light theme. Two clean checkouts of current main render a header carrying shadow-xs ring-1 ring-border/60 inside a separately bordered, clipped card. The light-theme shadow token has a two-pixel downward offset, giving a concrete candidate for asymmetric lower-edge paint; this elevation comes from the activity-row helper, not the outer card token. The disclosure divider is indeed transparent while collapsed. This investigation confirms the nested styling but does not confirm the visible defect: the available Linux host has no Chrome executable, and macOS desktop is unavailable. No screenshot, pixel measurement, production patch, or passing visual regression is claimed.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| Collapsed card has a visibly heavier bottom edge | Unverified visually | Browser Automation could not launch: Chrome prerequisite absent. jsdom cannot paint or measure this symptom. |
| Outer card token contains no shadow | Verified, but incomplete as an explanation of the whole card | Outer card has only border/background; its full-width header independently retains a shadow and ring. |
| Collapsed divider is transparent | Verified | Both DOM runs contain opacity-0, border-t and border-transparent on the disclosure section. |
| Two active children, no pending question | Verified at component boundary | Existing banner fixture adapted to two children; pendingInteractions empty; accessible header is “2 active child threads”. No provider process or live parent thread was used. |
| macOS desktop version-specific behavior | Unverified | Only current-main source and Linux component rendering were tested; the release and desktop window were not accessed. |
3. Environment
- Trusted public repository: get-bb/bb, fetched main commit
88cf8f644c81fca797ad80bc31bb36a61ce5cc9b. - Linux 4.19.0-gvisor; Node v22.19.0; pnpm 9.15.0; Vitest 4.1.12 with jsdom.
- Two fresh detached worktrees, referred to here as
firstandsecond. Both started at the same trusted commit, with unchanged production component code. - No app server, temporary ports, runtime data directory, providers, production store, account, or user thread was used. A fresh runtime store was unnecessary because this was component-only verification.
- Frozen installs and full Turbo builds succeeded in both checkouts after building the SDK runtime and bundled types first.
4. Minimal reproduction
- Clone the trusted repository twice, and detach each clone at the base commit above. In each checkout, run:
pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build build:types --filter=@get-bb/plugin-sdk pnpm exec turbo run build
- Apply the following diagnostic-only patch. It changes the existing test fixture to two children and prints the rendered DOM classes; it changes no production code and is not a proposed permanent regression test.
diff --git a/apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.test.tsx b/apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.test.tsx index 233d106ae2..6e03ce94c1 100644 --- a/apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.test.tsx +++ b/apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.test.tsx @@ -342,7 +342,10 @@ describe("ThreadPromptContextBanner", () => { environmentGoneSection={null} parentThreadSection={null} childThreadsSection={{ - items: [childThreadItem("thr_child", "Investigate failing checks")], + items: [ + childThreadItem("thr_child", "Investigate failing checks"), + childThreadItem("thr_second", "Inspect card geometry"), + ], pendingInteractions: [], }} expandedSection={null} @@ -353,15 +356,23 @@ describe("ThreadPromptContextBanner", () => { const markup = container.innerHTML; expect(markup).toContain('aria-label="Child threads"'); - expect(markup).toContain('aria-label="1 active child thread"'); + expect(markup).toContain('aria-label="2 active child threads"'); expect(markup).toContain("Active child threads"); - expect(markup).toContain(">1<"); + expect(markup).toContain(">2<"); expect(markup).toContain('data-icon="ChildThread"'); expect(markup).toContain("animate-shine-icon"); const label = screen.getByText("Active child threads").classList; expect(label.contains("animate-shine")).toBe(true); expect(label.contains("font-normal")).toBe(true); expect(label.contains("font-medium")).toBe(false); + const card = screen.getByRole("region", { name: "Child threads" }); + const header = screen.getByRole("button", { name: "2 active child threads" }); + const body = card.querySelector('section[aria-hidden="true"]'); + console.log("ISSUE_7518_PROBE", JSON.stringify({ + card: card.className, + header: header.className, + body: body?.getAttribute("class"), + })); }); it("lists child threads with needs-input and working glyphs when expanded", () => { - From each checkout root, run:
pnpm exec turbo run test --filter=@bb/app -- src/components/promptbox/banner/ThreadPromptContextBanner.test.tsx --silent=false
- Compare the outer card, header, and disclosure classes. Then inspect
.shadow-xsand.ring-1in the builtapps/app/dist/assets/*.css. The actual rules are printed below.
Expected user-facing result: a visually even card outline after disclosure animation completes. Actual observed result: both component runs include an additional header shadow and ring. Neither a screenshot nor actual bottom-border darkness could be observed in this environment.
first: Tests 19 passed (19)
{
"card": "rounded-lg border border-border bg-surface-raised-solid overflow-hidden",
"header": "bg-background/70 shadow-xs ring-1 ring-border/60 flex min-h-8 w-full min-w-0 cursor-pointer items-center gap-1.5 rounded-none px-3 py-1.5 text-xs text-foreground transition-colors hover:bg-background/80 group/disclosure",
"body": "grid overflow-hidden transition-[grid-template-rows,opacity,border-color] duration-200 ease-out pointer-events-none grid-rows-[0fr] opacity-0 border-t border-transparent"
}
second: Tests 19 passed (19)
{
"card": "rounded-lg border border-border bg-surface-raised-solid overflow-hidden",
"header": "bg-background/70 shadow-xs ring-1 ring-border/60 flex min-h-8 w-full min-w-0 cursor-pointer items-center gap-1.5 rounded-none px-3 py-1.5 text-xs text-foreground transition-colors hover:bg-background/80 group/disclosure",
"body": "grid overflow-hidden transition-[grid-template-rows,opacity,border-color] duration-200 ease-out pointer-events-none grid-rows-[0fr] opacity-0 border-t border-transparent"
}
Compiled CSS evidence
.shadow-xs{--tw-shadow:var(--shadow-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
These are extracted from the real app build, not hand-written substitute CSS. The theme token supplying the shadow is:
--shadow-xs: 0px 2px 0px 0px hsl(0 0% 20% / 0.07);
Visual prerequisite failure
Browser Automation local headless open: Install Chrome/Chromium on this host or link its executable at the plugin data runtime/chrome path.
No image is included: none could be captured. No image, CSS mockup, or jsdom output is presented as a screenshot. No browser dependency was added to bypass this limitation.
5. Root cause: verified styling and remaining hypothesis
The child-card composition supplies a full-width header through activityRowClass("active", ...). The active-row helper includes shadow-xs ring-1 ring-border/60. Class merging replaces dimensions and rounding, but does not remove these elevation utilities: both actual DOM runs confirm they survive.
The outer card uses border-and-background chrome and clips overflow. The light-theme shadow token points two CSS pixels down. The collapsed body reserves a transparent top border at zero opacity. This combination plausibly permits extra header elevation to affect the bottom interior edge while the card clips other edges, but that pixel-level interaction is a hypothesis, not an observed result.
It would be incorrect to diagnose two visible disclosure borders solely from the reserved top border. The strongest confirmed finding is nested header elevation, and the uncertain part is whether removing it resolves the reported macOS appearance.
6. Proposed next experiment and fix safety
On a host with Browser Automation and Chrome, mount the real banner with two working children in the real light-theme stylesheet. Capture the settled collapsed card before and after disabling only the header shadow and ring; record computed styles, bounding rectangles, device-pixel ratio, and edge pixels. Repeat in the desktop renderer at the reporter’s scale. Check the expanded and question/back-header variants as well, since the back header uses the same activity-row helper.
If those measurements establish causality, remove nested elevation locally at the child-card header boundary without changing the shared activity-row appearance elsewhere. Keep the active icon/text affordances. Add a genuine rendered-style or pixel regression that fails before that fix, then run relevant banner tests. A class-name assertion alone would not prove an even outline.
No pull request: the visible defect was not reproduced on trusted main, and no meaningful failing visual regression could be demonstrated. The simple-fix gate is therefore not met. No fix branch was created, committed, or pushed. No open PR linking this issue was found in the issue timeline or open-PR search at investigation time.
7. Verification
The same agent repeated the diagnostic in a second clean checkout at the recorded commit, with a new dependency installation and build. This is a repeat run, not independent verification. Both runs produced identical card/header/disclosure classes and passed all 19 tests in the existing banner suite. The public report’s verdict is limited to this repeated component evidence.
No temporary ports or runtime data were reused because neither run started a server. Production source was unchanged in both checkouts; only the diagnostic test fixture/logging was modified. Build-generated route-tree churn is unrelated and is excluded from the report and any patch.
8. Related issues
A small repository issue search for border-related UI reports found no demonstrated duplicate. The reported historical desktop state was not accessed, and external issue-data links were not fetched.
9. Appendix and limits
Trust boundary: issue content was treated solely as untrusted claims, never executed. Source evidence comes from trusted main. Only source-generated diagnostic code was run. No real user data, credentials, personal paths, runtime identifiers, or raw logs are published.
Commands performed: trusted-main fetch; two detached worktree creations; reports clone; frozen installs; SDK build/build:types; full Turbo builds; the diagnostic patch and Turbo test command above; compiled CSS extraction; read-only issue/type/field/label/PR metadata queries; and an attempted local headless Browser Automation session. The initial full build failed because the fresh SDK runtime was absent; explicitly building the SDK repaired setup and both full builds then passed (73 successful tasks each). This setup failure is not attributed to the reported UI defect.
Limits: no live visual reproduction, no macOS or desktop renderer check, no screenshot, no assertion about exact border thickness, no failing pre-fix visual test, and no verified production fix. The existing suite passing does not establish visual correctness.