Skip to content

Remove --version spawn from debugger shell preparation#56706

Open
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D104061238
Open

Remove --version spawn from debugger shell preparation#56706
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D104061238

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented May 6, 2026

Summary:
Addresses an issue where on macOS, we briefly flashed the RNDT app icon in the Dock. (This has been raised to us recently by Expo.)

More info

The unstable_prepareDebuggerShell health check was spawning the Electron binary with --version after a successful dotslash fetch. Invoking the native binary causes the app icon flash.

  • I couldn't find an Electron-side way to eliminate this (e.g. headless).
  • DotSlash already performs mandatory verification of every fetched artifact. The additional --version spawn was therefore redundant/overkill.

Changelog:
[General][Fixed] - React Native DevTools will no longer briefly flash in the system dock/taskbar when starting Metro

Differential Revision: D104061238

Summary:
Addresses an issue where on macOS, we briefly flashed the RNDT app icon in the Dock. (This has been raised to us recently by Expo.)

**More info**

The `unstable_prepareDebuggerShell` health check was spawning the Electron binary with `--version` after a successful `dotslash fetch`. Invoking the native binary causes the app icon flash.

- I couldn't find an Electron-side way to eliminate this (e.g. headless).
- DotSlash already performs mandatory verification of every fetched artifact. The additional `--version` spawn was therefore redundant/overkill.

Changelog:
[General][Fixed] - React Native DevTools will no longer briefly flash in the system dock/taskbar when starting Metro

Differential Revision: D104061238
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 6, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels May 6, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 6, 2026

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D104061238.

@huntie
Copy link
Copy Markdown
Member Author

huntie commented May 6, 2026

cc @kitten

Copy link
Copy Markdown
Contributor

@kitten kitten left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for taking a look at this 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants