Skip to content

fix(NEYN-10434): backward-compat openSnap → openMiniApp in host/SDK#593

Draft
neynar-chatbot-agent wants to merge 1 commit into
mainfrom
cursor/open-snap-backcompat-abae
Draft

fix(NEYN-10434): backward-compat openSnap → openMiniApp in host/SDK#593
neynar-chatbot-agent wants to merge 1 commit into
mainfrom
cursor/open-snap-backcompat-abae

Conversation

@neynar-chatbot-agent

Copy link
Copy Markdown

Summary

Resolves NEYN-10434: legacy Frames open_snap actions (wired over Comlink as openSnap) were rejected by the mini app host because only openMiniApp was handled, so clicks did nothing.

Changes

  • packages/miniapp-host/src/comlink/comlink.ts: handle openSnap APPLY messages by delegating to the same implementation as openMiniApp.
  • packages/miniapp-host/src/helpers/sdk.ts: expose openSnap on the wire host as an alias of openMiniApp.
  • packages/miniapp-sdk/src/sdk.ts / types.ts: add actions.openSnap as an alias of openMiniApp for explicit SDK use.
  • packages/miniapp-core/src/types.ts: extend WireMiniAppHost with openSnap and add actions.openSnap to miniAppHostCapabilityList so manifests can require the legacy capability path.

Testing

  • pnpm --filter @farcaster/miniapp-core build
  • pnpm --filter @farcaster/miniapp-host --filter @farcaster/miniapp-sdk typecheck
  • pnpm --filter @farcaster/miniapp-core test
  • pnpm biome check on touched files

Linear Issue: NEYN-10434

Open in Web Open in Cursor 

Wire path openSnap matches the Frames SDK open_snap action used by
older mini apps. Forward it to openMiniApp in the host, expose the
same alias on WireMiniAppHost and sdk.actions, and add actions.openSnap
to the capability list for manifest validation.
@changeset-bot

changeset-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: cd753cd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Apr 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
miniapps-docs Ready Ready Preview, Comment Apr 16, 2026 8:08am

Request Review

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