Skip to content

fix: use bridge metro runtime descriptors#425

Merged
thymikee merged 1 commit intomainfrom
fix/metro-bridge-descriptor-runtime
Apr 17, 2026
Merged

fix: use bridge metro runtime descriptors#425
thymikee merged 1 commit intomainfrom
fix/metro-bridge-descriptor-runtime

Conversation

@thymikee
Copy link
Copy Markdown
Contributor

@thymikee thymikee commented Apr 17, 2026

Summary

Use bridge-provided Metro runtime descriptors as the source of truth for bridged Metro sessions.

  • stop sending a synthesized iOS ios_runtime.metro_bundle_url in /api/metro/bridge requests
  • allow bridge-backed Metro prep to omit metroPublicBaseUrl and rely on metroProxyBaseUrl as the bridge origin
  • assert bridged descriptors include an iOS runtime bundle URL before exposing runtime hints to consumers
  • update Metro tests, smoke fixtures, docs, and skill guidance for iOS wildcard HTTPS descriptors and Android /api/metro/runtimes/<runtimeId>/... routes

Touched files: 17. Scope stayed within the remote Metro/client API and related docs/tests.

Compatibility note: this expects a descriptor-driven bridge server that accepts /api/metro/bridge without a client-provided ios_runtime. Older bridge servers that still require ios_runtime.metro_bundle_url need to be updated before pairing with this client behavior.

Validation

  • pnpm format
  • pnpm check:quick
  • pnpm check:unit
  • node --test test/integration/installed-package-metro.test.ts

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 17, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-425/

Built to branch gh-pages at 2026-04-17 17:51 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee force-pushed the fix/metro-bridge-descriptor-runtime branch from 40e0f90 to d52ee18 Compare April 17, 2026 17:51
@thymikee thymikee merged commit ee6cc7c into main Apr 17, 2026
15 checks passed
@thymikee thymikee deleted the fix/metro-bridge-descriptor-runtime branch April 17, 2026 18:01
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