musistudio/claude-code-router · error · Error
Browser tab was not found.
Error message
Browser tab was not found.
What it means
Error "Browser tab was not found." thrown in musistudio/claude-code-router.
Source
Thrown at packages/electron/src/main/built-in-browser.ts:257
const tab = this.createTab(url);
const { view: _view, ...state } = tab;
return state;
}
selectAutomationTab(tabId: string): BuiltInBrowserState {
this.selectTab(tabId);
return this.getState();
}
closeAutomationTab(tabId: string): BuiltInBrowserState {
this.closeTab(tabId);
return this.getState();
}
async navigateAutomationTab(url: string, tabId?: string): Promise<BuiltInBrowserState> {
const tab = this.getTab(tabId);
if (!tab) {
throw new Error("Browser tab was not found.");
}
const nextUrl = normalizeBrowserUrl(url);
tab.url = nextUrl;
if (tab.id === this.activeTabId) {
this.layoutActiveView();
}
this.sendState();
void tab.view.webContents.loadURL(nextUrl).catch((error) => {
this.emitAutomationEvent({
kind: "page.load_failed",
summary: `Navigation request failed: ${formatError(error)}`,
tabId: tab.id,
title: tab.title,
url: nextUrl
});
});
this.emitAutomationEvent({View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/electron/src/main/built-in-browser.ts:257 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of musistudio/claude-code-router@99f24806c6 (2026-08-27).
Data as JSON: /api/errors/8faf5835de24cb36.
Report an issue: GitHub.