{"record":{"id":"8faf5835de24cb36","repo":"musistudio/claude-code-router","slug":"browser-tab-was-not-found","errorCode":null,"errorMessage":"Browser tab was not found.","messagePattern":"Browser tab was not found\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/electron/src/main/built-in-browser.ts","lineNumber":257,"sourceCode":"    const tab = this.createTab(url);\n    const { view: _view, ...state } = tab;\n    return state;\n  }\n\n  selectAutomationTab(tabId: string): BuiltInBrowserState {\n    this.selectTab(tabId);\n    return this.getState();\n  }\n\n  closeAutomationTab(tabId: string): BuiltInBrowserState {\n    this.closeTab(tabId);\n    return this.getState();\n  }\n\n  async navigateAutomationTab(url: string, tabId?: string): Promise<BuiltInBrowserState> {\n    const tab = this.getTab(tabId);\n    if (!tab) {\n      throw new Error(\"Browser tab was not found.\");\n    }\n\n    const nextUrl = normalizeBrowserUrl(url);\n    tab.url = nextUrl;\n    if (tab.id === this.activeTabId) {\n      this.layoutActiveView();\n    }\n    this.sendState();\n    void tab.view.webContents.loadURL(nextUrl).catch((error) => {\n      this.emitAutomationEvent({\n        kind: \"page.load_failed\",\n        summary: `Navigation request failed: ${formatError(error)}`,\n        tabId: tab.id,\n        title: tab.title,\n        url: nextUrl\n      });\n    });\n    this.emitAutomationEvent({","sourceCodeStart":239,"sourceCodeEnd":275,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/electron/src/main/built-in-browser.ts#L239-L275","documentation":"Error \"Browser tab was not found.\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/electron/src/main/built-in-browser.ts:257 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"}