Repository navigation
refactor(mobile): every build is the OTA shell; drop the native/OTA build switch - #29969
Merged
Merged
Conversation
…prop; unknown routes say unavailable
…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
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
Contributor
✨ Finishing Touches
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. Comment |
8 of 9 tasks
This was referenced Oct 21, 2026
7 of 9 tasks
8 of 9 tasks
This was referenced Oct 29, 2026
9 of 10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Every mobile build is now the OTA shell. The native/OTA build switch is gone:
EXPO_PUBLIC_MOBILE_SHELL,mobileShellBuildKindandshellSwitchDecisionare removed.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 existingPageRouteUnavailableScreenrefusal 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 duplicatedindex.tsx. The page bundle sweep is re-measured (77 scripts at 15 routes).cacheVersionshell suffix and its test are removed: nothing reads the variable any more, so there is nothing for a warm cache to get wrong.Bridge protocol: Ninstead of a one-value shell kind.shelldispatch 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
tsc --noEmit,pnpm lint,oxfmt --check, tests-typecheck ratchet: pass--maxWorkers=2): 10779 passed, 6 skippedcheck:code-quality:changed: 0 findingspnpm build:mobile-web: builds and verifiesconfig/scriptspage-builder, page-route and mobile release suites: passshell-switch-build-kind.test.tsxbecameshell-route-first-frame.test.tsx: every switch commits the shell on its first frame, and the refusal for params naming no screen.