fix(devices): keep agent-device from spawning a second T3 app #12241
Closedadinvadim(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/12241/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -85,14 +88,7 @@85- let availableOnEveryHost = true;86-87- for (const host of DESKTOP_BACKEND_PORT_PROBE_HOSTS) {88- if (!(yield* net.canListenOnHost(port, host))) {89- availableOnEveryHost = false;90- break;91- }92- }93-94- if (availableOnEveryHost) {95- return {96- port,97- selectedByScan: true,98- } as const;88+ const port = DEFAULT_DESKTOP_BACKEND_PORT;89+ for (const host of DESKTOP_BACKEND_PORT_PROBE_HOSTS) {90+ if (!(yield* net.canListenOnHost(port, host))) {91+ return yield* new DesktopBackendPortUnavailableError({92+ startPort: port,93+ maxPort: port,94+ hosts: DESKTOP_BACKEND_PORT_PROBE_HOSTS,
adinvadim(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes