Skip to content

refactor(mobile): every build is the OTA shell; drop the native/OTA build switch - #29969

Merged
Jinwoo-H merged 6 commits into
mainfrom
jinwoo/ota-only-shell
Oct 17, 2026
Merged

Jinwoo-H merged 6 commits into
mainfrom
jinwoo/ota-only-shell

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​115 $\color{#cf222e}{\Huge{\mathbf{−}}}$​509 $\color{#cf222e}{\Huge{\mathbf{−}}}$​394
Prod 47 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​143 $\color{#cf222e}{\Huge{\mathbf{−}}}$​444 $\color{#cf222e}{\Huge{\mathbf{−}}}$​301

What changed

Every mobile build is now the OTA shell. The native/OTA build switch is gone:

  • EXPO_PUBLIC_MOBILE_SHELL, mobileShellBuildKind and shellSwitchDecision are removed.
  • Every route switch under mobile/app/h/[hostId]/ always mounts the shell. The native screen element each switch built is deleted. A route that names no screen the shell could open (missing or dot-segment ids, a preview with bad params) now gets the existing PageRouteUnavailableScreen refusal instead of a native screen.
  • app/h/[hostId]/web.tsx (and its page sibling and stack entry) is deleted: nothing linked to it and it duplicated index.tsx. The page bundle sweep is re-measured (77 scripts at 15 routes).
  • The Metro cacheVersion shell suffix and its test are removed: nothing reads the variable any more, so there is nothing for a warm cache to get wrong.
  • Troubleshoot always shows the shell update-failure row. Diagnostics print Bridge protocol: N instead of a one-value shell kind.
  • Comments that described the switch, the flag or native fallback screens are rewritten for what the route files do now.
  • Both release workflows lose the shell dispatch input and the env plumbing. Those steps are back to their pre-feat(mobile): one build-time switch picks native or OTA, default native (OTA phase E1) #22193 form (cd android && ./gradlew assembleRelease, bundle exec fastlane ios build_and_upload). Fastlane never read the variable.

63 files, +258 / -953.

Why

The owner decided to retire the native-screen fallback with no emergency native build. This is step 2 of that plan, stacked on #29956 (step 1a: page-less hosts get the update wall). The build switch has to go before the native screen code can be deleted, because native-shell builds still reached it. The follow-up PR deletes the screens this makes unreachable.

Note: a mobile-*-v* tag push used to build the native shell by default. After this it builds the OTA shell, which is what we ship.

Mixed versions

Phone-only. No wire change, no host change; desktops are untouched. It reaches users only in the next native build. Nothing persisted the shell kind.

Testing

  • mobile tsc --noEmit, pnpm lint, oxfmt --check, tests-typecheck ratchet: pass
  • full mobile vitest (--maxWorkers=2): 10779 passed, 6 skipped
  • root check:code-quality:changed: 0 findings
  • pnpm build:mobile-web: builds and verifies
  • root config/scripts page-builder, page-route and mobile release suites: pass
  • shell-switch-build-kind.test.tsx became shell-route-first-frame.test.tsx: every switch commits the shell on its first frame, and the refusal for params naming no screen.
  • Real-app check (release APK built without the variable, on an emulator) is done on the stacked follow-up PR, which covers both.

…uild switch

The owner retired the native-screen fallback with no emergency native build, so
EXPO_PUBLIC_MOBILE_SHELL, mobileShellBuildKind, shellSwitchDecision, the Metro
cache-key suffix and both release workflows' shell input go. Every host route
mounts the shell; a route naming no screen the shell could open gets the
existing refusal screen instead of a native screen.

Claude-Session: https://claude.ai/code/session_6cea92f6
…one-value shell kind

The host route files no longer switch, so their comments say what they do now:
a route naming no screen shows the unavailable screen. app/h/[hostId]/web.tsx
duplicated index.tsx and nothing linked to it, so it and its stack entry go
(the bundle sweep is re-measured: 77 scripts at 15 routes). Diagnostics print
the bridge protocol on its own instead of a shell kind that has one value.

Claude-Session: https://claude.ai/code/session_6cea92f6
@Jinwoo-H
Jinwoo-H changed the base branch from jinwoo/ota-wall-instead-of-native-fallback to main October 17, 2026 09:01
# Conflicts:
#	mobile/app/h/[hostId]/agent-history/[worktreeId].tsx
#	mobile/app/h/[hostId]/files/[worktreeId].tsx
#	mobile/app/h/[hostId]/files/preview/[worktreeId].tsx
#	mobile/app/h/[hostId]/index.tsx
#	mobile/app/h/[hostId]/review/[worktreeId].tsx
#	mobile/app/h/[hostId]/session/[worktreeId].tsx
#	mobile/app/h/[hostId]/source-control/[worktreeId].tsx
#	mobile/app/h/[hostId]/tasks.tsx
#	mobile/app/h/[hostId]/web.tsx
#	mobile/src/mobile-web-shell/PageRouteUnavailableScreen.tsx
#	mobile/src/mobile-web-shell/catch-all-page-route-states.test.tsx
#	mobile/src/mobile-web-shell/catch-all-page-route.tsx
#	mobile/src/session/MobileDiffReviewRouteScreen.tsx
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H
Jinwoo-H merged commit 37f23b9 into main Oct 17, 2026
34 checks passed
@Jinwoo-H
Jinwoo-H deleted the jinwoo/ota-only-shell branch October 17, 2026 10:11
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