Skip to content

fix(mobile): prevent crash on sign out in settings - #40

Merged
rynfar merged 2 commits into
pylonfrom
upstream/2026-08-15-mobile-signout-crash
Aug 15, 2026
Merged

rynfar merged 2 commits into
pylonfrom
upstream/2026-08-15-mobile-signout-crash

Conversation

@rynfar

@rynfar rynfar commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

Adopts upstream #4899 (277a7cb44), a clean single-file cherry-pick.

Problem

Signing out from the mobile settings account screen crashed the app. ConfiguredSettingsAuthRouteScreen renders UserProfileView while isSignedIn is true, so the moment sign-out flips it false the view is torn out from under itself.

The fix latches hasBeenSignedIn in a ref and navigates back to SettingsContent when a previously signed-in session ends, rather than swapping the subtree mid-unmount.

Why now

This screen was unreachable in Pylon until today — mobile never received Pylon Connect's public config, so hasCloudPublicConfig() was false and every Connect surface, including this one, was omitted. With sign-in working, the crash is newly reachable.

Review context

Found during a targeted review-t3-upstream pass asking whether upstream held a fix or a cause for a separate iOS crash on opening a session. It does not: this is the only mobile crash fix in the 99-commit range, and it touches a different code path. git cherry reports all 99 commits absent from Pylon, so upstream cannot be that crash's cause either.

The ledger cursor is deliberately not advanced — only mobile candidates were assessed, so the batch is incomplete and reviewed-through stays at 1add47b32.

Verification

  • vp run -F @t3tools/mobile typecheck — clean
  • Cherry-pick applied without conflict; no Pylon adaptation needed

Not exercised on a device: the separate session-open crash currently prevents a full mobile pass, and this path needs a real sign-out to trigger.

Model: Claude Opus 5. Harness: Claude Code.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

shubhu121 and others added 2 commits August 15, 2026 11:36
(cherry picked from commit 277a7cb4458257e950b7962f67c8fafd8d0e31ab)
Adopts #4899 and answers the question that prompted the review: upstream
has no fix for the iOS crash on opening a session, and cannot be its cause
either, since Pylon has adopted none of the 99 commits in the range.

The cursor deliberately stays at 1add47b32. Only mobile candidates were
assessed, so the batch is not complete and reviewed-through must not move.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Aug 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for c6c6f51.

This comment will update automatically after the next completed run.

@rynfar
rynfar merged commit aac74ee into pylon Aug 15, 2026
11 checks passed
@rynfar
rynfar deleted the upstream/2026-08-15-mobile-signout-crash branch August 15, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants