Repository navigation
Conversation
Builds against an older SDK run letterboxed in compatibility mode on iPhone Duo. Moving to Xcode 27.1 needs the UIScene lifecycle the SDK makes mandatory, a floor for pod deployment targets Xcode 27 rejects, and one availability guard in expo-router.
Keeps the host sidebar left of the fold in book posture so the terminal never crosses the crease, and draws the terminal keys in the strip below the Duo's status column on session routes.
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title is specific and matches the changeset. The diff adds iOS 27.1 SDK build changes (xcode-27 runner, scene lifecycle, pod deployment floor), fold-aware layout in the host sidebar and fold-divis… | |
| Linked Issues check | [#22597] Coding objectives are covered by the change summary at head fdc23ff. (1) Scene-local geometry and reserved regions: the native OrcaReservedRegions module reports divisions and occlusions, a… |
|
| Out of Scope Changes check | Build and lifecycle changes support the SDK-gated adapter. The PR states that the iOS 27 SDK requires the UIScene lifecycle, and that Xcode 27 requires the pod deployment-target floor and the `expo-ro… | |
| Description check | The pull request description follows the required template. It includes the user-facing summary, detailed changes, rationale, linked issue, visual proof, testing results, AI disclosure, review notes, … |
Full details: Title check
-
Explanation
The title is specific and matches the changeset. The diff adds iOS 27.1 SDK build changes (xcode-27 runner, scene lifecycle, pod deployment floor), fold-aware layout in the host sidebar and fold-division logic, and the terminal key rail for iPhone Duo. The title names all three parts. It is long (85 characters) but it stays on the primary change and avoids vague terms.
Full details: Linked Issues check
-
Explanation
[
#22597] Coding objectives are covered by the change summary at head fdc23ff. (1) Scene-local geometry and reserved regions: the nativeOrcaReservedRegionsmodule reports divisions and occlusions, andgetFoldSplitandgetSideRailStripcompute usable bounds. Their tests cover invalid dimensions, non-positive rectangles, and missing regions. (2) Book posture:app/h/_layout.tsxplaces the host sidebar at the fold and reserves the fold gap. (3) Contiguous terminal viewport: the fold division reaches page-rendered routes through the init frame.usePageFoldDivisionkeeps the existing frame when measurements are unchanged, and an unchanged fold sends no extra init. (4) Essential controls: the terminal key rail sits in the side strip, andsideRailStripAboveKeyboardshortens it to the keyboard top. (5) State preservation: fold and rail updates reach a live page through init without changing its session ID, as covered bybridge-fold-division.test.ts. (6) Compatibility: the new bridge fields are optional and grant-gated, and non-Duo devices receivenull. Residual gap: the summary shows no automated coverage for drawers, large text, VoiceOver focus, IME composition, pending-question preservation, or terminal refit coalescing. The PR reports manual testing for transitions and pairing. Those items are validation work, and the summary does not show a concrete missing implementation for them.
Full details: Out of Scope Changes check
-
Explanation
Build and lifecycle changes support the SDK-gated adapter. The PR states that the iOS 27 SDK requires the UIScene lifecycle, and that Xcode 27 requires the pod deployment-target floor and the
expo-routeravailability guard. The runner image and Xcode version changes,ios-scene-lifecycle.js,SceneDelegategeneration,ios-pod-deployment-target-floor.js, theexpo-routerpatch,app.jsonplugin entries, and theorca-window-controls-insetscene-window change are required to build and launch with the 27.1 SDK. The fold and reserved-region work, key rail, bridge fields, grants, andSideRailProviderwiring implement the issue's fold, reserved-region, and reachable-control requirements. The bridge fields and rail claim are optional and grant-gated. Themobile-e2ee-v2-client-session.test.tsfailure is stated to occur onmainand is not introduced here. Caveat: the UIScene lifecycle and CI image changes affect every iOS build, not only iPhone Duo. This is a review risk. Their necessity rests on the PR's stated SDK requirement, which this assessment does not verify independently.
Full details: Description check
-
Explanation
The pull request description follows the required template. It includes the user-facing summary, detailed changes, rationale, linked issue, visual proof, testing results, AI disclosure, review notes, compatibility considerations, and checklist. It also documents the known test failure on both this branch and main. The unchecked small-and-focused item is non-critical.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 50.91% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 55 functions across 47 files. (8 skipped: 8 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Comment @coderabbitai help to get the list of available commands.
There was a problem hiding this comment.
🔇 Additional comments: 56
.github/workflows/mobile-ios-release.yml: 2
62-63: LGTM!
36-36: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Register the
xcode-27label with actionlint.The
xcode-27label is valid. GitHub documentsxcode-27andxcode-27-xlargeas theruns-onlabels for the Xcode 27 image. The actionlintrunner-labelerror is therefore a false positive. The runner will not hang.If CI runs actionlint, this error will fail the lint step. Add the labels to the actionlint config so the check passes.
# .github/actionlint.yaml self-hosted-runner: labels: - xcode-27 - xcode-27-xlargeAlso check the "Set up job" log of the first run. A third-party report of the Oct 12 image says the default is Xcode 27.0 and that 27.1 is also installed on disk. The
setup-xcodestep at Line 63 fails if 27.1 is missing from the image.Sources: Learnings, Linters/SAST tools
mobile/app.json: 1
85-86: LGTM!mobile/modules/orca-reserved-regions/expo-module.config.json: 1
1-6: LGTM!mobile/modules/orca-reserved-regions/ios/OrcaReservedRegions.podspec: 1
1-15: LGTM!mobile/modules/orca-reserved-regions/ios/OrcaReservedRegionsModule.swift: 1
1-119: LGTM!mobile/modules/orca-reserved-regions/package.json: 1
1-5: LGTM!mobile/modules/orca-reserved-regions/src/index.ts: 1
1-21: LGTM!mobile/modules/orca-window-controls-inset/ios/OrcaWindowControlsInsetSubscriber.swift: 1
16-25: LGTM!Also applies to: 36-36
mobile/patches/[email protected]: 1
1-14: LGTM!mobile/plugins/ios-pod-deployment-target-floor.js: 1
1-33: LGTM!mobile/plugins/ios-scene-lifecycle.js: 1
1-181: LGTM!mobile/pnpm-workspace.yaml: 1
69-69: LGTM!mobile/vitest.setup.ts: 1
14-15: LGTM!mobile/app/_layout.tsx: 1
29-29: LGTM!Also applies to: 205-257
mobile/app/h/_layout.tsx: 1
6-6: LGTM!Also applies to: 81-92, 136-137, 144-146, 149-149, 153-155
mobile/src/layout/fold-division.ts: 1
1-52: LGTM!mobile/src/layout/fold-division.test.ts: 1
1-48: LGTM!mobile/src/layout/reserved-regions.ts: 1
1-35: LGTM!mobile/src/layout/use-fold-split.ts: 1
1-20: LGTM!mobile/src/layout/use-fold-split.web.ts: 1
1-18: LGTM!mobile/src/layout/side-rail-strip.test.ts: 1
1-102: LGTM!mobile/src/layout/side-rail-strip.ts: 1
1-84: LGTM!mobile/src/layout/side-rail.tsx: 1
1-128: LGTM!mobile/web-entry/web-overrides.json: 1
195-202: LGTM!mobile/src/mobile-web-shell/bridge-host-contract.ts: 1
8-9: LGTM!Also applies to: 142-147, 229-231
mobile/src/mobile-web-shell/bridge-host-notify.ts: 1
14-14: LGTM!Also applies to: 39-39, 63-66
mobile/src/mobile-web-shell/bridge-host-route.ts: 1
8-9: LGTM!Also applies to: 41-48, 75-76, 82-83, 117-136
mobile/src/mobile-web-shell/bridge-host.ts: 1
24-30: LGTM!Also applies to: 54-62, 113-115, 192-193, 256-257, 282-283, 331-331, 371-383
mobile/src/mobile-web-shell/bridge/bridge-client-inbound-frames.ts: 1
2-2: LGTM!Also applies to: 23-23, 83-85
mobile/src/mobile-web-shell/bridge/bridge-client-notifications.ts: 1
18-21: LGTM!Also applies to: 66-66, 152-162
mobile/src/mobile-web-shell/bridge/bridge-client-session.ts: 1
8-9: LGTM!Also applies to: 34-38, 68-69
mobile/src/mobile-web-shell/bridge/bridge-client-shell-session.ts: 1
8-9: LGTM!Also applies to: 30-30, 32-50, 55-79, 91-92, 112-117, 120-128, 148-157, 198-209
mobile/src/mobile-web-shell/bridge/bridge-client-terminal-keys.ts: 1
1-36: LGTM!mobile/src/mobile-web-shell/bridge/bridge-envelope.ts: 1
12-12: LGTM!Also applies to: 15-19, 267-272, 297-302
mobile/src/mobile-web-shell/bridge/bridge-fold-division.test.ts: 1
1-90: LGTM!mobile/src/mobile-web-shell/bridge/bridge-fold-division.ts: 1
1-34: LGTM!mobile/src/mobile-web-shell/bridge/bridge-init-frame.ts: 1
17-18: LGTM!Also applies to: 50-53, 94-99
mobile/src/mobile-web-shell/bridge/bridge-notify-envelope.ts: 1
6-6: LGTM!Also applies to: 124-131
mobile/src/mobile-web-shell/bridge/bridge-notify-grants.ts: 1
11-14: LGTM!Also applies to: 54-55
mobile/src/mobile-web-shell/bridge/bridge-port-pair-test-harness.ts: 1
17-18: LGTM!Also applies to: 64-65, 112-113, 222-222, 245-246, 283-283, 321-321
mobile/src/mobile-web-shell/bridge/bridge-rpc-client-frames.test.ts: 1
134-135: LGTM!mobile/src/mobile-web-shell/bridge/bridge-rpc-client.ts: 1
11-15: LGTM!Also applies to: 30-30, 41-41, 70-72, 74-74, 77-77, 298-298, 301-302, 420-420, 469-470
mobile/src/mobile-web-shell/bridge/bridge-terminal-key.test.ts: 1
1-73: LGTM!mobile/src/mobile-web-shell/bridge/bridge-terminal-key.ts: 1
1-50: LGTM!mobile/src/mobile-web-shell/use-mobile-web-shell-bridge.ts: 1
13-14: LGTM!Also applies to: 68-73, 100-103, 140-141, 222-223, 259-260, 342-368
mobile/src/mobile-web-shell/page-fold-division.ts: 1
1-81: LGTM!config/scripts/mobile-web-page-routes.mjs: 1
180-182: LGTM!mobile/src/mobile-web-shell/MobileWebShellScreen.tsx: 1
41-42: LGTM!Also applies to: 189-191, 196-196, 218-219, 253-253, 337-338, 405-405, 430-430
mobile/src/mobile-web-shell/page-route-policy.test.ts: 1
2-2: LGTM!Also applies to: 203-203, 242-242, 252-253
mobile/src/mobile-web-shell/page-route-policy.ts: 1
2-2: LGTM!Also applies to: 33-35
mobile/src/mobile-web-shell/terminal-key-rail.tsx: 1
1-176: LGTM!mobile/src/mobile-web-shell/use-mobile-web-shell-bridge.test.ts: 1
156-157: LGTM!Also applies to: 192-193
mobile/src/session/MobileSessionCommandDock.tsx: 1
14-15: LGTM!Also applies to: 75-89, 91-91, 183-183, 201-201
mobile/src/session/shell-terminal-key-rail.ts: 1
1-17: LGTM!mobile/src/session/shell-terminal-key-rail.web.ts: 1
1-41: LGTM!
ℹ️ Review info
⚙️ Run configuration
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
be506f1c-e287-4685-94ec-a1e16235bf11
⛔ Files ignored due to path filters: 1
mobile/pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing: 55
.github/workflows/mobile-ios-release.ymlconfig/scripts/mobile-web-page-routes.mjsmobile/app.jsonmobile/app/_layout.tsxmobile/app/h/_layout.tsxmobile/modules/orca-reserved-regions/expo-module.config.jsonmobile/modules/orca-reserved-regions/ios/OrcaReservedRegions.podspecmobile/modules/orca-reserved-regions/ios/OrcaReservedRegionsModule.swiftmobile/modules/orca-reserved-regions/package.jsonmobile/modules/orca-reserved-regions/src/index.tsmobile/modules/orca-window-controls-inset/ios/OrcaWindowControlsInsetSubscriber.swiftmobile/patches/[email protected]mobile/plugins/ios-pod-deployment-target-floor.jsmobile/plugins/ios-scene-lifecycle.jsmobile/pnpm-workspace.yamlmobile/src/layout/fold-division.test.tsmobile/src/layout/fold-division.tsmobile/src/layout/reserved-regions.tsmobile/src/layout/side-rail-strip.test.tsmobile/src/layout/side-rail-strip.tsmobile/src/layout/side-rail.tsxmobile/src/layout/use-fold-split.tsmobile/src/layout/use-fold-split.web.tsmobile/src/mobile-web-shell/MobileWebShellScreen.tsxmobile/src/mobile-web-shell/bridge-host-contract.tsmobile/src/mobile-web-shell/bridge-host-notify.tsmobile/src/mobile-web-shell/bridge-host-route.tsmobile/src/mobile-web-shell/bridge-host.tsmobile/src/mobile-web-shell/bridge/bridge-client-inbound-frames.tsmobile/src/mobile-web-shell/bridge/bridge-client-notifications.tsmobile/src/mobile-web-shell/bridge/bridge-client-session.tsmobile/src/mobile-web-shell/bridge/bridge-client-shell-session.tsmobile/src/mobile-web-shell/bridge/bridge-client-terminal-keys.tsmobile/src/mobile-web-shell/bridge/bridge-envelope.tsmobile/src/mobile-web-shell/bridge/bridge-fold-division.test.tsmobile/src/mobile-web-shell/bridge/bridge-fold-division.tsmobile/src/mobile-web-shell/bridge/bridge-init-frame.tsmobile/src/mobile-web-shell/bridge/bridge-notify-envelope.tsmobile/src/mobile-web-shell/bridge/bridge-notify-grants.tsmobile/src/mobile-web-shell/bridge/bridge-port-pair-test-harness.tsmobile/src/mobile-web-shell/bridge/bridge-rpc-client-frames.test.tsmobile/src/mobile-web-shell/bridge/bridge-rpc-client.tsmobile/src/mobile-web-shell/bridge/bridge-terminal-key.test.tsmobile/src/mobile-web-shell/bridge/bridge-terminal-key.tsmobile/src/mobile-web-shell/page-fold-division.tsmobile/src/mobile-web-shell/page-route-policy.test.tsmobile/src/mobile-web-shell/page-route-policy.tsmobile/src/mobile-web-shell/terminal-key-rail.tsxmobile/src/mobile-web-shell/use-mobile-web-shell-bridge.test.tsmobile/src/mobile-web-shell/use-mobile-web-shell-bridge.tsmobile/src/session/MobileSessionCommandDock.tsxmobile/src/session/shell-terminal-key-rail.tsmobile/src/session/shell-terminal-key-rail.web.tsmobile/vitest.setup.tsmobile/web-entry/web-overrides.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
ELI5
On iPhone Duo, Orca currently runs in compatibility mode: iOS draws it in a fixed-size box with black bars. This PR builds the app with the iOS 27.1 SDK so it fills the screen and resizes as you open, fold and rotate the device, without losing the session. Half folded like a book, the workspace list sits on the left half and the terminal on the right, so the terminal doesn't run across the fold. The empty strip below the Duo's status column shows the terminal keys while a terminal is on screen.
What Changed
Commit 1 –
chore(mobile): build iOS with the 27.1 SDKmobile-ios-release.yml: moves to thexcode-27runner image and Xcode 27.1.plugins/ios-scene-lifecycle.js:SceneDelegatethat creates the window and starts React Native.plugins/ios-pod-deployment-target-floor.js: raises pod deployment targets below iOS 15.1, which Xcode 27 rejects.patches/[email protected]: one#available(iOS 16.0, *)guard that Xcode 27 requires.orca-window-controls-inset: installs its probe on the scene's window.Commit 2 –
feat(mobile): adapt to iPhone Duo folding and its status columnorca-reserved-regions@available(iOS 27.1, *). Everywhere else it isnulland nothing changes.app/h/_layout.tsxends at the fold, so the terminal is one contiguous viewport.foldDivision).terminalKeyframe and the claim are all optional, and gated by an optional route grant (terminalKeyRail).Terminal resizing uses the existing
terminal-viewport-refitpath.Why
Without the SDK update, the app stays in compatibility mode and iOS provides no fold geometry. With it, the PR handles the two things the Duo changes: the fold, which shouldn't run through the terminal, and the strip below the status column.
Linked Issue
Fixes #22597
Visual Proof
Testing
Tested on a physical iPhone Duo (iOS 27.1, Release build) and the iPhone Duo simulator (iOS 27.1, Xcode 27.1).
Platforms: mobile (iOS) only. Built on macOS, and the desktop app is unchanged on macOS, Linux and Windows. The phone connected over LAN to a local
orcad, and SSH workspaces are untouched because nothing in the transport changed.Transitions: closed portrait/landscape → open → book → closed and back, plus Split View. Host, workspace, tab and scrollback were preserved with no reconnect, and the terminal refit to each settled size.
Book posture: the sidebar ends at the fold, including after a 180° rotation.
Key rail:
Pairing: deep-link pairing works on cold and warm start.
Regression: a regular iPhone shows no rail and is unchanged.
Automated tests:
mobiletypecheck, lint and tests pass, exceptsrc/transport/mobile-e2ee-v2-client-session.test.ts, which also fails onmain.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Implemented with Claude Code (Claude Opus 5.5); tested by me in the simulator and on an iPhone Duo.
Review
AI code review summary:
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)