Skip to content

[codex] Fix onboarding network selection race#4389

Draft
malsomesh9 wants to merge 1 commit into
coral-xyz:masterfrom
malsomesh9:codex/fix-3634-onboarding-network-race
Draft

[codex] Fix onboarding network selection race#4389
malsomesh9 wants to merge 1 commit into
coral-xyz:masterfrom
malsomesh9:codex/fix-3634-onboarding-network-race

Conversation

@malsomesh9
Copy link
Copy Markdown

Summary

Fixes the onboarding race behind issue #3634 where quickly selecting multiple networks could drop the earlier selection.

Root cause

The onboarding provider appended previewed wallet descriptors from an async callback using stale state captured before the first request finished, so later responses could overwrite earlier selections.

Changes

  • allow onboarding state updates to be computed from the latest provider state
  • merge previewed wallet descriptors with the current selection when async previews resolve

Validation

  • ./node_modules/.bin/eslint packages/recoil/src/context/OnboardingProvider.tsx
  • ./node_modules/.bin/tsc -p packages/recoil/tsconfig.json --noEmit (repo-wide pre-existing build graph issues; did not complete cleanly in this fresh clone)

@malsomesh9 malsomesh9 force-pushed the codex/fix-3634-onboarding-network-race branch from 7c74d64 to 25ebf4a Compare April 7, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant