← reports

#7549 · Native keyboard activation in a split app window

Bug High Effort: Medium mobile no-repro · open issue

2026-11-14 · trusted main eb43faae3f540bdd4b64d5d202773b5278ae0adc

Verdict: NOT REPRODUCED · Root-cause confidence: low

Hardware-blocked investigation, not evidence that the reported crash is absent or fixed.

1. TL;DR

The issue describes a native process crash when the composer first opens the keyboard in a split app window. Trusted main does render the page through React Native WebView inside a keyboard provider, but that alone does not establish a native layout failure. This Linux host has no Xcode, Apple device tooling, or Maestro, so neither native keyboard activation nor the reported device configuration could be tested. A second clean checkout at the same trusted commit produced the same blocked prerequisite result. All 356 existing mobile JavaScript tests passed; they do not exercise UIKit. No production fix or pull request is justified by this evidence.

2. Claims vs findings

Reported claim, paraphrasedStatusFinding
First composer focus crashes only in the reported split-window configuration.UnverifiedNeither attempt reached native application launch; both returned prerequisite skip code 77.
The native keyboard's initial split transition corrupts layout state.UnverifiedNo independently captured crash report, debugger trace, or UIKit runtime is available here. The supplied stack is a claim, not a reproduced trace.
A native-only WebView sample exhibits the same fault.UnverifiedNo such sample was executed; issue-supplied code and branches were not run.
Delaying a private native keyboard update fixes the fault.UnverifiedThe linked PR was read statically only. No timing or device regression test was possible.
The composer is hosted in a native WebView with keyboard integration.VerifiedThe main-branch imports, root providers, platform wrapper, and WebView render path support this architecture.

3. Environment

4. Minimal reproduction attempt

This is a repeatable prerequisite probe, not a regression test or a reproduction of the crash. Save the linked script outside a clean target checkout and run:

git clone https://github.com/get-bb/bb.git bb-7549
cd bb-7549
git checkout --detach eb43faae3f540bdd4b64d5d202773b5278ae0adc
sh /path/to/check-native-prerequisites.sh
printf 'exit_code=%s\n' "$?"

Expected native behavior: focusing the composer opens a usable keyboard without terminating the app. Actual observation: native focus was not attempted, because the required runtime was unavailable. Both probes printed the following exact output:

base=eb43faae3f540bdd4b64d5d202773b5278ae0adc
tracked_tree_clean=yes
os=Linux
xcodebuild=missing
xcrun=missing
maestro=missing
SKIP: Native keyboard reproduction cannot start; Apple tooling is unavailable.
exit_code=77

Artifacts: probe script, primary output, second clean output, mobile test results. There is no screenshot or video: no native app was launched, and a desktop browser image would not establish this failure.

Probe source

#!/bin/sh
set -eu

printf 'base=%s\n' "$(git rev-parse HEAD)"
if git diff --quiet HEAD --; then
  printf 'tracked_tree_clean=yes\n'
else
  printf 'tracked_tree_clean=no\n'
  exit 1
fi
printf 'os=%s\n' "$(uname -s)"
missing_tools=0
for tool in xcodebuild xcrun maestro; do
  if command -v "$tool" >/dev/null 2>&1; then
    printf '%s=available\n' "$tool"
  else
    printf '%s=missing\n' "$tool"
    missing_tools=1
  fi
done
if [ "$missing_tools" -ne 0 ]; then
  printf 'SKIP: Native keyboard reproduction cannot start; Apple tooling is unavailable.\n'
  exit 77
fi
xcrun simctl list devices available
printf 'MANUAL: Verify a suitable physical device and OS before attempting native split-screen focus.\n'
exit 77

5. Root cause

Not established. Repository inspection establishes the relevant integration boundary, not an operating-system defect:

The proposed explanation is a timing-dependent native layout fault during keyboard attachment. That remains a hypothesis: TypeScript tests or an emulated layout model cannot demonstrate a UIKit memory fault. Neither the first attachment condition nor the proposed deferral was observed here.

6. Proposed fix / next experiment

Not confident enough to prescribe a production fix. Build this trusted main commit on an isolated Apple development machine and verify a suitable physical device and OS. Compare cold-launch composer focus in full-screen and split-window modes; collect a symbolicated crash and native keyboard/window lifecycle trace. Repeat on a new install/session, then minimize the native host without changing unrelated keyboard observers or layout policy. Only after a faithful failing regression exists should a narrowly scoped mitigation be evaluated against ordinary phones, window resizing, rotations, and repeated focus.

No branch was created and no fix was pushed. The required simple-fix condition, a bug reproduced on trusted main with a failing regression test, is not met.

7. Linked PR review

PR #7550 — static review only

GitHub metadata reported CLOSED, not merged during this investigation. No open PR was found by the issue cross-reference or issue-number search. The four-file diff adds a local Expo native module that replaces two private UIKit method implementations and defers one update while a window-attachment callback is executing. Its branch was never checked out, built, or executed.

Verdict: insufficient trusted runtime evidence to determine correctness or safety. These are static observations, not proof that the implementation fixes or causes a crash. No linked PR code was run.

8. Related issues

A small sample of existing mobile issues was reviewed for label and property conventions. No duplicate of this native keyboard crash was established, and this investigation does not claim any other report validates it.

9. Verification

The same agent created a second clean detached worktree named verify at the recorded trusted base using git worktree add --detach <temporary-directory>/verify eb43faae3f540bdd4b64d5d202773b5278ae0adc. It ran sh ../reports/issues/7549/repro/check-native-prerequisites.sh from that checkout. The tracked tree was clean; the output and exit code 77 matched the primary attempt exactly. This repeats the blocked attempt, not the native crash, and is not an independent review.

No second ports or data directory were allocated because neither attempt could launch a native process. Source permalinks were checked against the base files. The final verdict was constrained to NOT REPRODUCED; no claim of a confirmed fix or confirmed root cause survived verification.

10. Appendix: commands and validation

Trust boundary: issue content, its supplied trace, and linked PR content were treated as untrusted claims. No issue-supplied script, patch, external URL, binary, or branch was executed. All runtime checks used trusted main and the prerequisite probe authored for this investigation.

AGENT GENERATED