Repository navigation
feat(mobile): polish press feedback, sheet motion, states, spacing and layout jumps - #36713
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 6

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:
a46cfc13-cc71-4d14-8987-d55986abd1c4
Files selected for processing: 210-
config/scripts/mobile-web-app/mobile-web-app-stack-transition-render.test.mjsmobile/app/terminal-settings.tsxmobile/app/voice-settings.tsxmobile/rpc-foundation/goldens/files-explorer-legacy-fallback.jsonmobile/rpc-foundation/goldens/files-explorer-readdir.jsonmobile/rpc-foundation/goldens/matrix-aivault.history-screen-status.get-2.jsonmobile/rpc-foundation/goldens/matrix-files.explorer-screen-files.list-1.jsonmobile/rpc-foundation/goldens/matrix-files.explorer-screen-files.readdir-1.jsonmobile/rpc-foundation/goldens/matrix-git.history-commit-files-git.commitcompare-1.jsonmobile/rpc-foundation/goldens/matrix-git.history-commit-files-git.history-1.jsonmobile/rpc-foundation/goldens/matrix-settings.task-hydration-status.get-1.jsonmobile/rpc-foundation/goldens/matrix-tasks.linear-team-context-linear.listteams-1.jsonmobile/rpc-foundation/goldens/matrix-tasks.linear-team-context-linear.teamstates-1.jsonmobile/rpc-foundation/goldens/matrix-tasks.task-list-gitlab-items-gitlab.listworkitems-1.jsonmobile/rpc-foundation/goldens/matrix-tasks.task-list-gitlab-todos-gitlab.todos-1.jsonmobile/rpc-foundation/goldens/matrix-tasks.task-list-linear-linear.listissues-1.jsonmobile/rpc-foundation/goldens/matrix-tasks.task-list-linear-linear.searchissues-1.jsonmobile/rpc-foundation/goldens/sc-history-commit-files.jsonmobile/rpc-foundation/goldens/tk-linear-team-context.jsonmobile/rpc-foundation/goldens/tk-list-gitlab-items.jsonmobile/rpc-foundation/goldens/tk-list-gitlab-todos.jsonmobile/rpc-foundation/goldens/tk-list-linear.jsonmobile/src/accounts/MobileAccountsLoadState.tsxmobile/src/accounts/MobileAccountsScreen.tsxmobile/src/accounts/mobile-accounts-screen-reset-credit.test.tsmobile/src/agent-history/AgentHistorySessionRow.tsxmobile/src/agent-history/AgentHistoryStateView.tsxmobile/src/agent-history/MobileAgentSessionHistoryList.tsxmobile/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/automations/AutomationManager.tsxmobile/src/browser/use-mobile-browser-stream.tsmobile/src/components/ActionSheetModal.tsxmobile/src/components/AutoHeight.tsxmobile/src/components/DisclosureChevron.tsxmobile/src/components/DragReorderRow.tsxmobile/src/components/JiraConnectPrompt.tsxmobile/src/components/MobileDiffReviewBody.tsxmobile/src/components/MobileDiffReviewScreenView.tsxmobile/src/components/MobileLoadErrorState.tsxmobile/src/components/MobileMarkdown.rendering.test.tsxmobile/src/components/MobileMarkdown.tsxmobile/src/components/MobilePRSidebar.tsxmobile/src/components/MobileSegmentedControl.tsxmobile/src/components/MobileStateView.tsxmobile/src/components/MobileSwitch.tsxmobile/src/components/NewWorktreeFormOptions.tsxmobile/src/components/NewWorktreeFormSheet.tsxmobile/src/components/NewWorktreeModal.test.tsxmobile/src/components/NewWorktreeModal.tsxmobile/src/components/NewWorktreeProjectTargetFields.tsxmobile/src/components/PickerListDrawer.tsxmobile/src/components/PickerModal.accessibility.test.tsmobile/src/components/PickerModal.tsxmobile/src/components/RightDrawer.tsxmobile/src/components/SheetPrimaryButton.tsxmobile/src/components/SmartWorkspaceSourceField.tsxmobile/src/components/WorktreeListRow.tsxmobile/src/components/bottom-drawer-constants.tsmobile/src/components/bottom-drawer-drag-motion.test.tsmobile/src/components/bottom-drawer-drag-motion.tsmobile/src/components/composer-input/ComposerSendButton.tsxmobile/src/components/composer-input/composer-input-styles.tsmobile/src/components/list/ListGroup.tsxmobile/src/components/list/ListRow.tsxmobile/src/components/list/SectionHeader.tsxmobile/src/components/load-error-description.tsmobile/src/components/mobile-markdown-blocks.tsxmobile/src/components/mounted-bottom-drawer.tsxmobile/src/components/nav-bar/BottomSearchBar.tsxmobile/src/components/nav-bar/FilterChip.tsxmobile/src/components/nav-bar/NavBarButton.tsxmobile/src/components/nav-bar/PageTitle.tsxmobile/src/components/nav-bar/PullDownMenu.tsxmobile/src/components/nav-bar/SheetHeader.tsxmobile/src/components/new-worktree-form-sheet-visibility.test.tsmobile/src/components/new-worktree-form-sheet-visibility.tsmobile/src/components/new-worktree-form-styles.tsmobile/src/components/pr-sidebar/mobile-pr-sidebar-styles.tsmobile/src/components/pr-sidebar/pr-create-empty-state-styles.tsmobile/src/components/sheet-motion-values.tsmobile/src/components/use-bottom-drawer-drag.tsmobile/src/components/use-new-workspace-create-submit.tsmobile/src/components/use-new-workspace-repositories.tsmobile/src/components/use-new-worktree-drawer-navigation.test.tsmobile/src/components/use-new-worktree-drawer-navigation.tsmobile/src/components/worktree-list-row-layout.tsmobile/src/files/MobileFileExplorerPanel.test.tsmobile/src/files/MobileFileExplorerPanel.tsxmobile/src/files/MobileFileMediaPreview.tsxmobile/src/files/MobileFilePreviewBody.tsxmobile/src/files/MobileMarkdownPreviewImage.test.tsxmobile/src/files/MobileMarkdownPreviewImage.tsxmobile/src/files/MobileMarkdownPreviewModeBar.test.tsmobile/src/files/MobilePdfPreview.tsxmobile/src/files/mobile-file-explorer-row.tsxmobile/src/files/mobile-file-explorer-rows.tsxmobile/src/files/mobile-file-preview-retry.test.tsxmobile/src/home/MobileHomeBottomBar.test.tsxmobile/src/home/MobileHomeBottomBar.tsxmobile/src/home/MobileHomeScreen.tsxmobile/src/home/use-mobile-home-data.tsmobile/src/host-screen/host-bottom-bar.test.tsxmobile/src/host-screen/host-list-settings-sync.test.tsmobile/src/host-screen/host-screen-secondary-styles.tsmobile/src/host-screen/host-stored-identity.tsmobile/src/host-screen/host-workspace-list.tsxmobile/src/host-screen/use-host-screen-controller.tsmobile/src/host-screen/use-host-screen-identity.tsmobile/src/host-screen/use-host-screen-state.tsmobile/src/host-screen/use-host-worktree-actions.tsmobile/src/host-screen/workspace-option-controls.tsxmobile/src/host-screen/workspace-options-pager.tsxmobile/src/host-screen/workspace-options-sheet.test.tsxmobile/src/host-screen/workspace-options-sheet.tsxmobile/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/mobile-web-shell/terminal-key-rail.tsxmobile/src/navigation/host-stack-motion.web.tsmobile/src/navigation/host-stack.web.tsxmobile/src/navigation/push-motion.tsmobile/src/session/MobileMarkdownReader.tsxmobile/src/session/MobileNativeChatView.tsxmobile/src/session/MobileSessionAccessoryKeys.tsxmobile/src/session/MobileSessionActiveContent.tsxmobile/src/session/MobileSessionContentState.tsxmobile/src/session/MobileSessionFileReader.tsxmobile/src/session/MobileSessionMarkdownReader.test.tsxmobile/src/session/MobileSessionMarkdownReader.tsxmobile/src/session/MobileSessionTab.tsxmobile/src/session/MobileSessionTabStrip.tsxmobile/src/session/MobileTerminalInputActions.tsxmobile/src/session/TerminalMoreKeysSheet.tsxmobile/src/session/mobile-diff-review-retry.test.tsxmobile/src/session/mobile-native-chat-render-data.tsmobile/src/session/mobile-session-frame-styles.tsmobile/src/session/mobile-session-header-overflow.test.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposer.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposerField.web.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposerMic.tsxmobile/src/session/native-chat/composer/mobile-native-chat-composer-styles.tsmobile/src/session/native-chat/input/MobileNativeChatSessionOptionPickers.tsxmobile/src/session/native-chat/input/MobileNativeChatSessionOptionSegments.tsxmobile/src/session/native-chat/input/MobileNativeChatStopButton.tsxmobile/src/session/native-chat/transcript/MobileNativeChatMessage.tsxmobile/src/session/native-chat/transcript/MobileNativeChatMessageActionsSheet.test.tsxmobile/src/session/native-chat/transcript/MobileNativeChatRowOverlaysHost.test.tsxmobile/src/session/native-chat/transcript/MobileNativeChatRowOverlaysHost.tsxmobile/src/session/native-chat/transcript/mobile-native-chat-message-styles.tsmobile/src/session/terminal-dock-styles.tsmobile/src/session/use-mobile-diff-review-diff-loading.tsmobile/src/session/use-mobile-session-document-readers.tsmobile/src/session/use-mobile-session-presentation.tsmobile/src/settings/terminal-settings-hydration.test.tsxmobile/src/settings/voice-settings-screen.tsxmobile/src/source-control/MobileGitHistoryList.test.tsxmobile/src/source-control/MobileGitHistoryList.tsxmobile/src/source-control/MobileSourceControlFileList.tsxmobile/src/source-control/MobileSourceControlFileRows.tsxmobile/src/source-control/MobileSourceControlPanel.tsxmobile/src/source-control/mobile-source-control-list-styles.tsmobile/src/source-control/source-control-status-retry.test.tsxmobile/src/source-control/use-mobile-source-control-openers.tsmobile/src/tasks/MobileTasksLegacySurface.tsxmobile/src/tasks/linear-search-failure-render.test.tsxmobile/src/tasks/mobile-task-request-cancellation.test.tsxmobile/src/tasks/mobile-tasks-chrome-styles.tsmobile/src/tasks/mobile-tasks-dependencies.tsmobile/src/tasks/mobile-tasks-detail-styles.tsmobile/src/tasks/mobile-tasks-filter-pickers.tsxmobile/src/tasks/mobile-tasks-filter-sheet.tsxmobile/src/tasks/mobile-tasks-github-project-list.tsxmobile/src/tasks/mobile-tasks-item-comments.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-linear-list.tsxmobile/src/tasks/mobile-tasks-list-state.tsxmobile/src/tasks/mobile-tasks-list-styles.tsmobile/src/tasks/mobile-tasks-list-surface.tsxmobile/src/tasks/mobile-tasks-provider-item-list.tsxmobile/src/tasks/mobile-tasks-screen-chrome.tsxmobile/src/tasks/mobile-tasks-search-control.tsxmobile/src/tasks/mobile-tasks-workspace-create-drawer.tsxmobile/src/tasks/use-mobile-tasks-connection-presentation.tsxmobile/src/tasks/use-mobile-tasks-jira-direct-entry.test.tsmobile/src/tasks/use-mobile-tasks-list-and-detail-effects.tsxmobile/src/tasks/use-mobile-tasks-route-and-item-state.tsxmobile/src/tasks/use-mobile-tasks-runtime-hydration.tsxmobile/src/tasks/use-mobile-tasks-task-list-loading.tsxmobile/src/tasks/use-mobile-tasks-workspace-and-project-state.tsxmobile/src/test-support/expo-haptics-node.tsmobile/src/theme/mobile-theme.tsmobile/src/transport/host-list-load-sharing.tsmobile/src/transport/host-store.tsmobile/src/transport/host-store.web.tsmobile/src/worktree/host-workspace-list-states.tsxmobile/vitest.config.ts
Files with no reviewable changes: 8-
- mobile/src/agent-history/agent-history-styles.ts
- mobile/src/components/new-worktree-form-sheet-visibility.test.ts
- mobile/src/tasks/mobile-tasks-dependencies.ts
- mobile/src/components/list/SectionHeader.tsx
- mobile/src/files/mobile-file-explorer-rows.tsx
- mobile/src/components/new-worktree-form-sheet-visibility.ts
- mobile/src/agent-history/AgentHistoryStateView.tsx
- mobile/src/components/MobileLoadErrorState.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.
-
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Give authentication failure precedence over the load error. · MobileAccountsLoadState.tsx:1-67
mobile/src/accounts/MobileAccountsLoadState.tsx:1-67
Minor · Functional Correctness · Quick win Give authentication failure precedence over the load error.
An in-flight
accounts.listrequest can fail when the connection becomesauth-failed. IfhostNameis still empty, the current error-first condition rendersMobileLoadErrorStateand hides theRe-pairaction. The generic error state has no recovery action when the connection is no longerconnected. Checkauth-failedbefore the generic error branch.Suggested fix
- if (error && (connState === 'connected' || !hostName)) { - return ( - <MobileLoadErrorState error={error} onRetry={connState === 'connected' ? onRetry : null} /> - ) - } if (connState === 'auth-failed') { return ( <MobileStateView @@ }} /> ) } + if (error && (connState === 'connected' || !hostName)) { + return ( + <MobileLoadErrorState error={error} onRetry={connState === 'connected' ? onRetry : null} /> + ) + }

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:
c4c478f7-e9a6-49e7-ab08-abf68939283e
Files selected for processing: 17-
mobile/rpc-foundation/goldens/matrix-settings.task-hydration-linear.status-1.jsonmobile/rpc-foundation/goldens/matrix-settings.task-hydration-preflight.check-1.jsonmobile/rpc-foundation/goldens/matrix-settings.task-hydration-settings.get-1.jsonmobile/rpc-foundation/goldens/matrix-settings.task-hydration-status.get-1.jsonmobile/rpc-foundation/goldens/matrix-settings.task-hydration-ui.get-1.jsonmobile/rpc-foundation/goldens/schedules-settings-task-hydration-fulfilled.jsonmobile/rpc-foundation/goldens/settings-task-hydration-transport-error.jsonmobile/src/accounts/MobileAccountsLoadState.tsxmobile/src/accounts/MobileAccountsScreen.tsxmobile/src/components/ActionSheetModal.tsxmobile/src/components/list/ListRow.tsxmobile/src/i18n/locales/en.jsonmobile/src/settings/settings-screen-state.test.tsxmobile/src/settings/voice-settings-screen.tsxmobile/src/tasks/use-mobile-tasks-runtime-hydration.tsxmobile/src/transport/host-list-load-sharing.test.tsmobile/src/transport/host-list-load-sharing.ts
Files skipped from review as they are similar to previous changes: 6-
- mobile/src/accounts/MobileAccountsLoadState.tsx
- mobile/src/accounts/MobileAccountsScreen.tsx
- mobile/src/transport/host-list-load-sharing.ts
- mobile/src/tasks/use-mobile-tasks-runtime-hydration.tsx
- mobile/src/settings/voice-settings-screen.tsx
- 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; 8 remain after this review.
-
0554df6 to
ae62d53
Compare
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Keep the provider list loading during… · use-mobile-tasks-runtime-hydration.tsx:143-145
mobile/src/tasks/use-mobile-tasks-runtime-hydration.tsx:143-145
Minor · Functional Correctness · Quick win Keep the provider list loading during incomplete hydration when no rows are retained.
Reconnect hydration can mark the current client as supported before
taskStateHydratedbecomes true. If the prior settled list was empty,taskListSettledremains true, so the provider list skips the loading state and shows its empty label while the new read is still pending. Gate this predicate on hydration when no retained rows or project rows exist, while preserving already-rendered rows during reconnect.Suggested fix
+ const hasRetainedItems = + provider === 'github' && githubMode === 'project' + ? (model.githubProjectTable?.rows.length ?? 0) > 0 + : provider === 'linear' + ? model.linearIssuesForView.length > 0 + : model.sortedItems.length > 0 const loading = - model.loading || (connState === 'connected' && !model.taskListSettled && !model.error) + model.loading || + (connState === 'connected' && + !model.error && + (!model.taskListSettled || (!model.taskStateHydrated && !hasRetainedItems)))

Minor · Discard saved transforms for screens outside the next motion. · host-stack-motion.web.ts:90-98
mobile/src/navigation/host-stack-motion.web.ts:90-98
Minor · Functional Correctness · Quick win Discard saved transforms for screens outside the next motion.
When the push from A to B is interrupted by
pushOther, the cleanup stores A's computed transform. The B-to-C run clears only B and C. The following B-to-A pop then starts A from that stale transform instead ofUNDER_SHIFT, so A can appear at the wrong offset on the first frame.Capture the starts for the new run, then clear saved transforms for mounted screens that are not
movingorunder.Suggested fix
export function runStackMotion(args: { kind: 'push' | 'pop' moving: HTMLElement | null under: HTMLElement | null + nodes: Iterable<HTMLElement> onSettled: () => void }): () => void { - const { kind, moving, under, onSettled } = args + const { kind, moving, under, nodes, onSettled } = args if (moving === null) { return () => {} } const push = kind === 'push' const options: KeyframeAnimationOptions = { duration: PUSH_SLIDE_MS, easing: PUSH_EASING_CSS, fill: 'both' } const from = (node: HTMLElement, rest: string) => stoppedAt.get(node) ?? rest + const movingStart = from(moving, push ? 'translateX(100%)' : 'translateX(0)') + const underStart = + under === null ? null : from(under, push ? 'translateX(0)' : UNDER_SHIFT) + for (const node of nodes) { + if (node !== moving && node !== under) { + stoppedAt.delete(node) + } + } const slide = moving.animate( push - ? [{ transform: from(moving, 'translateX(100%)') }, { transform: 'translateX(0)' }] - : [{ transform: from(moving, 'translateX(0)') }, { transform: 'translateX(100%)' }], + ? [{ transform: movingStart }, { transform: 'translateX(0)' }] + : [{ transform: movingStart }, { transform: 'translateX(100%)' }], options ) @@ push - ? [{ transform: from(under, 'translateX(0)') }, { transform: UNDER_SHIFT }] - : [{ transform: from(under, UNDER_SHIFT) }, { transform: 'translateX(0)' }], + ? [{ transform: underStart ?? 'translateX(0)' }, { transform: UNDER_SHIFT }] + : [{ transform: underStart ?? UNDER_SHIFT }, { transform: 'translateX(0)' }], options )under: nodes.current.get((push ? transition.underKey : topKey) ?? '') ?? null, + nodes: nodes.current.values(), onSettled: settle

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:
1df5c2ad-ad6c-4afc-bfab-75365498b5c6
Files selected for processing: 17-
mobile/src/components/MobileSvgPreview.tsxmobile/src/files/MobileFilePreviewBody.test.tsxmobile/src/files/MobileFilePreviewBody.tsxmobile/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/MobileSessionFileReader.tsxmobile/src/session/mobile-native-chat-render-data.tsmobile/src/theme/mobile-theme.ts
Files skipped from review as they are similar to previous changes: 11-
- mobile/src/i18n/locales/zh.json
- mobile/src/i18n/locales/zh-Hant.json
- mobile/src/i18n/locales/es.json
- mobile/src/i18n/locales/de.json
- mobile/src/i18n/locales/ja.json
- mobile/src/i18n/locales/ko.json
- mobile/src/i18n/locales/ru.json
- mobile/src/i18n/locales/tr.json
- mobile/src/i18n/locales/pt.json
- mobile/src/i18n/locales/en.json
- mobile/src/i18n/locales/fr.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.
-
ae62d53 to
b2962cb
Compare
…d layout jumps Every control presses and disables the same way, with one haptic rule. Sheets follow the finger and settle without bounce, pickers stack instead of swapping, and screens slide over a dimmed, shifted parent. Loading, empty, error and offline states share one view with plain-language errors, rows and labels line up on one grid, and screens stop jumping as data arrives.
…hot current Voice settings with no paired desktop shows the connect state instead of loading forever. A failed task settings read after a successful probe retries hydration. The shared host-list snapshot drops on invalidation and ignores stale passes. Accounts shows a re-pair state on auth failure, and busy action-sheet rows keep their disabled state for screen readers.
b2962cb to
b141ce9
Compare
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Handle authentication failure separately. · MobileSessionActiveContent.tsx:46
mobile/src/session/MobileSessionActiveContent.tsx:46
Minor · Functional Correctness · Quick win Handle authentication failure separately.
When a session has no visible tabs and the connection is
auth-failed, this branch shows “Connecting” indefinitely. The header instead reports “Pairing invalid.” Show a pairing error and recovery guidance rather than a loading state. (raw.githubusercontent.com)

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:
11e87136-cd99-4cc8-a4b1-3e0120db2135
Files selected for processing: 5-
mobile/src/i18n/locales/en.jsonmobile/src/session/MobileSessionActiveContent.tsxmobile/src/session/native-chat/transcript/MobileNativeChatMessage.tsxmobile/src/session/native-chat/transcript/MobileNativeChatMessageActionsSheet.test.tsxmobile/vitest.config.ts
Files skipped from review as they are similar to previous changes: 1-
- 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; 7 remain after this review.
-
ELI5
The phone app now behaves more consistently:
What Changed
An audit of five areas on the phone-size preview drove this pass: press feedback, motion, states, spacing and jumps. It measured element positions frame by frame where it could, and each fix went to the component that owns the problem.
One pressed opacity (0.7) and one disabled opacity (0.4), as
feedbacktokens. Pressed fills usetranslucentFill, so presses show in light mode too (sheet header actions, ⋯ menus, workspace rows).Session tabs and segmented switchers now show a pressed state.
44 pt touch areas for terminal dock keys, composer buttons and the workspace lineage toggle.
One haptic rule:
This drops the medium thump from task-row taps and the double tick from pickers.
Composer insets are 12 pt on chat, the terminal dock and source control.
mounted-bottom-drawer.tsx):MobileStateViewwith loading, empty, no-match (Clear), error (Retry plus a Details toggle for the raw text) and offline (Waiting for {host}, Reconnect) variants.describeLoadErrorturns socket errors and RPC codes into one sentence.t().ActionSheetModalandPickerModalare built onListGroup/ListRow.peekHosts(), so no "Host" or "No paired desktops" flash.Why
These were the rough edges left after the redesign: presses that didn't show, sheets that stalled and bounced, raw exceptions and endless spinners, edges at 12, 14, 16 and 28 pt on the same screen, and layout that shifted as data loaded.
Linked Issue
N/A. Follow-up polish to #36585, from an audit; no issue.
Visual Proof
Left is
main, right is this branch. Phone-size renders of the OTA pages against a fake host. The states rows force a failed, offline or empty reply.Testing
Re-measured the motion on the built bundle:
pnpm tc,pnpm lint,check:code-quality:changed,check:react-doctor:changed,check:zustand-selector-fanout, both mobile localization checks, the mobile tests typecheck,build:mobile-web(183 assets, within the shell's budget) and all 455 mobile page render checks pass.The full mobile suite passes except
mobile-e2ee-v2-client-session("preserves full large text frames"), which fails locally onmaintoo.The stack-transition render test now asserts the parallax rule: the list stays painted and moves between 0 and −30% mid-slide.
Re-recorded RPC goldens where the requests are the same and only element counts or text changed (tasks list, files explorer, git history, Agent History).
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
mobile/src/components/mounted-bottom-drawer.tsxand its new gesture and motion helpers: the drag, release and scrim rules.mobile/src/components/MobileStateView.tsxandload-error-description.ts: the shared states.mobile/src/theme/mobile-theme.ts: thefeedbacktokens.SectionHeaderlives incomponents/list/ListGroup.tsx. A separate file, even a re-export, makes esbuild emit an extra shared chunk, and the bundle sits at the shell's 183-asset ceiling.Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Mobile only. Home, the drawer's native paths and the settings screens ship with the next app build; the rest are OTA pages. There are no RPC changes.
Deferred, each needing an iPhone, an app release or a product call:
bodySize14 → 15Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)