Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 2

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:
c9a107ba-33b7-4c06-b75b-4131c102520f
Files selected for processing: 63-
config/scripts/build-mobile-web-app-bundle.mjsconfig/scripts/mobile-web-page-routes.mjsconfig/scripts/mobile-web-page-routes.test.mjsmobile/app/h/[hostId]/index.web.tsxmobile/src/mobile-web-shell/MobileWebShellScreen.tsxmobile/src/mobile-web-shell/bridge-host-back.tsmobile/src/mobile-web-shell/bridge-host.tsmobile/src/mobile-web-shell/bridge/bridge-back-round-trip.test.tsmobile/src/mobile-web-shell/bridge/bridge-client-init-handshake.tsmobile/src/mobile-web-shell/bridge/bridge-envelope.tsmobile/src/mobile-web-shell/bridge/bridge-rpc-client-frames.test.tsmobile/src/mobile-web-shell/host-area-layout-class-change.test.tsxmobile/src/mobile-web-shell/host-area-leave-session.test.tsxmobile/src/mobile-web-shell/host-area-session.test.tsmobile/src/mobile-web-shell/host-area-sidebar-matrix.test.tsxmobile/src/mobile-web-shell/host-root-responsive-content.test.tsxmobile/src/mobile-web-shell/page-route-policy.tsmobile/src/mobile-web-shell/page-storage-keys-negotiation.test.tsmobile/src/mobile-web-shell/page-storage-keys.tsmobile/src/navigation/route-handoff-host-area.web.test.tsxmobile/src/session/MobileSessionActiveContent.tsxmobile/src/session/MobileSessionTabStrip.test.tsxmobile/src/session/MobileSessionTabStrip.tsxmobile/src/session/TerminalPaneView.test.tsxmobile/src/session/TerminalPaneView.tsxmobile/src/session/mobile-session-terminal-frame-layout.test.tsxmobile/src/session/mobile-terminal-layout-choice.test.tsxmobile/src/session/mobile-terminal-pane-layout.test.tsmobile/src/session/mobile-terminal-pane-layout.tsmobile/src/session/mobile-terminal-split-gestures.test.tsxmobile/src/session/mobile-terminal-split-input.test.tsxmobile/src/session/use-mobile-session-controller.tsmobile/src/session/use-mobile-session-keyboard-state.test.tsxmobile/src/session/use-mobile-session-keyboard-state.tsmobile/src/session/use-mobile-session-lifecycle.tsmobile/src/session/use-mobile-session-presentation.tsmobile/src/session/use-mobile-session-screen-state.tsmobile/src/session/use-mobile-session-startup.tsmobile/src/session/use-mobile-session-tab-application.tsmobile/src/session/use-mobile-session-tab-switching.tsmobile/src/session/use-mobile-session-terminal-runtime.tsmobile/src/session/use-mobile-session-terminal-stream-display.tsmobile/src/session/use-mobile-session-terminal-subscription.test.tsxmobile/src/session/use-mobile-session-terminal-subscription.tsmobile/src/session/use-mobile-session-terminal-webview.tsmobile/src/session/use-terminal-split-layout.test.tsxmobile/src/session/use-terminal-split-layout.tsmobile/src/storage/preferences.tsmobile/src/terminal/document/mouse-click-drag.tsmobile/src/terminal/document/surface-touch-gestures.tsmobile/src/terminal/document/wheel-scroll.tsmobile/src/terminal/terminal-cell-box-refit.test.tsxmobile/src/terminal/terminal-foreground-recovery.test.tsmobile/src/terminal/terminal-foreground-recovery.tsmobile/src/terminal/terminal-viewport-refit-options.tsmobile/src/terminal/terminal-viewport-refit.tsmobile/src/terminal/terminal-webview-contract.tsmobile/src/terminal/terminal-webview-notification-dispatch.tsmobile/src/terminal/use-terminal-webview-controller.tsmobile/src/transport/mobile-web-bundle-reply-schemas.test.tsmobile/src/transport/mobile-web-bundle-reply-schemas.tssrc/shared/mobile-web-bundle/manifest-contract.test.tssrc/shared/mobile-web-bundle/manifest-contract.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
|
Thank you! This landed in #35177 with your commits intact, merged with main's newer terminal key bar. The Duo rail keeps your design and D-pad, and now lists that bar's keys. |
ELI5
When two terminals are visible on a phone or tablet, either one should respond when you touch it. You should also be able to choose their direction and keep the same workspace when the screen changes size. This is the supporting PR for the Duo workspace series in #33221.
Latest series status
b82ca3f5cd5e5c52bef4f4c9578917bb8a860b11f1e64ef830690f0914437ecde16ab49ac010963bThe main PR includes narrow-header actions in …, removal of the synthetic top band and Duo input-dock bottom reservation, and keyboard alignment scoped to the visible terminal dock. Native chat, browser, Markdown and file views retain their existing keyboard clearance. Review the companion first, then the Duo-only comparison.
The recent Duo refinements are reviewed in #33221. This prerequisite continues to own independent pane interaction, layout selection, per-pane sizing and workspace continuity.
What Changed
Why
A split that only accepts input on the selected tab behaves like a preview. It makes users switch tabs before scrolling or typing into the other pane. An automatic layout also should not prevent a deliberate side-by-side arrangement just because the sidebar is visible.
These state and interaction changes are separated from Duo-specific geometry, native reserved regions and the right-side control rail. They can be reviewed and used by other mobile/tablet layouts. The main PR #33221 depends on this PR; review this one first. This PR targets main independently; the Duo overview includes these commits as its dependency.
Linked Issue
Fixes #33201.
Contributes to #22597 without closing its broader foldable device/accessibility/IME acceptance scope. Main workspace/controls PR: #33221.
Visual Proof
The following media show the community implementation before the public port. The earlier and later simulator prototypes use neutral local fixtures. They are neither a matched comparison against current upstream main nor final-head acceptance evidence. Final-branch validation is listed separately below.
Motion overview (actual simulator captures with labeled explanatory motion graphics):
orca-duo-x.mp4
Earlier and later split prototypes
The builds, fixture output and sidebar state differ. This illustrates the available controls; it is not an upstream-main pixel comparison or proof of pane interaction.
Both directions with the sidebar open
Static images demonstrate the layouts. Input, scrolling, third-tab pairing and rotation require the interaction evidence below.
All prototype media and provenance.
Testing
Latest contributor device feedback
On October 25, 2026, Takeshi Matsumoto (@zytakeshi) checked the latest combined implementation on his physical iPhone Duo and reported that the layout looks good after the added edge gaps were removed. This is contributor-reported layout feedback for the combined implementation. It does not establish exhaustive touch, home-gesture, rotation or keyboard acceptance, or a separate native run of the rebased public branch.
2fefde5f5dc9836c79d177ccef06f1c130ee2839(base41d25c07).cd mobile && ORCA_BACKGROUND_LAUNCH=1 ./node_modules/.bin/vitest run src/mobile-web-shellORCA_BACKGROUND_LAUNCH=1 ./node_modules/.bin/vitest run config/scripts/mobile-web-page-routes.test.mjs src/shared/mobile-web-bundle/manifest-contract.test.tscd mobile && ./node_modules/.bin/tsc --noEmit --pretty falsecheck-tests-typecheck-ratchet.mjsthrough TSX/source conditionsORCA_BACKGROUND_LAUNCH=1 node config/scripts/build-mobile-web-app-bundle.mjsFive regression controls failed with the relevant repairs removed, then passed: direct second-pane swipe ownership, per-pane grid refit, legacy init storage acceptance, document continuity through rotation, and narrow workspace-picker rendering. Full repository CI is pending.
Reviewer exercise: open at least three terminal tabs; choose Side by side with the sidebar open; scroll and type into each pane directly; select the third tab and verify the pair remains useful; switch to Stacked; repeatedly hide/show the sidebar, rotate, and open/dismiss the keyboard; verify tabs and top actions still respond and the workspace remains selected.
Takeshi Matsumoto (@zytakeshi) exercised the earlier implementation on his physical iPhone Duo and reported the original pane, tab and rotation problems that drove these fixes. Final public-branch device results are not implied by that earlier report.
Automated checks ran on Apple Silicon macOS. The generic page/controller paths were exercised in tests and a production web bundle. A fresh native app build, physical public-head validation, Windows/Linux/Android and live SSH acceptance were not run in this port. Folder workspaces use the same controller path; no git-only assumption was introduced.
CodeRabbit follow-up
Current reviewed head:
f1e64ef830690f0914437ecde16ab49ac010963b. This follow-up requires both host-area flags on one matching route and lifts every visible split pane above the keyboard using that pane's own metrics. Legacy wide-only ownership, hidden panes and single-pane behavior are retained. Overlapping-route and owner-to-real-pane regressions failed before repair and pass afterward.tsc --noEmit --project mobile/tsconfig.json)The initial-port results above are retained as historical evidence; these rows describe the current follow-up. This remains the prerequisite for main PR #33221, whose Duo-only comparison excludes this commit.
Exact current mobile test selection
cd mobile ORCA_BACKGROUND_LAUNCH=1 ./node_modules/.bin/vitest run src/mobile-web-shell src/components/terminal-shortcut-settings-custom-keys.test.tsx src/layout/side-safe-area.test.tsx src/navigation/route-handoff-host-area.web.test.tsx src/platform/keyboard-occlusion.test.tsx src/session/MobileSessionTabStrip.test.tsx src/session/TerminalPaneView.test.tsx src/session/mobile-session-preference-startup.test.ts src/session/mobile-session-terminal-frame-layout.test.tsx src/session/mobile-terminal-layout-choice.test.tsx src/session/mobile-terminal-pane-layout.test.ts src/session/mobile-terminal-split-gestures.test.tsx src/session/mobile-terminal-split-input.test.tsx src/session/use-mobile-session-keyboard-state.test.tsx src/session/use-mobile-session-terminal-subscription.test.tsx src/session/use-terminal-split-layout.test.tsx src/terminal/terminal-accessory-layout.test.ts src/terminal/terminal-cell-box-refit.test.tsx src/terminal/terminal-foreground-recovery.test.ts src/transport/mobile-web-bundle-reply-schemas.test.ts src/session/mobile-session-connection-retry.test.tsxAI Disclosure
Implementation assistance: Codex GPT-6 Astra (high) during device iteration, Codex GPT-6.1 Sol (xhigh) during upstream preparation, and Claude Code Opus 5.5 (high) on the public continuity/storage port. Independent public-diff review and motion graphics: Claude Code Opus 5.5 (xhigh).
The standalone public diff at
2fefde5fwas independently reviewed in a fresh Claude Code Opus 5.5 session at xhigh. No actionable defect was found. The source review did not execute tests; execution results are listed separately above.Review
Fresh Opus xhigh review covered both the standalone split PR and the aggregate Duo proposal, including input ownership, lifecycle ordering, cross-layout routing, manifest producer/consumer compatibility, and storage negotiation across host rebuilds/new documents. The standalone split PR had no actionable finding.
Agent skill upstream boundary
Notes
New optional route ownership is opt-in. An old page retains wide-only ownership, and an old native shell safely ignores the new ready metadata. The split preference is filtered from legacy init readers, including its oversize marker. On an older native shell, the layout choice applies to the mounted session; persistence of the new setting requires its updated allowlist. Existing per-terminal refit, stream and RPC paths are reused.
The original community Duo foundation is credited to @larskghf in #32733. This supporting PR's scope is pane interaction, layout selection and continuity; the complete Duo controls are reviewed in the main PR.
Checklist