From 56a2e424376d269d3936b51048c93a44eb286a81 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 09:37:54 +0100 Subject: [PATCH] refactor: remove unused background browser open --- src/infra/browser-open.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/infra/browser-open.ts b/src/infra/browser-open.ts index deb15aaf60e..d48261aa7ad 100644 --- a/src/infra/browser-open.ts +++ b/src/infra/browser-open.ts @@ -116,26 +116,3 @@ export async function openUrl(url: string): Promise { return false; } } - -export async function openUrlInBackground(url: string): Promise { - if (shouldSkipBrowserOpenInTests()) { - return false; - } - const normalizedUrl = normalizeBrowserOpenUrl(url); - if (!normalizedUrl) { - return false; - } - if (process.platform !== "darwin") { - return false; - } - const resolved = await resolveBrowserOpenCommand(); - if (!resolved.argv || resolved.command !== "open") { - return false; - } - try { - await runCommandWithTimeout(["open", "-g", normalizedUrl], { timeoutMs: 5_000 }); - return true; - } catch { - return false; - } -}