← reports

#7496 · Responsive context layout commits after resize delivery

BugPriority: LowEffort: LowuiGitHub issueNovember 13, 2026 · base 070bf3df0aae0f009488f29d8941f5fec8532a93

Verdict: PARTIALLY REPRODUCED · Root-cause confidence: high for deferred DOM commitment; native-browser frame timing remains unverified.

1. TL;DR

The context card and transcript inset are supposed to choose their layout from the current pane width. A focused component reproduction shows that the actual production component still exposes the previous card/inset state immediately after its resize callback returns. All four tested band crossings retain the previous state until React commits the scheduled update; two same-band controls pass. The existing component suite also passes. The result repeats in a second clean checkout, but this host has no available Chrome executable, so no claim is made about an exact one-frame delay, the animated right-panel journey, or desktop rendering.

2. Claims vs findings

ClaimStatusEvidence
Card and inset can remain on the preceding width band.Verified at component boundaryFour deterministic stale-DOM observations, then correct settled DOM, in both checkouts.
Crossings, rather than all resizes, trigger the mismatch.Verified in controlled testFour crossing cases fail; 1600 → 1700 and 1200 → 1250 controls pass.
Widths select gutter, shifted transcript, and banner layouts.Verified in sourceGutter at ≥1384px, shift at 1072–1383px, banner below 1072px.
Exactly one painted frame is wrong while opening/closing the right panel at specific window widths.UnverifiedNo native browser, panel animation, or window-width matrix was run. The reproduction uses pane widths and a controlled observer delivery, not screen widths.
Released desktop behavior matches source.UnverifiedOnly trusted main source was executed.

3. Environment

4. Minimal reproduction

  1. Clone the trusted repository and detach at the recorded main commit:
    git clone https://github.com/get-bb/bb.git bb-7496
    cd bb-7496
    git checkout --detach 070bf3df0aae0f009488f29d8941f5fec8532a93
    pnpm install --frozen-lockfile --prefer-offline
    pnpm exec turbo run build --filter=@get-bb/plugin-sdk
    pnpm exec turbo run build
  2. Copy the complete reproduction test embedded below into apps/app/src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx. This file was authored from trusted repository source and is not copied from an issue or pull request.
  3. Run:
    pnpm exec turbo run test --filter=@bb/app -- --run src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx src/components/plugin/PluginThreadContextCard.test.tsx
  4. Expected: the inset and mounted/visible card match the new band at observer return. Actual: four crossing cases fail, two same-band controls pass, and all 16 existing tests pass. The settled-DOM assertion passes in every case before the stale-delivery assertion is checked.
Test Files  1 failed | 1 passed (2)
     Tests  4 failed | 18 passed (22)
Exit status: 1 (expected regression failure)
Pane width transitionObserved at resize delivery returnObserved after React settles
1600 → 12000px; visible312px; visible
1200 → 900312px; visible0px; absent
900 → 12000px; absent312px; visible
1200 → 1600312px; visible0px; visible
Measured DOM states — not a browser screenshotWidth (px)At observer return: inset / cardAfter React settles: inset / card1600 → 12000px / visible312px / visible 1200 → 900312px / visible0px / absent 900 → 12000px / absent312px / visible 1200 → 1600312px / visible0px / visibleSame observations in two checkouts. No browser paint or frame timing was measured.
Diagnostic visualization generated from the recorded DOM observations. This is not a browser screenshot, an animation capture, or proof of a painted frame.

The observer stand-in only delivers the production callback; it does not implement card behavior. The real provider, content detection, card, preference default, and inset hook render through React DOM. The test samples inside act before its final flush, then checks settled state after the flush. This proves the update is not synchronously committed by the callback; it deliberately does not establish native scheduling or paint order.

Complete reproduction test
// @vitest-environment jsdom
import { act, cleanup, render, screen } from "@testing-library/react";
import { createStore, Provider } from "jotai";
import { MemoryRouter } from "react-router-dom";
import { afterEach, expect, it, vi } from "vitest";
import { TooltipProvider } from "@bb/shared-ui/tooltip";
import {
  ThreadContextCard,
  ThreadContextCardProvider,
  useThreadContextCardContentInset,
} from "./PluginThreadContextCard";

function Transcript() {
  const inset = useThreadContextCardContentInset();
  return <main aria-label="Transcript" style={{ paddingInlineEnd: inset }} />;
}

function Content() {
  return <p>Repository information</p>;
}

afterEach(() => {
  cleanup();
  vi.restoreAllMocks();
  vi.unstubAllGlobals();
});

it.each([
  { start: 1600, end: 1200, initialInset: "0px", inset: "312px", card: "visible" },
  { start: 1200, end: 900, initialInset: "312px", inset: "0px", card: "absent" },
  { start: 900, end: 1200, initialInset: "0px", inset: "312px", card: "visible" },
  { start: 1200, end: 1600, initialInset: "312px", inset: "0px", card: "visible" },
  { start: 1600, end: 1700, initialInset: "0px", inset: "0px", card: "visible" },
  { start: 1200, end: 1250, initialInset: "312px", inset: "312px", card: "visible" },
])("commits card and transcript before resize delivery returns: $start -> $end", (scenario) => {
  const deliveries = new Map<ResizeObserver, () => void>();
  vi.stubGlobal("ResizeObserver", class implements ResizeObserver {
    constructor(private callback: ResizeObserverCallback) {}
    observe(target: Element) {
      if (target.hasAttribute("data-scroll-overlay")) {
        deliveries.set(this, () => this.callback([], this));
      }
    }
    disconnect() {
      deliveries.delete(this);
    }
    unobserve() {}
  });
  const width = vi.spyOn(HTMLElement.prototype, "clientWidth", "get");
  width.mockReturnValue(scenario.start);
  render(
    <Provider store={createStore()}>
      <TooltipProvider>
        <MemoryRouter>
          <ThreadContextCardProvider
            enabled
            threadId="resize-repro-thread"
            projectId="resize-repro-project"
            environment={null}
            coreRows={[{ id: "info", group: "info", order: 1, component: Content }]}
            coreSections={[]}
          >
            <Transcript />
            <div data-scroll-overlay=""><ThreadContextCard /></div>
          </ThreadContextCardProvider>
        </MemoryRouter>
      </TooltipProvider>
    </Provider>,
  );
  const transcript = screen.getByRole("main", { name: "Transcript" });
  const readDom = () => {
    const card = document.querySelector<HTMLElement>("[data-thread-context-card]");
    return {
      inset: transcript.style.paddingInlineEnd,
      card: card === null ? "absent" : card.hidden ? "hidden" : "visible",
    };
  };
  expect(transcript.style.paddingInlineEnd).toBe(scenario.initialInset);
  expect(deliveries.size).toBe(1);
  let delivered = readDom();
  act(() => {
    width.mockReturnValue(scenario.end);
    for (const notify of [...deliveries.values()]) notify();
    delivered = readDom();
  });
  const expected = { inset: scenario.inset, card: scenario.card };
  expect(readDom()).toEqual(expected);
  console.info(JSON.stringify({ start: scenario.start, end: scenario.end, delivered, settled: readDom() }));
  expect(delivered).toEqual(expected);
});

5. Root cause

The production layout effect finds the scroll overlay, reads its width, and calls a React state setter from the ResizeObserver callback. That update does not require a synchronous DOM commit before callback return:

  useLayoutEffect(() => {
    const overlay = probeRef.current?.closest<HTMLElement>(
      "[data-scroll-overlay]",
    );
    if (!overlay || !setLayout) return;
    const measure = () =>
      setLayout(resolveThreadContextCardLayout(overlay.clientWidth));
    measure();
    const observer = new ResizeObserver(measure);
    observer.observe(overlay);
    return () => observer.disconnect();
  }, [setLayout]);

The width resolver selects three discrete bands using a 760px transcript maximum and 312px reserved card width. The inset hook derives the transcript reserve from React layout state; the card branch also depends on that state. When the DOM width changes but the state commit is deferred, both consumers still describe the previous band. The measured observations match this mechanism exactly.

The real transcript path reads the inset in ThreadScreen, passes it to the scroll surface at the thread view, and renders it as paddingInlineEnd. No daemon, database, or protocol behavior is involved.

6. Proposed fix

Ensure a changed width band is committed synchronously when native resize delivery occurs, while keeping the initial layout-effect measurement separate and avoiding redundant synchronous commits within a band. React DOM already supplies the required synchronous-commit primitive, so no dependency is needed. Validate the native right-panel animation and controls in a browser before claiming exact-frame correctness. No production fix was attempted here: an existing open pull request already links this issue, and the visual reproduction remains partial.

7. PR review

#7497 — static review only

GitHub metadata identifies this as an open pull request linked to #7496. Its two-file diff separates initial measurement from subsequent resize notifications, compares the next band with the last measured band, and requests a synchronous React DOM commit only for a change. That design addresses the deferred-commit mechanism found in trusted main. No production correctness blocker is demonstrated by this static review; it is not a runtime validation or approval. The added PR test checks callback-return DOM, but does not verify a native browser paint. No PR branch, script, patch, or test was checked out or run.

Test-maintenance finding (low): the new test restores its global ResizeObserver stub only after its final assertion. A failed assertion skips that cleanup and can affect later tests in the file. Prefer unconditional teardown. This observation does not change the root-cause verdict.

8. Related work

Trusted file history attributes banner behavior to merged PR #6875 (November 2, 2026), and empty-card hiding to merged PR #6618 (October 30, 2026). These are pull requests, not separately resolved bug issues. Their branches were not run.

9. Verification

The same agent repeated the reproduction in a second, newly created temporary worktree detached at 070bf3df0aae0f009488f29d8941f5fec8532a93. A fresh frozen install and full build completed there before the authored test was added. The exact command shown above ran against otherwise unchanged production source. It again exited 1 with four crossing failures, two passing controls, and 16 passing existing component tests. Every recorded delivered/settled DOM pair matched the first run. This is a second clean run by the same agent, not an independent review.

Scope correction: the published verdict is partial rather than full reproduction because the observer is controlled, the scheduler is held by the test boundary, and Chrome was unavailable. Neither an exact frame count nor a native visual artifact is asserted.

10. Appendix

First run: full sanitized output
   • turbo 2.11.10
   • Packages in scope: @bb/app
   • Running test in 1 package
   • Remote caching disabled

//:ensure-native-modules: cache bypass, force executing 790e4cbb3042bbf6
@bb/process-utils:generate:profile-worker: cache miss, executing dff8e18a707b4f7e
@bb/templates:generate:plugin-scaffold: cache miss, executing e906acba883a9af7
@bb/plugin-build:generate: cache miss, executing 7f04902f4a7caca9
@bb/templates:generate:templates: cache miss, executing 51a99554322d3554
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <first-checkout>/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold: 
@bb/plugin-build:generate: 
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <first-checkout>/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate: 
@bb/process-utils:generate:profile-worker: 
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <first-checkout>/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker: 
@bb/templates:generate:templates: 
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <first-checkout>/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates: 
//:ensure-native-modules: 
//:ensure-native-modules: > bb@ ensure-native-modules <first-checkout>
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules: 
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote <first-checkout>/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
@bb/app:test: cache miss, executing b1119991d94717e3
@bb/app:test: 
@bb/app:test: > @bb/app@0.0.1 test <first-checkout>/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "--run" "src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx" "src/components/plugin/PluginThreadContextCard.test.tsx"
@bb/app:test: 
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test:   - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test:   - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test:   - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: 
@bb/app:test:  RUN  v4.1.12 <first-checkout>/apps/app
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1600 -> 1200
@bb/app:test: {"start":1600,"end":1200,"delivered":{"inset":"0px","card":"visible"},"settled":{"inset":"312px","card":"visible"}}
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 900
@bb/app:test: {"start":1200,"end":900,"delivered":{"inset":"312px","card":"visible"},"settled":{"inset":"0px","card":"absent"}}
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 900 -> 1200
@bb/app:test: {"start":900,"end":1200,"delivered":{"inset":"0px","card":"absent"},"settled":{"inset":"312px","card":"visible"}}
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 1600
@bb/app:test: {"start":1200,"end":1600,"delivered":{"inset":"312px","card":"visible"},"settled":{"inset":"0px","card":"visible"}}
@bb/app:test: 
@bb/app:test:  ❯ |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx (6 tests | 4 failed) 177ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 1600 -> 1200 127ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 1200 -> 900 12ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 900 -> 1200 9ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 1200 -> 1600 14ms
@bb/app:test:    ✓ commits card and transcript before resize delivery returns: 1600 -> 1700 8ms
@bb/app:test:    ✓ commits card and transcript before resize delivery returns: 1200 -> 1250 6ms
@bb/app:test:  ✓ |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.test.tsx (16 tests) 328ms
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 4 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1600 -> 1200
@bb/app:test: AssertionError: expected { inset: '0px', card: 'visible' } to deeply equal { inset: '312px', card: 'visible' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test:     "card": "visible",
@bb/app:test: -   "inset": "312px",
@bb/app:test: +   "inset": "0px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/4]⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 900
@bb/app:test: AssertionError: expected { inset: '312px', card: 'visible' } to deeply equal { inset: '0px', card: 'absent' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test: -   "card": "absent",
@bb/app:test: -   "inset": "0px",
@bb/app:test: +   "card": "visible",
@bb/app:test: +   "inset": "312px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/4]⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 900 -> 1200
@bb/app:test: AssertionError: expected { inset: '0px', card: 'absent' } to deeply equal { inset: '312px', card: 'visible' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test: -   "card": "visible",
@bb/app:test: -   "inset": "312px",
@bb/app:test: +   "card": "absent",
@bb/app:test: +   "inset": "0px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/4]⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 1600
@bb/app:test: AssertionError: expected { inset: '312px', card: 'visible' } to deeply equal { inset: '0px', card: 'visible' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test:     "card": "visible",
@bb/app:test: -   "inset": "0px",
@bb/app:test: +   "inset": "312px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/4]⎯
@bb/app:test: 
@bb/app:test: 
@bb/app:test:  Test Files  1 failed | 1 passed (2)
@bb/app:test:       Tests  4 failed | 18 passed (22)
@bb/app:test:    Start at  08:42:02
@bb/app:test:    Duration  4.25s (transform 2.80s, setup 294ms, import 4.69s, tests 506ms, environment 1.80s)
@bb/app:test: 
@bb/app:test:  ELIFECYCLE  Test failed. See above for more details.
@bb/app#test:  ERROR  command (<first-checkout>/apps/app) /usr/local/bin/pnpm run test --run src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx src/components/plugin/PluginThreadContextCard.test.tsx exited (1)

 Tasks:    5 successful, 6 total
Cached:    0 cached, 6 total
  Time:    9.103s 
Failed:    @bb/app#test

 ERROR  run failed: command  exited (1)
Second clean run: full sanitized output
   • turbo 2.11.10
   • Packages in scope: @bb/app
   • Running test in 1 package
   • Remote caching disabled, using shared worktree cache

//:ensure-native-modules: cache bypass, force executing 790e4cbb3042bbf6
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs e906acba883a9af7
@bb/process-utils:generate:profile-worker: cache hit, replaying logs dff8e18a707b4f7e
@bb/process-utils:generate:profile-worker: 
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <first-checkout>/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker: 
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <first-checkout>/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:templates: cache hit, replaying logs 51a99554322d3554
@bb/templates:generate:templates: 
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <first-checkout>/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates: 
@bb/plugin-build:generate: cache hit, replaying logs 7f04902f4a7caca9
@bb/plugin-build:generate: 
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <first-checkout>/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate: 
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote <first-checkout>/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
//:ensure-native-modules: 
//:ensure-native-modules: > bb@ ensure-native-modules <second-checkout>
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules: 
@bb/app:test: cache miss, executing b1119991d94717e3
@bb/app:test: 
@bb/app:test: > @bb/app@0.0.1 test <second-checkout>/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "--run" "src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx" "src/components/plugin/PluginThreadContextCard.test.tsx"
@bb/app:test: 
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test:   - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test:   - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test:   - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: 
@bb/app:test:  RUN  v4.1.12 <second-checkout>/apps/app
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1600 -> 1200
@bb/app:test: {"start":1600,"end":1200,"delivered":{"inset":"0px","card":"visible"},"settled":{"inset":"312px","card":"visible"}}
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 900
@bb/app:test: {"start":1200,"end":900,"delivered":{"inset":"312px","card":"visible"},"settled":{"inset":"0px","card":"absent"}}
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 900 -> 1200
@bb/app:test: {"start":900,"end":1200,"delivered":{"inset":"0px","card":"absent"},"settled":{"inset":"312px","card":"visible"}}
@bb/app:test: 
@bb/app:test: stdout | src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 1600
@bb/app:test: {"start":1200,"end":1600,"delivered":{"inset":"312px","card":"visible"},"settled":{"inset":"0px","card":"visible"}}
@bb/app:test: 
@bb/app:test:  ❯ |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx (6 tests | 4 failed) 190ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 1600 -> 1200 136ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 1200 -> 900 13ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 900 -> 1200 11ms
@bb/app:test:    × commits card and transcript before resize delivery returns: 1200 -> 1600 10ms
@bb/app:test:    ✓ commits card and transcript before resize delivery returns: 1600 -> 1700 12ms
@bb/app:test:    ✓ commits card and transcript before resize delivery returns: 1200 -> 1250 7ms
@bb/app:test:  ✓ |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.test.tsx (16 tests) 340ms
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 4 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1600 -> 1200
@bb/app:test: AssertionError: expected { inset: '0px', card: 'visible' } to deeply equal { inset: '312px', card: 'visible' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test:     "card": "visible",
@bb/app:test: -   "inset": "312px",
@bb/app:test: +   "inset": "0px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/4]⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 900
@bb/app:test: AssertionError: expected { inset: '312px', card: 'visible' } to deeply equal { inset: '0px', card: 'absent' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test: -   "card": "absent",
@bb/app:test: -   "inset": "0px",
@bb/app:test: +   "card": "visible",
@bb/app:test: +   "inset": "312px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/4]⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 900 -> 1200
@bb/app:test: AssertionError: expected { inset: '0px', card: 'absent' } to deeply equal { inset: '312px', card: 'visible' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test: -   "card": "visible",
@bb/app:test: -   "inset": "312px",
@bb/app:test: +   "card": "absent",
@bb/app:test: +   "inset": "0px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/4]⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx > commits card and transcript before resize delivery returns: 1200 -> 1600
@bb/app:test: AssertionError: expected { inset: '312px', card: 'visible' } to deeply equal { inset: '0px', card: 'visible' }
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test:   {
@bb/app:test:     "card": "visible",
@bb/app:test: -   "inset": "0px",
@bb/app:test: +   "inset": "312px",
@bb/app:test:   }
@bb/app:test: 
@bb/app:test:  ❯ src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx:89:21
@bb/app:test:      87|   expect(readDom()).toEqual(expected);
@bb/app:test:      88|   console.info(JSON.stringify({ start: scenario.start, end: scenario.e…
@bb/app:test:      89|   expect(delivered).toEqual(expected);
@bb/app:test:        |                     ^
@bb/app:test:      90| });
@bb/app:test:      91|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/4]⎯
@bb/app:test: 
@bb/app:test: 
@bb/app:test:  Test Files  1 failed | 1 passed (2)
@bb/app:test:       Tests  4 failed | 18 passed (22)
@bb/app:test:    Start at  08:42:50
@bb/app:test:    Duration  4.19s (transform 2.73s, setup 295ms, import 4.55s, tests 529ms, environment 1.84s)
@bb/app:test: 
@bb/app:test:  ELIFECYCLE  Test failed. See above for more details.
@bb/app#test:  ERROR  command (<second-checkout>/apps/app) /usr/local/bin/pnpm run test --run src/components/plugin/PluginThreadContextCard.resize-repro.test.tsx src/components/plugin/PluginThreadContextCard.test.tsx exited (1)

 Tasks:    5 successful, 6 total
Cached:    4 cached, 6 total
  Time:    7.351s 
Failed:    @bb/app#test

 ERROR  run failed: command  exited (1)

Other investigation commands: read issue properties/comments and linked PR metadata via GitHub API; fetch trusted main; inspect file history and component callers; frozen installs; full Turbo builds; attempt BB Browser Automation; compare the two test logs. No secrets or issue-provided executable content were used. Issue text and PR diffs were treated only as untrusted claims; instructions within them were ignored.

Reproduction label: partial-repro. Classification: Bug / Low priority / Low effort / ui. No duplicate fix pull request was opened.