Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/mobile
Steps to reproduce
This needs the phone to already be in the state where Clerk's native SDK holds an active session but the JS side (useAuth) reports signed out. I don't have a deterministic way to get there. It happened on its own on an Android device that had been signed in to T3 Connect for a while.
Once in that state:
- Open an environment's routes and tap Add route. Under "Or use the managed relay" the app shows Sign in to T3 Connect instead of the account's cloud environments.
- Tap Sign in to T3 Connect. This opens
SettingsAuth, which renders the nativeAuthViewbecauseuseAuth().isSignedInis false. - The native sign-in fails immediately with "You're already signed in."
- Go back. Nothing changed: still no T3 Connect route, still the sign-in row. Force-stopping the app didn't help either.
Expected behavior
If the native SDK already has an active session, the app should pick it up. Either the JS client syncs from native, or the sign-in screen recovers from session_exists. The T3 Connect routes should then appear, the same as for a signed-in user.
Actual behavior
It's a dead end. JS stays signed out, so:
CloudEnvironmentRows/SignedInCloudEnvironmentRowsnever show cloud environments.ConnectionsNewRouteScreen'sT3ConnectSectionkeeps offering "Sign in to T3 Connect".SettingsAuthRouteScreenkeeps renderingAuthView, which can only fail withsession_exists.
The user can't recover inside the app. The only way out is clearing app data, which also wipes every paired environment.
On the server side, the Mac host's auth_sessions table shows no T3 Connect (dpop-access-token) connections from the device after the desync. So the phone really isn't using T3 Connect, even though Clerk considers it signed in.
Impact
Major degradation or frequent failure
Version or commit
Mobile 2.2.0 (Android). Built from a fork, but the relevant files are identical on current main (8b44f42b14): SettingsAuthRouteScreen.tsx, ConnectionsNewRouteScreen.tsx, CloudEnvironmentRows.tsx, features/cloud/CloudAuthProvider.tsx, @clerk/expo 4.14.0, and the @clerk/expo-native-components@0.4.0 patch.
Host: T3 Code desktop 0.1.7-nightly.20261102 on macOS.
Environment
Pixel 10 Pro XL, Android 17 (API 37).
Logs or stack traces
From adb logcat, captured when tapping "Sign in to T3 Connect" (IDs and user details removed):
E/ClerkLog: Clerk error: Failed to create SignIn: ClerkErrorResponse(errors=[Error(message=Session already exists, longMessage=You're already signed in., code=session_exists, meta=null)], meta={"client":{"object":"client","id":"client_…","sessions":[{"object":"session","id":"sess_…","status":"active", …}]}})
E/ClerkLog: Clerk error: Automatic passkey sign-in failed: You're already signed in.
The response shows the native client has one active session. In the same app process, JS useAuth({ treatPendingAsSignedOut: false }) returns isLoaded: true, isSignedIn: false.
I couldn't capture the JS-side warnings from @clerk/expo's nativeClientSync (e.g. "Native client sync is waiting for the native Clerk SDK to configure"), because this build doesn't send JS console output to logcat. So I can't say why the native→JS sync didn't run. That part may be a Clerk SDK bug.
Workaround
Clear the app's data (Android Settings → Apps → T3 Code → Storage → Clear storage), sign in again, and re-pair every environment.
Possible fix
T3 could recover from this state itself, whatever caused the desync. When SettingsAuthRouteScreen mounts with isLoaded && !isSignedIn, or when the native AuthView reports session_exists, refresh the JS client from the shared device token and activate the client's default session. That's the same thing nativeClientSync's pull() does: clerk.updateClient(await clerk.client.fetch()), then setActive({ session }). That way the screen closes and the cloud routes appear, instead of a sign-in that can never succeed.
Activity
shivamhwp commentedon Nov 4, 2026
Issue watch found Julius has taken this over in #30893, head 7ab735c. Stopping this worker to avoid duplicate work. The report identifies Android 17 on a Pixel 10 Pro XL; no iOS reproduction is reported. This worker made no code changes and ran no device tests. Native device recovery remains unverified, as the PR also records.