feat(mobile-remote): add platform adapter and Tauri iOS shell - #1271
Merged
Conversation
The Tauri shell registers org2remote://pair and hands the raw link to the shared parser, but parsePairingLink only accepted orgii:// and http(s)://. Every native pairing link therefore failed to parse, and because MobileRemoteApp suppresses the stored-desktop bootstrap whenever a pairing intent is present, the phone also skipped loading its paired desktops and sat on the welcome screen with an empty Devices tab. Accept org2remote://pair and read the payload from the pair query parameter as well as the fragment, matching what the shell's hasOpaquePairPayload accepts.
Carry develop mobile UX onto the platform boundary: route model dropdown portals through runtime.portalContainer(), keep Supabase PKCE persistence enabled in the shared auth client, and wrap composer tests with the platform provider the app already supplies.
The bridge now reads runtime timers from the injected platform port, so its regression suite must mount the same provider the app supplies.
…test The adapter test built a real Supabase client, whose RealtimeClient throws on a Node runtime without a global WebSocket. CI runs Node 20, so the suite failed there while passing on local Node 22. Mock `@supabase/supabase-js` the way `auth/mobileAuthClient.test.ts` already does; the adapter under test only owns storage, error mapping and the server-session opt-out.
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.
Problem
Mobile Remote (#1150, merged) ships the browser/PWA control surface on
develop, but there is no installable iOS host and the shared UI still depends on browser globals for OAuth, storage, sockets, timers, and visibility. The prior stacked PRs (#1220 platform adapter onjunyu/mobile-remote-control, #1222 iOS shell onjunyu/ios-remote-shared) were hard to review and merge independently, and the localios-remote-shellworktree accumulated Cloud-tab UI experiments that are out of scope for the iOS shell.Solution
Consolidate #1220 + #1222 into one branch rebased on current
develop, keeping the merged Mobile Remote product UI (sessions/devices/settings, pairing, composer) and excluding Cloud-only home-tab UI.MobileRemotePlatformwith browser and Tauri iOS adapters (platform/browser,platform/tauri, sharedsupabaseMobileAuthClient).apps/remote-ios/plusmobileRemoteNativeEntry.tsx,build:mobile-native, and native OAuth/Keychain/deep-link pairing.portalContainer()for model dropdown portals, PKCE persistence, device label resolution).Potential risks
org2remote://auth/callbackoutside this repository.Verification
pnpm typecheck— passedpnpm test -- src/modules/MobileRemote src/mobileRemoteEntry.test.ts --reporter=dot— 45 files, 241 tests passedorigin/develop(2026-09-04)CloudTab,CloudSessionScreen,HomeEntryTabs, oruseMobileCloudCatalogundersrc/modules/MobileRemote/on this branchpnpm build,pnpm build:mobile-native,cargo check --target aarch64-apple-ios, Xcode simulator launch, physical-device matrixSupersedes
refactor(mobile-remote): add platform adapter boundaryfeat(mobile-remote): add Tauri iOS shell