Skip to content

fix: require explicit bridge lease for devtools tunnel#487

Merged
thymikee merged 1 commit intomainfrom
fix/ios-react-devtools-lease-gate
Apr 30, 2026
Merged

fix: require explicit bridge lease for devtools tunnel#487
thymikee merged 1 commit intomainfrom
fix/ios-react-devtools-lease-gate

Conversation

@thymikee
Copy link
Copy Markdown
Contributor

@thymikee thymikee commented Apr 30, 2026

Summary

  • Require an explicit remote bridge lease backend before starting the React DevTools companion tunnel.
  • Support remains for both android-instance and ios-instance; platform-only Android/iOS flags no longer opt in.
  • Reduce React DevTools test duplication and remote bridge config branching so Fallow stays clean.
  • Clarify the React DevTools help copy.

Touched files: 3. Scope stayed within the React DevTools CLI command path and help text.

Validation

  • pnpm format
  • pnpm check:fallow --base origin/main
  • pnpm exec vitest run src/__tests__/cli-react-devtools.test.ts
  • pnpm exec vitest run src/utils/__tests__/args.test.ts
  • pnpm check:quick

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

PR Preview Action v1.8.1

QR code for preview link

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

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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ec6048b2f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cli/commands/react-devtools.ts Outdated
return flags.leaseBackend === 'android-instance' || flags.leaseBackend === 'ios-instance';
}
return flags.platform === 'android' || flags.platform === 'ios';
return flags.platform === 'android';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Fail fast when iOS bridge backend is missing

This change makes isSupportedRemoteBridge return false for iOS whenever leaseBackend is absent, so react-devtools silently skips companion startup and falls back to local execution even when remote bridge inputs (for example metroProxyBaseUrl, tenant, runId, leaseId) are present. In practice this can break existing iOS remote flows that rely on platform-based inference (including legacy saved connection state or scripts that only pass --platform ios) with no actionable error, which is harder to diagnose than an explicit INVALID_ARGS failure.

Useful? React with 👍 / 👎.

@thymikee thymikee force-pushed the fix/ios-react-devtools-lease-gate branch from 0ec6048 to e6f4bf9 Compare April 30, 2026 17:31
@thymikee thymikee changed the title fix: require ios instance lease for devtools tunnel fix: require explicit bridge lease for devtools tunnel Apr 30, 2026
@thymikee thymikee force-pushed the fix/ios-react-devtools-lease-gate branch from e6f4bf9 to bb6ee7c Compare April 30, 2026 17:33
@thymikee thymikee force-pushed the fix/ios-react-devtools-lease-gate branch from bb6ee7c to f3a3a7a Compare April 30, 2026 18:37
@thymikee thymikee merged commit dc4a162 into main Apr 30, 2026
18 checks passed
@thymikee thymikee deleted the fix/ios-react-devtools-lease-gate branch April 30, 2026 18:42
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