Skip to content

fix: route full AppRoutes from chat to the outer nav host#1066

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-add-money-swap-unknown-screen
Jul 10, 2026
Merged

fix: route full AppRoutes from chat to the outer nav host#1066
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-add-money-swap-unknown-screen

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Opening Phantom via Add Money inside a chat crashed with IllegalStateException: Unknown screen Swap(...). FlowConversationScreen handled Event.OpenScreen (non-sheet branch) via LocalCodeNavigator, which inside a FlowHost is the inner navigator whose backstack only registers ChatStep keys. Pushing a full AppRoute.Token.Swap onto it hit Navigation 3's fallback.

Route full AppRoutes to LocalOuterCodeNavigator instead, whose nav host (appEntryProvider) registers Token.Swap/Info/Discovery. This also fixes the same latent crash for Token.Discovery (ChatViewModel:709) and Token.Info (MessengerScreen:124).

Opening Phantom via Add Money inside a chat crashed with
IllegalStateException: Unknown screen Swap(...). FlowConversationScreen
handled Event.OpenScreen (non-sheet branch) via LocalCodeNavigator, which
inside a FlowHost is the inner navigator whose backstack only registers
ChatStep keys. Pushing a full AppRoute.Token.Swap onto it hit Navigation
3's fallback.

Route full AppRoutes to LocalOuterCodeNavigator instead, whose nav host
(appEntryProvider) registers Token.Swap/Info/Discovery. This also fixes
the same latent crash for Token.Discovery (ChatViewModel:709) and
Token.Info (MessengerScreen:124).

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jul 10, 2026
@bmc08gt bmc08gt merged commit e0c51b0 into code/cash Jul 10, 2026
3 checks passed
@github-actions github-actions Bot added the type: fix Bug fix label Jul 10, 2026
@bmc08gt bmc08gt deleted the fix/chat-add-money-swap-unknown-screen branch July 10, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant