Skip to content

feat(mobile): add hardware keyboard navigation - #18195

Open
isairz wants to merge 6 commits into
stablyai:mainfrom
isairz:feature-mobile-add-hardware-keyboard-navigation
Open

isairz wants to merge 6 commits into
stablyai:mainfrom
isairz:feature-mobile-add-hardware-keyboard-navigation

Conversation

@isairz

@isairz isairz commented Sep 2, 2026 •

Copy link
Copy Markdown

ELI5

Orca mobile now responds to the same physical-keyboard workspace and tab shortcuts as desktop, while still letting the terminal own conflicting keys when the user chooses Terminal first.

What Changed

  • Added a scoped Expo native module for application-level key commands and physical-keyboard detection on Android and iOS.
  • Added worktree and tab navigation, index selection, recent-history navigation, and a hardware-keyboard settings screen.
  • Preserved rendered sidebar order and selection while navigating.
  • Kept Native Chat and terminal inputs ready for immediate physical-keyboard typing without forcing the software keyboard open.
  • Made iOS command dispatch resilient to UIKit copying UIKeyCommand instances and preserved terminal input across short tab-snapshot lag.
  • Applied terminal shortcut policy to both tab and worktree scopes, including nested-scope precedence.
  • Guarded worktree catalog refreshes against stale host responses and made preference persistence failure-safe.

Why

Issue #18041 asks for desktop keyboard-navigation parity on mobile devices with physical keyboards. Native key interception is required because React Native text inputs and terminal webviews otherwise consume or reroute these chords. Route-scoped registration keeps the policy and handlers owned by the active mobile surface without moving terminal or navigation logic across the RPC boundary.

Linked Issue

Fixes #18041

Visual Proof

N/A

This is OS-level physical-keyboard interception and focus behavior, which a static screenshot cannot demonstrate. Physical interaction validation is documented below.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Automated:

  • pnpm test in mobile/: 508 files passed; 4,083 tests passed, 3 skipped.
  • pnpm tc
  • pnpm run check:code-quality:changed
  • git diff --check
  • Android :app:assembleDebug
  • iOS Release device build and iPad mini (A17 Pro) Simulator build

Physical devices:

  • Samsung Galaxy Fold8, unfolded, with Mokibo keyboard: repeated worktree/tab navigation, rendered-order selection, Native Chat typing, terminal Live Input, Backspace, Enter, and output rendering.
  • iPhone 16 Pro with physical keyboard: repeated worktree/tab navigation, immediate Native Chat and terminal typing, Backspace, Enter, output rendering, and lock/unlock recovery without opening the software keyboard.

AI Disclosure

Review

Please focus on native command lifecycle, nested scope precedence, terminal-first filtering, route changes during catalog refresh, and physical-keyboard focus behavior.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Native Chat and terminal input changes are limited to integration safety: app shortcuts must remain available while inputs are focused, and returning from navigation must not swallow the next physical-keyboard input or open the software keyboard. This PR does not redesign terminal behavior or change the remote wire protocol.

Cross-platform shortcut definitions remain shared. Native behavior is isolated behind the Expo module, and worktree catalog access continues through the existing RPC client, preserving remote and SSH execution boundaries.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (changed-file lint and platform builds run locally; CI covers the repository-wide gates)

…-add-hardware-keyboard-navigation

# Conflicts:
#	mobile/src/host-screen/use-host-screen-controller.ts
@isairz
isairz marked this pull request as ready for review September 3, 2026 08:24
@coderabbitai

coderabbitai Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: baa6d581-5c8d-42fa-a9d2-f99f9cb3d76a

📥 Commits

Reviewing files that changed from the base of the PR and between 8854b5d and 34ba630.

⛔ Files ignored due to path filters (1)
  • mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (47)
  • mobile/app/_layout.tsx
  • mobile/app/h/_layout.tsx
  • mobile/app/hardware-keyboard-settings.tsx
  • mobile/app/settings.tsx
  • mobile/package.json
  • mobile/packages/expo-hardware-keyboard-navigation/android/build.gradle
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/ExpoHardwareKeyboardNavigationModule.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardActivityLifecycleListener.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardNavigationPackage.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardNavigationRegistry.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardWindowCallback.kt
  • mobile/packages/expo-hardware-keyboard-navigation/expo-module.config.json
  • mobile/packages/expo-hardware-keyboard-navigation/ios/ExpoHardwareKeyboardNavigation.podspec
  • mobile/packages/expo-hardware-keyboard-navigation/ios/ExpoHardwareKeyboardNavigationModule.swift
  • mobile/packages/expo-hardware-keyboard-navigation/package.json
  • mobile/packages/expo-hardware-keyboard-navigation/src/index.ts
  • mobile/src/cache/worktree-cache.ts
  • mobile/src/hardware-keyboard/hardware-keyboard-native-compatibility.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-actions.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-bindings.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-bindings.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-preferences.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-preferences.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.ts
  • mobile/src/hardware-keyboard/mobile-session-hardware-keyboard-context.test.ts
  • mobile/src/hardware-keyboard/mobile-session-hardware-keyboard-context.ts
  • mobile/src/hardware-keyboard/mobile-tab-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/mobile-tab-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/mobile-worktree-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/mobile-worktree-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/use-hardware-keyboard-text-input-focus.ts
  • mobile/src/hardware-keyboard/use-mobile-hardware-keyboard-commands.ts
  • mobile/src/hardware-keyboard/use-mobile-hardware-keyboard-preferences.ts
  • mobile/src/hardware-keyboard/use-mobile-session-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/use-mobile-worktree-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/use-mobile-worktree-keyboard-navigation.ts
  • mobile/src/hooks/use-active-worktree-scroll.ts
  • mobile/src/host-screen/use-host-screen-controller.ts
  • mobile/src/session/MobileNativeChatComposer.test.ts
  • mobile/src/session/MobileNativeChatComposer.tsx
  • mobile/src/session/MobileSessionCommandDock.tsx
  • mobile/src/session/mobile-session-route-parity.test.ts
  • mobile/src/session/use-mobile-session-controller.ts
  • mobile/src/session/use-mobile-session-terminal-send-actions.ts
  • mobile/src/terminal/terminal-input-connection-gate.test.ts
  • mobile/src/terminal/terminal-live-input-affordance.test.ts
🚧 Files skipped from review as they are similar to previous changes (43)
  • mobile/packages/expo-hardware-keyboard-navigation/expo-module.config.json
  • mobile/packages/expo-hardware-keyboard-navigation/package.json
  • mobile/app/settings.tsx
  • mobile/src/session/use-mobile-session-controller.ts
  • mobile/app/_layout.tsx
  • mobile/package.json
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardActivityLifecycleListener.kt
  • mobile/packages/expo-hardware-keyboard-navigation/ios/ExpoHardwareKeyboardNavigation.podspec
  • mobile/src/hardware-keyboard/use-mobile-hardware-keyboard-commands.ts
  • mobile/src/cache/worktree-cache.ts
  • mobile/src/hardware-keyboard/mobile-worktree-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/use-mobile-session-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.test.ts
  • mobile/src/hardware-keyboard/mobile-tab-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/use-hardware-keyboard-text-input-focus.ts
  • mobile/src/hardware-keyboard/use-mobile-hardware-keyboard-preferences.ts
  • mobile/src/session/MobileNativeChatComposer.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-preferences.ts
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/ExpoHardwareKeyboardNavigationModule.kt
  • mobile/src/hardware-keyboard/mobile-worktree-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/mobile-tab-keyboard-navigation.ts
  • mobile/src/hooks/use-active-worktree-scroll.ts
  • mobile/src/session/MobileSessionCommandDock.tsx
  • mobile/packages/expo-hardware-keyboard-navigation/android/build.gradle
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardNavigationRegistry.kt
  • mobile/src/hardware-keyboard/mobile-session-hardware-keyboard-context.test.ts
  • mobile/src/hardware-keyboard/hardware-keyboard-native-compatibility.test.ts
  • mobile/src/hardware-keyboard/mobile-session-hardware-keyboard-context.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-bindings.test.ts
  • mobile/app/hardware-keyboard-settings.tsx
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardNavigationPackage.kt
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-bindings.ts
  • mobile/src/hardware-keyboard/use-mobile-worktree-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.ts
  • mobile/src/session/MobileNativeChatComposer.tsx
  • mobile/src/terminal/terminal-input-connection-gate.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-actions.ts
  • mobile/src/host-screen/use-host-screen-controller.ts
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardWindowCallback.kt
  • mobile/src/session/use-mobile-session-terminal-send-actions.ts
  • mobile/packages/expo-hardware-keyboard-navigation/src/index.ts
  • mobile/app/h/_layout.tsx
  • mobile/src/terminal/terminal-live-input-affordance.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Adds mobile hardware-keyboard support across native Android and iOS modules. The change defines command registration, platform-specific keybinding conversion, preferences, tab and worktree navigation, and keyboard settings. It wires navigation into host and session screens, adds cached worktree fallback, and updates terminal and chat inputs to manage hardware-keyboard focus and soft-input behavior. Tests cover native compatibility, keybinding conversion, navigation, focus behavior, and terminal input gating.

