Skip to content

Conversation

@ulissesferreira
Copy link
Contributor

… refresh

Ports a fix from Solana Snap to handle cases where users close dialogs before async operations (price fetching, security scanning) complete.

  • Re-check interface context after async operations in cronjob.tsx
  • Add null check after security scan in render.tsx
  • Add test for graceful exit when interface is closed during scan

@ulissesferreira ulissesferreira requested a review from a team as a code owner February 3, 2026 14:16
@ulissesferreira ulissesferreira marked this pull request as draft February 3, 2026 14:19
confirmationInterfaceId,
);

if (!latestContext) {
Copy link
Contributor Author

@ulissesferreira ulissesferreira Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikesposito had asked if this made sense since the types stated that we always had something... Confirmed it can come in as null in the documentation here and confirmed that the code is indeed giving us the wrong type, never mentioning null. Worth pointing it out to the Snaps team so they can fix it.

Image

… refresh

Ports a fix from Solana Snap to handle cases where users close dialogs
before async operations (price fetching, security scanning) complete.

- Re-check interface context after async operations in cronjob.tsx
- Add null check after security scan in render.tsx
- Add test for graceful exit when interface is closed during scan
@ulissesferreira ulissesferreira force-pushed the NEB-322-fix-handle-dismissed-interface-contexts branch from 0388c26 to 3c5c835 Compare February 4, 2026 01:37
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.

2 participants