{"record":{"id":"3c64506b3dabbd8f","repo":"musistudio/claude-code-router","slug":"browser-search-view-is-unavailable","errorCode":null,"errorMessage":"Browser search view is unavailable.","messagePattern":"Browser search view is unavailable\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/electron/src/main/electron-web-search-mcp.ts","lineNumber":621,"sourceCode":"        ...(page.title && page.title.length > result.title.length ? { title: page.title.slice(0, 240) } : {})\n      };\n    } catch (error) {\n      return {\n        ...result,\n        diagnostics: appendSearchResultDiagnostic(result.diagnostics, `Page extraction failed: ${formatError(error)}`)\n      };\n    } finally {\n      if (worker) {\n        this.release(worker);\n      }\n    }\n  }\n}\n\nasync function runSearchInWorker(worker: BrowserSearchWorker, request: BrowserSearchRequest): Promise<BrowserSearchPageResult> {\n  const webContents = worker.view.webContents;\n  if (webContents.isDestroyed()) {\n    throw new Error(\"Browser search view is unavailable.\");\n  }\n\n  await loadSearchUrl(webContents, request.searchUrl, request.timeoutMs);\n  return await pollSearchResults(webContents, request);\n}\n\nasync function loadSearchUrl(webContents: WebContents, url: string, timeoutMs: number): Promise<void> {\n  webContents.stop();\n  await withTimeout(\n    webContents.loadURL(url, {\n      userAgent: desktopUserAgent\n    }),\n    timeoutMs,\n    \"Browser search navigation timed out.\"\n  );\n}\n\nasync function pollSearchResults(webContents: WebContents, request: BrowserSearchRequest): Promise<BrowserSearchPageResult> {","sourceCodeStart":603,"sourceCodeEnd":639,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/electron/src/main/electron-web-search-mcp.ts#L603-L639","documentation":"Error \"Browser search view is unavailable.\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/electron/src/main/electron-web-search-mcp.ts:621 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"99f24806c6a2c660b16e53e95211c517448a6c90","analyzedAt":"2026-08-27T04:11:01.184Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}