Merge Risk: ⚪ Minimal · up to 34ba6

This change adds mobile hardware-keyboard navigation, settings, and input-focus support without a concrete remaining correctness, security, or availability risk identified in the supplied evidence.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The PR includes changes beyond the linked issue's application-navigation scope, including Native Chat and terminal input focus behavior, terminal input gating, tab-snapshot lag handling, and preferenc… Split the terminal and Native Chat focus, terminal input gating, tab-snapshot lag, and preference-persistence changes into separate linked work, or document and obtain explicit scope approval for these additions. Keep this PR focused on app…
Docstring Coverage ⚠️ Warning Docstring coverage is 2.47% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 81 functions across 42 files. (5 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The implementation satisfies the coding objectives in [#18041]. It adds Android and iOS hardware-keyboard handling, worktree navigation, numeric selection, switcher access, history navigation, tab nav…
Title check ✅ Passed The title clearly and concisely identifies the main change: adding hardware keyboard navigation to mobile.
Description check ✅ Passed The description is complete and follows the repository template. It explains the change and reason, links issue #18041, documents why visual proof is N/A, lists automated and physical testing, include…
Full details: Out of Scope Changes check

Explanation

The PR includes changes beyond the linked issue's application-navigation scope, including Native Chat and terminal input focus behavior, terminal input gating, tab-snapshot lag handling, and preference persistence failure handling. The linked issue explicitly excludes terminal input and standard text-editing behavior.

Resolution

Split the terminal and Native Chat focus, terminal input gating, tab-snapshot lag, and preference-persistence changes into separate linked work, or document and obtain explicit scope approval for these additions. Keep this PR focused on application-level hardware-keyboard navigation for worktrees and tabs.

Full details: Docstring Coverage

Explanation

Docstring coverage is 2.47% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 81 functions across 42 files. (5 skipped: 5 unsupported.)

  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: f05a3eef-d0eb-4f57-8fba-0c3a96a4d067

📥 Commits

Reviewing files that changed from the base of the PR and between 573537e and 0ba68fd.

⛔ Files ignored due to path filters (1)
  • mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (41)
  • mobile/app/_layout.tsx
  • mobile/app/h/_layout.tsx
  • mobile/app/hardware-keyboard-settings.tsx
  • mobile/app/settings.tsx
  • mobile/package.json
  • mobile/packages/expo-hardware-keyboard-navigation/android/build.gradle
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/ExpoHardwareKeyboardNavigationModule.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardActivityLifecycleListener.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardNavigationPackage.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardNavigationRegistry.kt
  • mobile/packages/expo-hardware-keyboard-navigation/android/src/main/java/expo/modules/hardwarekeyboardnavigation/HardwareKeyboardWindowCallback.kt
  • mobile/packages/expo-hardware-keyboard-navigation/expo-module.config.json
  • mobile/packages/expo-hardware-keyboard-navigation/ios/ExpoHardwareKeyboardNavigation.podspec
  • mobile/packages/expo-hardware-keyboard-navigation/ios/ExpoHardwareKeyboardNavigationModule.swift
  • mobile/packages/expo-hardware-keyboard-navigation/package.json
  • mobile/packages/expo-hardware-keyboard-navigation/src/index.ts
  • mobile/src/cache/worktree-cache.ts
  • mobile/src/hardware-keyboard/hardware-keyboard-native-compatibility.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-actions.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-bindings.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-bindings.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-preferences.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.ts
  • mobile/src/hardware-keyboard/mobile-tab-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/mobile-tab-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/mobile-worktree-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/mobile-worktree-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/use-hardware-keyboard-text-input-focus.ts
  • mobile/src/hardware-keyboard/use-mobile-hardware-keyboard-commands.ts
  • mobile/src/hardware-keyboard/use-mobile-hardware-keyboard-preferences.ts
  • mobile/src/hardware-keyboard/use-mobile-session-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/use-mobile-worktree-keyboard-navigation.ts
  • mobile/src/hooks/use-active-worktree-scroll.ts
  • mobile/src/host-screen/use-host-screen-controller.ts
  • mobile/src/session/MobileNativeChatComposer.test.ts
  • mobile/src/session/MobileNativeChatComposer.tsx
  • mobile/src/session/MobileSessionCommandDock.tsx
  • mobile/src/session/use-mobile-session-controller.ts
  • mobile/src/session/use-mobile-session-terminal-send-actions.ts
  • mobile/src/terminal/terminal-input-connection-gate.test.ts
  • mobile/src/terminal/terminal-live-input-affordance.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Worktree navigation bypasses the terminal-first shortcut policy, so worktree-switch chords still fire over a focused terminal instead of being passed to the shell.

Reviewed changes

  • New @orca/expo-hardware-keyboard-navigation Expo native module with iOS (UIKeyCommand + ObjC runtime handler) and Android (window-callback + ReactActivityHandler interception) implementations for app-level key commands and physical-keyboard detection.
  • Worktree and tab keyboard-navigation hooks and pure helpers (cycling, index selection, MRU history) plus a new hardware-keyboard settings screen and a orca-first / terminal-first preference store.
  • A useHardwareKeyboardTextInputFocus hook wired into the Native Chat composer and terminal command dock to refocus inputs without opening the software keyboard.
  • Terminal input connection-gate refactor so live-input sends share resolveMobileTerminalInputGate with the buffered command box.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 75efce93-2fb9-45f5-b150-cfb71a2c329a

📥 Commits

Reviewing files that changed from the base of the PR and between 0ba68fd and f32af32.

📒 Files selected for processing (13)
  • mobile/app/h/_layout.tsx
  • mobile/app/hardware-keyboard-settings.tsx
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-bindings.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-preferences.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-preferences.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.test.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.ts
  • mobile/src/hardware-keyboard/mobile-session-hardware-keyboard-context.test.ts
  • mobile/src/hardware-keyboard/mobile-session-hardware-keyboard-context.ts
  • mobile/src/hardware-keyboard/use-mobile-session-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/use-mobile-worktree-keyboard-navigation.test.ts
  • mobile/src/hardware-keyboard/use-mobile-worktree-keyboard-navigation.ts
  • mobile/src/session/mobile-session-route-parity.test.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • mobile/src/hardware-keyboard/use-mobile-session-keyboard-navigation.ts
  • mobile/src/hardware-keyboard/mobile-hardware-keyboard-registry.ts
  • mobile/app/hardware-keyboard-settings.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Threaded session keybinding context to the worktree scope — new mobile-session-hardware-keyboard-context.ts publishes the session's active-tab context (terminal/app) keyed by hostId\0worktreeId; h/_layout.tsx reads it and passes it to useMobileWorktreeKeyboardNavigation, replacing the prior hardcoded context: 'app'. This resolves the earlier terminal-first bypass.
  • Guarded worktree catalog refresh against stale host responses — routeRef discards a catalog result whose client/hostId no longer match the current route.
  • Added nested-scope precedence — claimedActionIds dedup in syncNativeCommands lets a newer scope suppress an overlapping action from an older scope.
  • Made preference persistence failure-safe — saveMobileTerminalShortcutPolicy now publishes only after AsyncStorage.setItem succeeds, and the settings screen surfaces a save error.
  • Added tests for the context registry, registry dedup, stale-catalog guard, and preference persistence ordering.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Cancelled in-flight worktree navigation on route change — routeRef now carries a generation counter that increments when client/hostId change; refresh returns null once the generation has advanced, and the command handler skips apply on a null result, so a worktree switch triggered before a route transition can no longer fire over the new route.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

…-add-hardware-keyboard-navigation

# Conflicts:
#	mobile/src/session/mobile-session-route-parity.test.ts
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@nwparker

nwparker commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

This PR is good but big... Hmmm
@Jinwoo-H is doing some mobile changes so we might hold a minute

@isairz

isairz commented Sep 14, 2026

Copy link
Copy Markdown
Author

Rebased and split this work against the current main. Focused successor PR: #20537. Navigation correctness and terminal/input stability are preserved on separate follow-up branches (mobile-keyboard-nav-bugs, mobile-keyboard-nav-input-stability) and will be opened after the focused PR lands.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][Mobile]: Add hardware keyboard navigation parity for worktrees and tabs

2 participants