@narumitw/pi-chrome-devtools 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-chrome-devtools",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Pi extension that exposes Chrome DevTools Protocol tools.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1266,9 +1266,9 @@ function shouldAutoLaunchAfterEndpointError(error: unknown) {
1266
1266
  if (!canAutoLaunchBrowser()) return false;
1267
1267
  if (isLaunchableEndpointError(error)) return true;
1268
1268
 
1269
- // If the user did not pin a port, non-retryable unexpected responses on the
1270
- // default port are conflicts we can avoid with a dynamic DevTools port.
1271
- return !state.portConfigured && error instanceof DevToolsEndpointError && !error.retryable;
1269
+ // After the attach-first attempt (including its retry window, when applicable) fails, treat any
1270
+ // DevTools endpoint error on an unpinned port as a conflict we can avoid with a dynamic port.
1271
+ return !state.portConfigured && error instanceof DevToolsEndpointError;
1272
1272
  }
1273
1273
 
1274
1274
  function canAutoLaunchBrowser() {