René's URL Explorer Experiment


Title: fix(ios): launch the app once when restarting it on a device by rigor789 · Pull Request #6176 · NativeScript/nativescript-cli · GitHub

Open Graph Title: fix(ios): launch the app once when restarting it on a device by rigor789 · Pull Request #6176 · NativeScript/nativescript-cli

X Title: fix(ios): launch the app once when restarting it on a device by rigor789 · Pull Request #6176 · NativeScript/nativescript-cli

Description: What is the current behavior? On a device with HMR, every restart launches the app twice. restartApplication launches it, then setupSocketIfNeeded connects to the debug socket with ensureAppStarted, which launches it again with devicectl --terminate-existing and kills the first process about a second in. The first process usually dies before any JS runs, so it mostly shows up as the app flashing and restarting. Recorded devicectl calls on main show two launches within the same second. What is the new behavior? The restart path connects to the instance it just started, so there's one launch. --debug-brk doesn't take this path, because it turns HMR off. Testing Launch commands per ns run on an iPad on iPadOS 26.7: CLI Launches Starts reaching JS main 2 1 This PR 1 1 Unit tests cover the restart path. HMR updates still apply on the device and simulator. iOS below 17 wasn't run. Part of a stack Land in this order, base first: This PR #6177 #6178 #6179 The logging PR makes the first process visible, since it reaches JS and prints its logs, so this needs to land before or with it. Summary by CodeRabbit Bug Fixes Improved iOS app restarts during live sync. The app now restarts before its debug connection is requested, and the connection no longer triggers an unnecessary additional app start. Improved restart behavior when waiting for a debugger, keeping the restart sequence consistent across debugger-wait settings.

Open Graph Description: What is the current behavior? On a device with HMR, every restart launches the app twice. restartApplication launches it, then setupSocketIfNeeded connects to the debug socket with ensureAppStarted...

X Description: What is the current behavior? On a device with HMR, every restart launches the app twice. restartApplication launches it, then setupSocketIfNeeded connects to the debug socket with ensureAppStarted...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/pull/6176

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0c813e69-3597-36b5-652e-8b3fa6dc5140
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB4CE:311EEE:18AFB44:20AF709:6B014250
html-safe-nonce056359ba893a4d70ea9d2483baddce456f2d6d8731148391a323d9c1dd4231e5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNENFOjMxMUVFRToxOEFGQjQ0OjIwQUY3MDk6NkIwMTQyNTAiLCJ2aXNpdG9yX2lkIjoiNjkyNTY4NjI4NDcyNzk2MDE0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacac1036fc98f534bd43fc4cad4eccd1b4d71ac437963ffac677f536cc0437726c
hovercard-subject-tagpull_request:5087898396
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/nativescript-cli/pull/6176/files
twitter:imagehttps://avatars.githubusercontent.com/u/879060?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/879060?s=400&v=4
og:image:altWhat is the current behavior? On a device with HMR, every restart launches the app twice. restartApplication launches it, then setupSocketIfNeeded connects to the debug socket with ensureAppStarted...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-cli/pull/6176/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6176%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6176%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6176/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6176/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/6176/files
NativeScripthttps://github.com/NativeScript
nativescript-clihttps://github.com/NativeScript/nativescript-cli
Codehttps://github.com/NativeScript/nativescript-cli
Issues357 (357)https://github.com/NativeScript/nativescript-cli/issues
Pull requests37 (37)https://github.com/NativeScript/nativescript-cli/pulls
Actionshttps://github.com/NativeScript/nativescript-cli/actions
Projectshttps://github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://github.com/NativeScript/nativescript-cli/security
Insightshttps://github.com/NativeScript/nativescript-cli/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
edusperonihttps://github.com/edusperoni
mainhttps://github.com/NativeScript/nativescript-cli/tree/main
fix/ios-device-double-launchhttps://github.com/NativeScript/nativescript-cli/tree/fix/ios-device-double-launch
Conversation 5 https://github.com/NativeScript/nativescript-cli/pull/6176
Commits 2 https://github.com/NativeScript/nativescript-cli/pull/6176/commits
Checks 12 https://github.com/NativeScript/nativescript-cli/pull/6176/checks
Files changed https://github.com/NativeScript/nativescript-cli/pull/6176/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6176/files
fix(ios): launch the app once when restarting it on a device https://github.com/NativeScript/nativescript-cli/pull/6176/files#top
Show all changes 2 commits https://github.com/NativeScript/nativescript-cli/pull/6176/files
719a870 fix(ios): launch the app once when restarting it on a device rigor789 Oct 30, 2026 https://github.com/NativeScript/nativescript-cli/pull/6176/commits/719a870d349ff255d3888f3cfa5f10189b88d26b
aa94547 fix(ios): keep an app that waits for a debugger running rigor789 Oct 30, 2026 https://github.com/NativeScript/nativescript-cli/pull/6176/commits/aa9454721b745371744681331ac3828c7038dd80
Clear filters https://github.com/NativeScript/nativescript-cli/pull/6176/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6176/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6176/files
ios-device-livesync-service.ts https://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-c2c1b1350bda80902166e0c24293965db37c25df74a20a312e84f5fbb45d774c
ios-device-livesync-service.ts https://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-88f8bf31f144fe581845d984e405106576e0ad40c654b1718ddc656f450b7247
lib/services/livesync/ios-device-livesync-service.tshttps://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-c2c1b1350bda80902166e0c24293965db37c25df74a20a312e84f5fbb45d774c
View file https://github.com/NativeScript/nativescript-cli/blob/aa9454721b745371744681331ac3828c7038dd80/lib/services/livesync/ios-device-livesync-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6176/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-c2c1b1350bda80902166e0c24293965db37c25df74a20a312e84f5fbb45d774c
https://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-c2c1b1350bda80902166e0c24293965db37c25df74a20a312e84f5fbb45d774c
https://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-c2c1b1350bda80902166e0c24293965db37c25df74a20a312e84f5fbb45d774c
https://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-c2c1b1350bda80902166e0c24293965db37c25df74a20a312e84f5fbb45d774c
https://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-c2c1b1350bda80902166e0c24293965db37c25df74a20a312e84f5fbb45d774c
test/services/livesync/ios-device-livesync-service.tshttps://github.com/NativeScript/nativescript-cli/pull/6176/files#diff-88f8bf31f144fe581845d984e405106576e0ad40c654b1718ddc656f450b7247
View file https://github.com/NativeScript/nativescript-cli/blob/aa9454721b745371744681331ac3828c7038dd80/test/services/livesync/ios-device-livesync-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/6176/{{ revealButtonHref }}
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/6176/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.