Skip to content

Remove --version spawn from debugger shell preparation#56706

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D104061238
Closed

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

Conversation

@huntie

@huntie huntie commented May 6, 2026

Copy link
Copy Markdown
Member

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

meta-codesync Bot commented May 6, 2026

Copy link
Copy Markdown

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

@huntie

huntie commented May 6, 2026

Copy link
Copy Markdown
Member Author

cc @kitten

@kitten kitten left a comment

Copy link
Copy Markdown
Contributor

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 🙌

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 6aa7e35 May 22, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 22, 2026
@meta-codesync

meta-codesync Bot commented May 22, 2026

Copy link
Copy Markdown

This pull request has been merged in 6aa7e35.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 6aa7e35

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D104061238 branch May 22, 2026 18:58
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 Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants