orca/mobile/src/session
Neil ce687221d3
lint(unicorn): enable prefer-number-properties, prefer-array-find, prefer-array-index-of (#7516)
Enable three unicorn rules — one correctness, two performance — and fix every
existing violation repo-wide so the rules pass as errors.

prefer-number-properties (76 sites)
- parseInt/parseFloat/NaN -> Number.* : safe aliases (autofixed).
- isNaN -> Number.isNaN (12 sites, hand-converted): global isNaN coerces its
  argument, Number.isNaN does not. Verified every call site already passes a
  number (Number.parseInt results, number-typed fields, Date.getTime()), so the
  conversion is behavior-preserving today and guards against a future non-numeric
  argument silently coercing.

prefer-array-find (26 sites)
- .filter(pred)[0] -> .find(pred); .filter(pred).at(-1) / .pop() -> .findLast(pred).
  Drops the intermediate array and short-circuits.

prefer-array-index-of (5 sites)
- .findIndex(x => x === v) -> .indexOf(v).

Verified: typecheck (node/cli/web) clean, 53 affected suites pass (1679 tests),
oxlint clean repo-wide. mobile/ uses findLast safely (already ships ES2023
.toReversed()); config scripts and e2e helpers run on Node 24.
2026-07-05 23:56:37 -07:00
..
MobileTerminalInputActions.tsx Support dictation and image attachments in mobile live input mode (#6603) 2026-06-28 01:20:00 -07:00
MobileTerminalLiveInputStatus.tsx Fix mobile live input keyboard and Korean IME (#7273) 2026-07-03 16:47:59 -07:00
SessionDockColumn.tsx Show the git primary action on mobile Source Control (#6659) 2026-06-29 22:30:46 -07:00
TerminalPaneView.tsx fix(mobile): add terminal link routing setting 2026-06-16 17:05:12 -07:00
github-pr-comment-parsers.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
github-pr-mutations.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
github-pr-mutations.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
github-pr-parsers.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
github-pr-rpc.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
github-pr-rpc.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
github-pr-value-readers.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
github-pr-value-readers.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
markdown-floating-actions-layout.test.ts Fix mobile markdown actions above keyboard (#4945) 2026-06-08 21:27:33 -07:00
markdown-floating-actions-layout.ts Fix mobile markdown actions above keyboard (#4945) 2026-06-08 21:27:33 -07:00
mobile-artifact-kind.test.ts feat(mobile): pickers, workspace parity, active-workspace focus, tap-to-open, source-control parity, artifact viewing (#5330) 2026-06-15 22:02:51 -07:00
mobile-artifact-kind.ts feat(mobile): pickers, workspace parity, active-workspace focus, tap-to-open, source-control parity, artifact viewing (#5330) 2026-06-15 22:02:51 -07:00
mobile-clipboard-image.test.ts fix(mobile): downscale oversized clipboard images so paste no longer fails (#5601) 2026-06-18 18:25:06 -07:00
mobile-clipboard-image.ts fix(mobile): downscale oversized clipboard images so paste no longer fails (#5601) 2026-06-18 18:25:06 -07:00
mobile-diff-comment-edit.test.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-comment-edit.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-comments.test.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-comments.ts lint(unicorn): enable prefer-number-properties, prefer-array-find, prefer-array-index-of (#7516) 2026-07-05 23:56:37 -07:00
mobile-diff-hunks.test.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-hunks.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-lines.test.ts
mobile-diff-lines.ts
mobile-diff-review-loaders.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-review-positioning.test.ts Show the git primary action on mobile Source Control (#6659) 2026-06-29 22:30:46 -07:00
mobile-diff-review-positioning.ts Show the git primary action on mobile Source Control (#6659) 2026-06-29 22:30:46 -07:00
mobile-diff-review-queue.test.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-review-queue.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-review-rpc.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
mobile-diff-review-screen-model.test.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-review-screen-model.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-review-state.test.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-diff-review-state.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
mobile-file-language.ts
mobile-file-syntax.test.ts Fix mobile diff syntax highlighting (#4922) 2026-06-08 17:41:27 -07:00
mobile-file-syntax.ts Fix mobile diff syntax highlighting (#4922) 2026-06-08 17:41:27 -07:00
mobile-image-attachment.test.ts Fix mobile terminal Korean IME composition on Android (#7011) 2026-07-02 02:31:19 -07:00
mobile-image-attachment.ts Fix mobile terminal Korean IME composition on Android (#7011) 2026-07-02 02:31:19 -07:00
mobile-image-source-picker.test.ts feat(mobile): pickers, workspace parity, active-workspace focus, tap-to-open, source-control parity, artifact viewing (#5330) 2026-06-15 22:02:51 -07:00
mobile-image-source-picker.ts fix(mobile): import Buffer from 'buffer', not 'node:buffer' 2026-06-30 01:15:56 -07:00
mobile-markdown-disk-fallback.test.ts Fix file loading on web and mobile remote clients 2026-06-16 14:39:25 -07:00
mobile-markdown-disk-fallback.ts Fix file loading on web and mobile remote clients 2026-06-16 14:39:25 -07:00
mobile-new-tab-agent-options.test.ts
mobile-new-tab-agent-options.ts
mobile-pr-sidebar-resolve.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
mobile-pr-sidebar-resolve.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
mobile-pr-sidebar-state.ts Create pr not working on mobile (#6523) 2026-06-27 18:34:58 -07:00
mobile-session-create-warning-state.test.ts
mobile-session-create-warning-state.ts
mobile-session-route-helpers.ts Fix rich markdown image paste bloat (#5290) 2026-06-12 16:48:09 -07:00
mobile-session-startup-source.test.ts Prevent mobile worktree selection from focusing desktop (#6461) 2026-06-26 19:34:33 -07:00
mobile-terminal-file-tap-open.test.ts Open terminal file links on mobile (#7134) 2026-07-02 18:17:47 -07:00
mobile-terminal-file-tap-open.ts lint(unicorn): enable prefer-number-properties, prefer-array-find, prefer-array-index-of (#7516) 2026-07-05 23:56:37 -07:00
mobile-terminal-records.test.ts Fix remote runtime terminal sharing with mobile (#4901) 2026-06-08 14:26:07 -07:00
mobile-terminal-records.ts Fix remote runtime terminal sharing with mobile (#4901) 2026-06-08 14:26:07 -07:00
mobile-terminal-tab-agent.test.ts Show coding agent icons on mobile terminal tabs (#6792) 2026-06-29 16:06:27 -07:00
mobile-terminal-tab-agent.ts Show coding agent icons on mobile terminal tabs (#6792) 2026-06-29 16:06:27 -07:00
opened-mobile-session-tab.test.ts Show the git primary action on mobile Source Control (#6659) 2026-06-29 22:30:46 -07:00
opened-mobile-session-tab.ts Show the git primary action on mobile Source Control (#6659) 2026-06-29 22:30:46 -07:00
optimistic-write-sequence.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
optimistic-write-sequence.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-actions-engine.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-actions-engine.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-ai-triage-launch.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-ai-triage-launch.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-ai-triage-prompt.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-ai-triage-prompt.ts refs/heads/handle-mobile-pull-request-issues (#6598) 2026-06-28 00:58:17 -07:00
pr-comment-actions.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-comment-actions.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-title-edit.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
pr-title-edit.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
session-panel-host.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
session-panel-host.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
session-tab-snapshot-gate.test.ts fix: close mirrored editor tabs on the host so they stop reopening (#5975) 2026-06-22 14:51:43 -07:00
session-tab-snapshot-gate.ts Harden mobile session tab sync 2026-06-22 13:31:10 -07:00
tab-strip-scroll.test.ts Fix active tab scrolling and editor keyboard layout on mobile (#5271) 2026-06-12 11:09:08 -07:00
tab-strip-scroll.ts Fix active tab scrolling and editor keyboard layout on mobile (#5271) 2026-06-12 11:09:08 -07:00
use-live-worktree-name.ts Refresh live worktree display name in mobile session (#5934) 2026-06-20 16:40:34 -07:00
use-mobile-diff-review-comment-actions.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
use-mobile-diff-review-controller.ts Show the git primary action on mobile Source Control (#6659) 2026-06-29 22:30:46 -07:00
use-mobile-diff-review-git-actions.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
use-mobile-diff-review-interactions.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
use-mobile-diff-review-send-actions.ts Add mobile Review Changes workflow (#5313) 2026-06-13 14:24:26 -07:00
use-mobile-dock-resize.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
use-mobile-image-attachment.ts Fix mobile terminal Korean IME composition on Android (#7011) 2026-07-02 02:31:19 -07:00
use-mobile-pr-actions.test.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
use-mobile-pr-actions.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
use-mobile-pr-ai-triage.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
use-mobile-pr-branch-context.test.ts Create pr not working on mobile (#6523) 2026-06-27 18:34:58 -07:00
use-mobile-pr-branch-context.ts Create pr not working on mobile (#6523) 2026-06-27 18:34:58 -07:00
use-mobile-pr-comment-actions.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
use-mobile-pr-sidebar-controller.test.ts Create pr not working on mobile (#6523) 2026-06-27 18:34:58 -07:00
use-mobile-pr-sidebar-controller.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
use-mobile-pr-title-action.ts feat(mobile): combine PR sidebar and checks parity (#5641) 2026-06-17 22:52:12 -07:00
use-mobile-terminal-paste.ts Fix mobile terminal Korean IME composition on Android (#7011) 2026-07-02 02:31:19 -07:00
use-terminal-live-input-mode-preference.test.ts fix(mobile): preserve terminal input mode on reentry (#7129) 2026-07-02 23:22:30 -07:00
use-terminal-live-input-mode-preference.ts fix(mobile): preserve terminal input mode on reentry (#7129) 2026-07-02 23:22:30 -07:00
worktree-display-name.test.ts Refresh live worktree display name in mobile session (#5934) 2026-06-20 16:40:34 -07:00
worktree-display-name.ts Refresh live worktree display name in mobile session (#5934) 2026-06-20 16:40:34 -07:00
worktree-label.ts fix(mobile): recover Android remote sessions without an app restart (#5061) 2026-06-09 17:55:20 -07:00