Skip to content

fix(mobile): unbreak mobile typecheck after shared socket-liveness change - #29496

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-mobile-tsc-socket-liveness
Oct 16, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-mobile-tsc-socket-liveness

Conversation

@nwparker

@nwparker nwparker commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

ELI5

Main's mobile type check was failing. This makes the code and four test fixtures type-correct again, with no behavior change.

What Changed

  • remote-runtime-socket-liveness.ts: the timer is read into an unknown local before the unref check. Under mobile's DOM timer types setTimeout returns number, so narrowing the typed variable collapsed to never. Node behavior is unchanged.
  • Four mobile test fixtures were missing permissionModes in StructuredAgentSessionHostSupport, a field added by an earlier merged PR. They now set it to false.

Why

Unblocks Mobile Checks on main. An unknown local needs no cast, which fits the repo's no-assertion rule.

Linked Issue

N/A, CI breakage on main.

Visual Proof

N/A, type-only change.

Testing

pnpm --filter orca-mobile typecheck, typecheck:tests ratchet, pnpm tc, check:code-quality:changed, and the socket-liveness unit test all pass locally.

@nwparker
nwparker merged commit 6b5cd32 into main Oct 16, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant