(window: BrowserWindow, url: string)
| 175 | * rejection handler; log it instead, quietly when it is teardown noise. |
| 176 | */ |
| 177 | const loadWindowUrl = async (window: BrowserWindow, url: string): Promise<void> => { |
| 178 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: Electron navigation rejects; there is no caller left to surface it to |
| 179 | try { |
| 180 | await window.loadURL(url); |
| 181 | } catch (error) { |
| 182 | if (isTeardownNavigationError(error, window)) { |
| 183 | log.info("Navigation aborted while the window was closing"); |
| 184 | return; |
| 185 | } |
| 186 | log.error("Failed to load window URL", error); |
| 187 | } |
| 188 | }; |
| 189 | |
| 190 | // The supervised daemon (and the desktop sidecar) own this data dir — the same |
| 191 | // path the CLI's `executor web`/daemon uses, so desktop and CLI share state. |
no test coverage detected