Repository navigation
feat(mobile): match every text input to the chat composer and rebuild the terminal dock - #36166
Conversation
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 3

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:
1832b435-a648-417c-b339-9d8d28fba12c
Files selected for processing: 113-
config/scripts/mobile-web-app/mobile-web-app-held-press-render.test.mjsconfig/scripts/mobile-web-app/mobile-web-app-session-render.test.mjsconfig/scripts/mobile-web-app/mobile-web-app-source-control-text-inputs.test.mjsconfig/scripts/mobile-web-app/platform-seams/mobile-web-app-text-input-font-size-seam.mjsconfig/scripts/mobile-web-app/preview/mobile-web-app-held-press-probe-routes.mjsmobile/app/h/[hostId]/edit.tsxmobile/rpc-foundation/goldens/aivault-history-screen-listed.jsonmobile/src/agent-history/MobileAgentSessionHistoryPanel.tsxmobile/src/agent-history/agent-history-back-handoff.test.tsxmobile/src/agent-history/agent-history-pending-resume-ownership.test.tsxmobile/src/agent-history/agent-history-retry.test.tsxmobile/src/agent-history/agent-history-styles.tsmobile/src/browser/MobileBrowserAddressField.tsxmobile/src/browser/MobileBrowserLoadProgress.tsxmobile/src/browser/browser-address-field-base-styles.tsmobile/src/browser/browser-address-field-styles.tsmobile/src/browser/browser-address-field-styles.web.test.tsmobile/src/browser/browser-address-field-styles.web.tsmobile/src/browser/mobile-browser-pane-styles.web.test.tsmobile/src/components/CustomKeyModal.styles.tsmobile/src/components/CustomKeyModal.tsxmobile/src/components/MobileDiffReviewDrawers.tsxmobile/src/components/MobileSearchField.tsxmobile/src/components/MobileWorkspaceNameInput.tsxmobile/src/components/NewWorktreeFormSheet.tsxmobile/src/components/NewWorktreeProjectTargetFields.tsxmobile/src/components/SmartWorkspaceAdvancedFields.tsxmobile/src/components/SmartWorkspaceSourceDrawer.tsxmobile/src/components/SmartWorkspaceSourceField.tsxmobile/src/components/TerminalShortcutSettings.tsxmobile/src/components/TextInputModal.tsxmobile/src/components/composer-input/ComposerSendButton.tsxmobile/src/components/composer-input/MessageBox.tsxmobile/src/components/composer-input/TextField.tsxmobile/src/components/composer-input/composer-input-styles.tsmobile/src/components/mobile-diff-review-control-styles.tsmobile/src/components/new-worktree-form-styles.tsmobile/src/components/pr-sidebar/MobileLinkPrForm.tsxmobile/src/components/pr-sidebar/PRCommentComposer.tsxmobile/src/components/pr-sidebar/PRSidebarHeader.tsxmobile/src/components/pr-sidebar/ReviewerPickerDrawer.tsxmobile/src/components/pr-sidebar/mobile-pr-sidebar-styles.tsmobile/src/components/pr-sidebar/pr-title-edit-styles.tsmobile/src/components/smart-workspace-source-drawer-styles.tsmobile/src/i18n/locales/de.jsonmobile/src/i18n/locales/en.jsonmobile/src/i18n/locales/es.jsonmobile/src/i18n/locales/fr.jsonmobile/src/i18n/locales/ja.jsonmobile/src/i18n/locales/ko.jsonmobile/src/i18n/locales/pt.jsonmobile/src/i18n/locales/ru.jsonmobile/src/i18n/locales/tr.jsonmobile/src/i18n/locales/zh-Hant.jsonmobile/src/i18n/locales/zh.jsonmobile/src/session/MobileDiffCommentLineRow.tsxmobile/src/session/MobileSessionAccessoryKeys.tsxmobile/src/session/MobileSessionCommandDock.test.tsxmobile/src/session/MobileSessionCommandDock.tsxmobile/src/session/MobileSessionDiffLineRow.tsxmobile/src/session/MobileTerminalCommandDictationPreview.tsxmobile/src/session/MobileTerminalInputActions.tsxmobile/src/session/QuickCommandEditorForm.tsxmobile/src/session/QuickCommandsList.tsxmobile/src/session/TerminalArrowPad.tsxmobile/src/session/TerminalMoreKeysSheet.tsxmobile/src/session/agent-send-keyboard-dismissal.tsmobile/src/session/mobile-file-review-draft.test.tsxmobile/src/session/mobile-session-command-input-styles.tsmobile/src/session/mobile-session-review-comment-styles.tsmobile/src/session/mobile-terminal-tab-agent.tsmobile/src/session/native-chat/composer/MobileNativeChatComposer.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposerField.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposerField.web.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposerFieldCopy.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposerMic.tsxmobile/src/session/native-chat/composer/mobile-native-chat-composer-styles.tsmobile/src/session/native-chat/composer/mobile-native-chat-input-base-styles.tsmobile/src/session/native-chat/composer/mobile-native-chat-input-styles.tsmobile/src/session/native-chat/composer/mobile-native-chat-input-styles.web.tsmobile/src/session/native-chat/input/MobileNativeChatAsk.tsxmobile/src/session/native-chat/input/MobileNativeChatQuestion.tsxmobile/src/session/native-chat/input/MobileNativeChatStopButton.tsxmobile/src/session/terminal-dock-styles.tsmobile/src/session/terminal-field-submit-binding-send.test.tsxmobile/src/session/use-mobile-session-controller.tsmobile/src/session/use-mobile-session-screen-state.tsmobile/src/session/use-mobile-session-terminal-send-actions.tsmobile/src/session/use-terminal-dock-keys.tsmobile/src/session/use-terminal-live-input-mode-preference.test.tsmobile/src/session/use-terminal-live-input-mode-preference.tsmobile/src/source-control/MobileSourceControlContent.tsxmobile/src/source-control/mobile-source-control-list-styles.tsmobile/src/tasks/MobileTasksPrFileDiff.tsxmobile/src/tasks/mobile-tasks-composer-action-styles.tsmobile/src/tasks/mobile-tasks-create-drawers.tsxmobile/src/tasks/mobile-tasks-dependencies.tsmobile/src/tasks/mobile-tasks-detail-styles.tsmobile/src/tasks/mobile-tasks-github-project-pickers.tsxmobile/src/tasks/mobile-tasks-item-detail-content.tsxmobile/src/tasks/mobile-tasks-item-field-editors.tsxmobile/src/tasks/mobile-tasks-item-review-sections.tsxmobile/src/tasks/mobile-tasks-project-comments.tsxmobile/src/tasks/mobile-tasks-project-field-editors.tsxmobile/src/tasks/mobile-tasks-project-metadata-editors.tsxmobile/src/tasks/mobile-tasks-project-picker-styles.tsmobile/src/tasks/mobile-tasks-project-review-panels.tsxmobile/src/tasks/mobile-tasks-workspace-create-drawer.tsxmobile/src/tasks/mobile-tasks-workspace-option-pickers.tsxmobile/src/tasks/mobile-tasks-workspace-trust-drawers.tsxmobile/src/tasks/use-mobile-tasks-detail-comment-renderers.tsxmobile/src/terminal/terminal-sticky-modifiers.tsmobile/web-entry/web-overrides.json
Files with no reviewable changes: 16-
- mobile/src/agent-history/agent-history-styles.ts
- mobile/src/tasks/mobile-tasks-workspace-create-drawer.tsx
- mobile/src/session/use-mobile-session-terminal-send-actions.ts
- mobile/src/browser/browser-address-field-styles.web.test.ts
- mobile/src/components/smart-workspace-source-drawer-styles.ts
- mobile/web-entry/web-overrides.json
- mobile/src/session/MobileDiffCommentLineRow.tsx
- mobile/src/browser/browser-address-field-styles.ts
- mobile/src/session/native-chat/composer/mobile-native-chat-input-styles.ts
- mobile/src/session/native-chat/composer/mobile-native-chat-input-base-styles.ts
- mobile/src/browser/browser-address-field-base-styles.ts
- mobile/src/session/native-chat/composer/mobile-native-chat-input-styles.web.ts
- mobile/src/components/mobile-diff-review-control-styles.ts
- mobile/src/components/pr-sidebar/mobile-pr-sidebar-styles.ts
- mobile/src/browser/browser-address-field-styles.web.ts
- mobile/src/session/terminal-field-submit-binding-send.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
81200e7 to
b47d711
Compare
There was a problem hiding this comment.
Actionable comments posted: 1

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:
7c1dacdb-d4da-4b1f-99ea-df47da520e4d
Files selected for processing: 7-
mobile/src/components/TerminalShortcutSettings.tsxmobile/src/i18n/locales/en.jsonmobile/src/session/MobileSessionAccessoryKeys.tsxmobile/src/session/TerminalArrowPad.tsxmobile/src/session/TerminalMoreKeysSheet.tsxmobile/src/source-control/MobileSourceControlContent.tsxmobile/src/source-control/mobile-source-control-list-styles.ts
Files skipped from review as they are similar to previous changes: 3-
- mobile/src/components/TerminalShortcutSettings.tsx
- mobile/src/source-control/mobile-source-control-list-styles.ts
- mobile/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
Adds shared MessageBox, TextField and ComposerSendButton built from the composer's own styles, and moves chat, form, search, Tasks, PR, review and commit inputs onto them. The commit message becomes multi-line, every input is 16pt (no page zoom on focus), and focus rings are gone. The terminal and browser typing docks are unchanged.
Agent tabs open in Message mode, where you write in the chat composer and Send types it into the terminal. Shell tabs open in Keys mode, where each letter goes straight to the terminal through the live field. A pick made on an agent tab lasts until the agent quits. The shell/agent rule is the one keyboard dismissal already used, now shared. The key row carries sticky ctrl, alt and shift (tap for the next key, double tap to lock) and one arrow pad (tap a side, or hold and drag to repeat through the existing held-key repeat). Paste, attachments, the display width, the remaining keys and custom keys move to a ⋯ sheet. Return in the composer adds a line; Send sends.
…hable from ⋯ A touch on a chevron made the icon the touch target, so the side was measured against the icon's box and most taps read as left. The ⋯ sheet now leaves out only the keys the current row shows, so agent tabs get Tab and shell tabs get Shift+Tab and Enter back.
The file list's bottom inset was a fixed 196 pt, so a commit message several lines long hid the last rows behind the commit bar. The inset now follows the bar's measured height.
b47d711 to
46765e0
Compare
There was a problem hiding this comment.
Actionable comments posted: 1

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:
5e38f0e7-98de-46a0-889a-30a8387d1d8f
Files selected for processing: 3-
mobile/src/source-control/MobileSourceControlContent.tsxmobile/src/source-control/MobileSourceControlFileList.tsxmobile/src/source-control/mobile-source-control-list-styles.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
-
Main's rebuilt terminal key bar (#36166) wins on every phone. The Duo's side-strip rail keeps its look and D-pad but now lists that bar's keys: sticky ctrl/alt/shift, the shell or agent row, and ⋯ for the rest.
Every terminal tab, shell or agent, gets the dock from before #36166: the scrolling key row (desktop width, Paste, the built-in keys, custom keys, add) above one live field that types straight into the terminal, with the attach and mic buttons beside it. The field keeps today's 3:1 outline and focus ring, and the keys use today's chips and press styles. The Keys/Message toggle, the Message composer, the arrow pad, the ⋯ sheet on the row and the per-terminal mode preference go. A stored mode from an older build is never read. Sticky ctrl/alt/shift and the More keys sheet stay only behind the iPhone Duo rail, which shipped shells still draw; the page reports no composer, so shipped shells grey their input-mode key and newer shells hide it.
Every terminal tab, shell or agent, gets the dock from before #36166: the scrolling key row (desktop width, Paste, the built-in keys, custom keys, add) above one live field that types straight into the terminal, with the attach and mic buttons beside it. The field keeps today's 3:1 outline and focus ring, and the keys use today's chips and press styles. The Keys/Message toggle, the Message composer, the arrow pad, the ⋯ sheet on the row and the per-terminal mode preference go. A stored mode from an older build is never read. Sticky ctrl/alt/shift and the More keys sheet stay only behind the iPhone Duo rail, which shipped shells still draw; the page reports no composer, so shipped shells grey their input-mode key and newer shells hide it.
* feat(mobile): bring back the terminal key row and one live input Every terminal tab, shell or agent, gets the dock from before #36166: the scrolling key row (desktop width, Paste, the built-in keys, custom keys, add) above one live field that types straight into the terminal, with the attach and mic buttons beside it. The field keeps today's 3:1 outline and focus ring, and the keys use today's chips and press styles. The Keys/Message toggle, the Message composer, the arrow pad, the ⋯ sheet on the row and the per-terminal mode preference go. A stored mode from an older build is never read. Sticky ctrl/alt/shift and the More keys sheet stay only behind the iPhone Duo rail, which shipped shells still draw; the page reports no composer, so shipped shells grey their input-mode key and newer shells hide it. * refactor(mobile): delete the buffered terminal line With one live input there is no way to write a terminal line first and send it, so the per-terminal drafts and their storage, the Send path, command-field dictation, draft restoration and the terminal setting for autocomplete and autocorrect (which only applied to that line) go. Dictation in a terminal always types into it live. Drafts and the setting saved by older builds are never read.
ELI5
Text boxes in Orca Mobile looked different on almost every screen. They now all look like the chat composer.
The terminal's input area is rebuilt as well:
What Changed
Text inputs. Three shared components in
mobile/src/components/composer-input/replace the per-screen input styles:MessageBox: multi-line, with the composer's row of buttons.TextField: a single line.ComposerSendButton: the round send button.Every mobile text input now uses them: forms and pickers, searches, Tasks, PR and review comments, the commit message, the quick-command editor, and the chat's question and Ask replies.
Terminal dock.
mobile-terminal-tab-agent.tsand both callers use it.esc,ctrl,tab, the arrow pad,alt,⇧, a few characters,⋯, and a show/hide keyboard key.esc,⇧tab, the pad,⏎,^C,ctrl,/ @ !.Why
Inputs had drifted apart: each screen had its own height, corners, font and send button, and several used text under 16 pt, which made iOS zoom. The chat composer is the newest design, so it's the reference.
The old terminal dock had two problems:
>>key to switch input modes.Agents and shells want different things. An agent takes a message you want to check before sending. A shell or TUI wants each key the moment you press it. We compared three options in an HTML prototype before building:
This PR takes the key row for shells and the composer for agents.
Linked Issue
None. This is a maintainer change, and there was no existing issue to link.
Visual Proof
Each image shows main on the left and this branch on the right. All shots are from the OTA page in WebKit at iPhone size.
Terminal
New on this branch: ctrl held for one key, ctrl locked, and the ⋯ sheet.
Walkthrough: typing to Claude, switching to the zsh tab, ctrl one-shot and lock, Keys to Message, typing a command, then the ⋯ sheet.
terminal-dock-walkthrough.mp4
Other inputs
Testing
These all pass on the branch rebased onto current main:
pnpm lintpnpm tccheck:code-quality:changedcheck:react-doctor:changedverify:mobile-localizationandverify:mobile-localization-coverageThe page was also driven in WebKit for the screenshots and the walkthrough above.
New and changed tests:
Not tested on a phone or simulator yet, so the manual box is unticked. Three things still need a device:
AI Disclosure
Review
Worth a close look:
use-terminal-live-input-mode-preference.ts: how the agent default sits on top of the saved per-terminal choice. A Keys pick on an agent tab is held in memory only, so it's forgotten when the app restarts.use-terminal-dock-keys.ts: a held modifier turns the next typed letter into a combo. It does this by resetting the field's text, which ends an in-progress IME or dictation input on that one keystroke.Agent skill upstream boundary
Notes
terminal.sendpaths, so SSH and remote terminals behave as before.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)