GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — fix(mobile): T3 Connect sign-in recovers after launching offline by tris203 · Pull Request #41712 · pingdotgg/t3code Conversation
Contributor
ProblemIf the mobile app starts while the device has no network (Android often restarts a killed app as you return to it, sometimes before Wi‑Fi reconnects), Clerk's first load fails and never retries. The T3 Connect sign-in stays empty, so every environment — including ones on a LAN route — sits on "This device is still loading its T3 Connect sign-in" and keeps retrying until the app is force-quit. Reproduce on Android: force-stop the app, turn on airplane mode, open the app, wait ~10 s, turn airplane mode off. Expected: the sign-in loads and environments reconnect. Actual: stuck until force-quit. Seen on the Android internal build This is the mobile side of #37602. #37621 fixes the web client by reloading the page; that does not apply to mobile. Change
ScopeBug fix. Linked issue: #37602 (same symptom and cause, reported for desktop). VerificationOn an Android emulator (Pixel 9, API 37) with the dev client and production T3 Connect config, signed out. The "T3 Account" row in Settings shows "Checking" until Clerk has loaded, so it shows whether the load recovered.
Not checked: the signed-in path end to end, meaning an offline launch while signed in that then reconnects a T3 Connect environment once the network returns. I only tested signed out, so that path is inferred from Clerk's code, not observed. Claude Opus 5.5 in Claude Code (T3 Code)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Pass the resource cache to Clerk apps/mobile/src/features/cloud/CloudAuthProvider.tsx |
The service singleton and rendered ClerkProvider receive Clerk’s resourceCache. |
Ignore the Expo placeholder client packages/client-runtime/src/relay/cloudAccountService.ts, packages/client-runtime/src/relay/cloudAccountService.test.ts |
The service rejects client_DUMMY_ID as a placeholder. The offline-launch test verifies that this observation leaves the service unobserved and produces no log entries. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
pingdotgg/t3code#24306 — The issue reports a mobile account row stuck on “Checking” during launch. This change addresses an offline-launch placeholder observation, though the issue’s trigger is unknown.Possibly related PRs
Suggested reviewers: juliusmarminge, macroscopeapp
6bfe0This change lets mobile T3 Connect sign-in recover after the app launches offline, and it stops the Clerk placeholder client from being treated as a sign-out. No concrete merge-blocking risk was established. The signed-in offline-launch and reconnection path was not tested and is worth a manual check if convenient.
Explanation
The title names the main change: a mobile fix so T3 Connect sign-in recovers after the app launches offline. The changeset enables Clerk's resource cache and treats the client_DUMMY_ID placeholder as an id-less client, which matches the title. It is a conventional commit title in plain language.
Explanation
The description follows the template sections: Problem, Change, Scope, and Verification. The Problem section gives the symptom, reproduction steps, and expected and actual behavior. The Change section explains both the resource cache and the client_DUMMY_ID handling, and why each is needed. Scope links issue #37602 and calls the work a bug fix. Verification gives focused test results and before/after evidence, and it states what was not checked. The author also names the model and harness used, as the template asks. Minor gap: the Scope section does not say why the change needs no issue, but a linked issue is provided, so this is not required.
5bbbb487-1efe-4684-8b17-a9f678efd9a3apps/mobile/src/features/cloud/CloudAuthProvider.tsxpackages/client-runtime/src/relay/cloudAccountService.test.tspackages/client-runtime/src/relay/cloudAccountService.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6bfe0fb to
121ba4a
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.