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