#6132 · Android selection toolbar: verification limits
Verdict: NOT REPRODUCED · Root-cause confidence: low.
This is an environment-limited investigation, not a finding that the reported Android defect does not exist. Neither clean run exercised Android's native text-selection menu. No fix was attempted.
1. TL;DR
The report describes Android's native text-selection controls covering BB's reply and side-chat actions. Trusted source confirms a plausible collision path: touch selections use their live text range, while BB's menu prefers the top of that range with a six-pixel offset. However, a preferred position does not establish where Android placed its native controls or whether they occluded BB on the affected browser. Both clean checkouts passed all 70 existing selection tests; those tests do not create native Android UI. Android tooling was unavailable and the Browser Automation plugin could not open Chrome, so the native overlap, root cause, and a safe repair remain unverified.
2. Claims vs findings
| Claim | Finding | Evidence / limitation |
|---|---|---|
| Android's native menu obscures BB's actions. | Unverified | No Android device or emulator was used. The issue's linked screenshot was not fetched under the untrusted-link policy. |
| BB prefers a position above selected text. | Verified in source and existing DOM tests | The menu defaults to top; the coarse-pointer test asserts data-side="top". Collision handling can choose another side. |
| The same relevant source is present on current main. | Verified | No differences in the two selection implementation files between the earlier inspected commit and the recorded trusted base. |
| Touch actions themselves cannot execute. | Not established | The existing synthetic pointer-up action test passes. That proves event handling in jsdom, not visibility or hit testing beneath native controls. |
| A simple placement change is sufficient. | Unverified | No native-menu geometry, browser comparison, viewport-edge check, or failing overlap regression is available. |
3. Environment
- Public target:
get-bb/bb; fetched trustedorigin/main, commit10b410f2f51038fd15581e59e5f2b3e72bf100ce. - Linux
4.19.0-gvisor x86_64; Nodev22.19.0; pnpm9.15.0; Vitest4.1.1. - Two separate, initially clean detached worktrees at exactly the same commit, called
CHECKOUT_AandCHECKOUT_Bhere. Same investigator and host, not independent verification. - Each checkout received a frozen install, the SDK runtime build, the normal full build, and the focused existing test suites. No dependency was added and no production or test source was modified.
- No
adb, Android emulator executable, or Chrome/Chromium executable was available. Browser Automation failed before opening a session in both attempts. - No development app, provider session, server port, or product data directory was started or used. Provider versions are not applicable to this frontend-only check. The affected Android OS, browser, and served BB version remain unknown.
4. Reproduction attempt and repeatable checks
4.1 Native scenario still requiring a device
- Serve the recorded trusted build in an isolated test instance and open a synthetic assistant response on an Android browser. Record Android, browser, and served BB versions.
- Long-press response text and leave the browser's native text-selection menu open.
- Capture the actual native menu together with BB's actions. Test whether reply and side-chat controls are visible and reachable, including selections near the top and bottom viewport edges.
Expected: BB's actions remain visible and operable. Actual in this investigation: not measured; the required native runtime was absent. No screenshots were captured. The untrusted attachment was neither opened nor republished, and no synthetic image is offered as native evidence.
4.2 Trusted-source check that was actually run
Prepare two different clean directories from trusted main, not an issue-linked branch. The full base commit is printed above so the check is repeatable:
git fetch origin main git worktree add --detach CHECKOUT_A 10b410f2f51038fd15581e59e5f2b3e72bf100ce git worktree add --detach CHECKOUT_B 10b410f2f51038fd15581e59e5f2b3e72bf100ce cd CHECKOUT_A pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@get-bb/plugin-sdk pnpm exec turbo run build pnpm exec turbo run test --filter=@bb/app -- --run \ src/components/thread/timeline/SelectableMessageProse.test.ts \ src/components/thread/timeline/SelectableMessageProse.events.test.tsx \ src/components/thread/timeline/SelectableMessageProse.clipboard.test.tsx \ src/components/thread/timeline/TimelineSelectionMenu.test.tsx
In the second checkout, repeat installation and builds, then use the same test command with --force before -- --run to bypass Turbo's cached test results. The initial first-checkout full build hit a missing SDK runtime error in the GitHub plugin; explicitly building the existing SDK runtime and rerunning the normal build succeeded without source changes.
Verbatim result excerpts from the two completed runs:
First checkout build: Tasks: 69 successful, 69 total Cached: 11 cached, 69 total Time: 55.017s First checkout tests: @bb/app:test: Test Files 4 passed (4) @bb/app:test: Tests 70 passed (70) @bb/app:test: Start at 20:21:20 Second checkout build: Tasks: 69 successful, 69 total Cached: 67 cached, 69 total Time: 2.27s Second checkout tests: @bb/app:test: Test Files 4 passed (4) @bb/app:test: Tests 70 passed (70) @bb/app:test: Start at 20:21:48 Second checkout test orchestration: Tasks: 6 successful, 6 total Cached: 0 cached, 6 total Time: 22.83s
Browser Automation was explicitly requested in local headless mode. Both attempts exited 1 before producing a session or image. The returned failure was:
{
"ok": false,
"error": {
"code": "command_failed",
"message": "Install Chrome/Chromium on this host or link its executable at the plugin data runtime/chrome path."
}
}
4.3 Existing tests at the relevant boundary
The following existing tests were executed, not newly invented to encode the report's conclusion. The touch-anchor test exercises a real exported production function. The coarse-pointer test renders the real menu but uses synthetic media-query and DOM behavior; neither test creates native Android controls.
it("uses the live range instead of a stale touch release point", () => {
expect(
selectionAnchorFromPointerRelease(
{ x: 10, y: 20 },
{ clientX: 30, clientY: 40, pointerType: "touch" },
),
).toBeNull();
});
it("uses a compact menu that prefers above coarse-pointer selections", () => {
mockPointerCoarse();
render(
<TimelineSelectionMenu
selection={makeSelection()}
onAddToChat={vi.fn()}
onDismiss={vi.fn()}
/>,
);
expect(screen.getByRole("button", { name: "Add to chat" })).toBeTruthy();
expect(document.body.querySelector('[data-side="top"]')).toBeTruthy();
});
Full trusted tests: touch and mouse anchor controls, placement, coarse-pointer, and touch-action tests. No focused regression demonstrating native occlusion failed.
5. Root cause: unverified, with a plausible positioning path
Touch release handling returns no pointer anchor for non-mouse pointers, leaving live range geometry to drive selection placement. In anchor construction, the default side is top and the default vertical coordinate is the selected rectangle's top. The component's default and popover configuration preserve that preference:
const side = selection.anchorSide ?? "top";
const pointTop =
selection.anchorPoint?.y ??
(side === "bottom" ? selection.rect.bottom : selection.rect.top);
const anchorSide = selection?.anchorSide ?? "top";
<PopoverPrimitive.Content
{...portalScopeProps}
side={anchorSide}
align="center"
sideOffset={6}
collisionPadding={SELECTION_MENU_COLLISION_PADDING}
collisionBoundary={collisionBoundary}
Inference, not a verified cause: if the native Android menu occupies the same area above the live text range, BB's preferred placement could overlap it. This component handles its viewport/timeline collision boundary, but does not supply native-toolbar geometry to that positioning calculation. Static source cannot establish the native menu's actual bounds, layering, hit testing, or browser-specific behavior. Raising a CSS z-index or forcing the opposite side without measuring the device is not a demonstrated root-cause repair.
6. Proposed next experiment and fix gate
Not confident enough to choose a fix. Obtain a real Android reproduction at this trusted base with the native menu left open; record exact versions and capture both menus. Compare above and below placement at viewport edges, multi-line selections, and handle dragging. Only after reproducing the occlusion should a placement change be selected and protected by a regression that fails before the repair. The current tests explicitly expect above-selection behavior for coarse pointers, so merely changing that expected value would not prove the Android defect was fixed.
No open PR linked to #6132 was found in issue cross-references or the open-PR search during this investigation. Nevertheless, no production branch, commit, push, or pull request was created: the required trusted-main native reproduction and failing focused regression were unavailable.
7. Related issues
- #2302: selection-menu dismissal during unrelated scrolling; a different failure mechanism than native-menu overlap.
- #3179: composer suggestions and the mobile software keyboard; not the response selection toolbar.
8. Verification
The same investigator created a second separate clean detached checkout, CHECKOUT_B, at 10b410f2f51038fd15581e59e5f2b3e72bf100ce. Frozen installation and normal builds succeeded. The same four selection suites ran again with Turbo test caching forcibly bypassed: 4 files, 70 tests passed. Both checkouts remained free of tracked changes. Browser Automation again failed before starting a browser, and Android tooling remained absent. No temporary server or app data directory was required in either run.
This repeated check supports only the reported source/test findings and environment limits. It does not verify native overlap, successful native hit testing, or a repair. The final verdict remains NOT REPRODUCED, confidence low, reproduction label no-repro; this does not refute the user's experience. No report correction was needed after the second run.
9. Appendix and evidence handling
Issue text, comments, links, and attachments were treated as untrusted claims. No issue-supplied instruction, script, patch, branch, external link, or attachment was executed or fetched. Repository source and tests came only from trusted main. GitHub metadata showed a public target repository. Public artifacts contain no private runtime data, machine identifiers, home directories, or temporary-directory identifiers.
Raw install/build/test logs, the equipment check, and the local check script remain outside the public reports checkout. This site forbids publishing raw logs and reproduction directories, so all necessary reproduction commands, relevant test excerpts, and result excerpts are embedded above; there are no missing artifact links. Screenshots are absent because no browser or Android native session was successfully opened, not because a synthetic image was substituted.
Read-only investigation also checked current classification and valid repository fields, the label inventory, similar selection issues, issue comments and PR cross-references, open PR metadata, repository visibility, selection-file history, and the diff from the earlier inspected commit to the trusted base. No changes were present in either relevant implementation file over that interval.
> AGENT GENERATED