Repository navigation
Conversation
Update to upstream 5252884. Adapt hardware terminal input to the current composition, submission, and keyboard dismissal lifecycle; cover rapid erases, stale callbacks, and pending agent sends.
Use the typed native view manager and existing focus target contract. Reset the explicit keyboard latch before a modal renders, and keep unavoidable render-fixture assertions locally documented.
Update to b3aa719 and retain the verified native hardware-key input path. Drop unused alternative focus hooks so the upstream PR contains only the active input integration.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
The Android OTA control-key path merged in #31666. Thank you for the composition-guard work; zenghaolun02 is credited as a co-author on the merged commit. Keeping this PR open because its iOS/native hardware-keyboard and focus-protection scope is not fully superseded by that Android-only capture path. Any follow-up should retain that remaining scope and avoid duplicating the merged Android OTA implementation. |
ELI5
An external keyboard should control the terminal, not just the hidden text field used for typing. This forwards navigation and control keys to the active terminal while leaving normal typing, Return, system shortcuts, and input-method composition with the native text input.
What Changed
Why
React Native's TextInput callbacks alone do not supply all external-keyboard navigation/control events. Capturing only these keys in a wrapper keeps the native text input responsible for printable text and IME behavior, instead of replacing the input system or creating a second terminal transport.
Linked Issue
Fixes #28197.
Related: #24943, #9000, and #9702. This does not add application-wide worktree/tab shortcuts or native-chat send shortcuts.
Visual Proof
The reporter confirmed that the original input fix works on their physical iPad. No before/after keyboard recording is attached yet; the visual-proof checklist remains open. Home-screen screenshots are not presented as proof of hardware-keyboard or IME behavior.
Testing
Validation after integrating upstream
b3aa719a57:Native source-contract tests check wiring, not actual IME event delivery. Android native execution, full desktop builds, SSH end-to-end input, and a complete new-build physical keyboard/IME pass were not performed. Existing RPC formats are unchanged.
AI Disclosure
Implemented and reviewed with OpenAI Codex assistance. The reporter independently confirmed the original iPad fix. Test/build results and remaining verification limits are reported above.
Review
Reviewed key ownership, composition pass-through, repeated-key ordering, stale callbacks, and keyboard-dismissal races. Removed unused alternative focus hooks before submission.
Agent skill upstream boundary
Notes
Only mobile source/dependency changes are included. Personal signing, local bundle identifiers, provisioning, build artifacts, and pairing data are not committed. Key events reuse the existing host-owned input path for local and remote terminals.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — scoped checks above passed; full repository matrix is left to CI