#7549 · Native keyboard activation in a split app window
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, paraphrased | Status | Finding |
|---|---|---|
| First composer focus crashes only in the reported split-window configuration. | Unverified | Neither attempt reached native application launch; both returned prerequisite skip code 77. |
| The native keyboard's initial split transition corrupts layout state. | Unverified | No 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. | Unverified | No such sample was executed; issue-supplied code and branches were not run. |
| Delaying a private native keyboard update fixes the fault. | Unverified | The 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. | Verified | The main-branch imports, root providers, platform wrapper, and WebView render path support this architecture. |
3. Environment
- Repository: public
get-bb/bb; both checkouts ateb43faae3f540bdd4b64d5d202773b5278ae0adc, fetched from the target repository's main branch. - Execution host: Linux; Node
v22.19.0; pnpm9.15.0. - Missing:
xcodebuild,xcrun,maestro. No suitable Apple device/runtime was accessed or verified. - Reported hardware, OS build, window geometry, and app version remain unverified; no claims about their availability are made.
- No app/server instance, provider session, listening port, browser, or runtime data directory was created. The user's real instance and stored data were not used.
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:
- RootLayout wraps the application in
KeyboardProvider. - ProfileWebViewScreen renders the native shell WebView inside
WebViewKeyboardFrame; ShellWebView delegates toWebView. - The default platform wrapper is just
export { View as WebViewKeyboardFrame } from "react-native";. An Android-only wrapper is not evidence for this iOS report. - The existing shell-send flow focuses and types in the composer, but does not set up the reported native split-window arrangement.
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.
- Validation concern: the new Swift file's
install()path has no explicit device/OS restriction; successful runtime method lookup and encoding checks are the activation gates. A device-specific fix claim needs evidence for the broader interception surface. - Test gap: the diff includes no executable regression proving native first-focus failure before the change or success afterward.
- Documentation mismatch: the podspec describes skipping updates in a narrower window, while the Swift replacement defers updates based on lifecycle nesting rather than checking window width.
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
- Read issue properties, comments, valid classifications, similar mobile issues, and PR cross-references through GitHub read APIs. There were no issue comments at review time.
- Fetched main directly from
https://github.com/get-bb/bb.git; verifiedFETCH_HEAD,origin/main, and the primary checkout match the recorded commit. pnpm install --frozen-lockfile --prefer-offline: completed. No dependency or lockfile change was made.pnpm exec turbo run build: failed inbb-plugin-githubbecause its installed SDK lacked builtprocess.jsandhost.jsartifacts. This build failure is not evidence for the native crash.pnpm exec turbo run build:types --filter=@get-bb/plugin-sdk: passed, 4 successful tasks. The whole-repository build was not repeated.pnpm exec turbo run test --filter=@bb/mobile: passed, 49 files and 356 tests. These are JavaScript tests, not native keyboard regression coverage.- Created the second clean worktree, ran the same prerequisite probe twice, and saved both actual outputs. Inspected trusted source with
git show, line-numbered reads, search, and path-specific history. gh pr view 7550 --repo get-bb/bbandgh pr diff 7550 --repo get-bb/bb: metadata/static diff reads only.git diff --check: passed for the target checkout; no tracked production or test files were modified.
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