{"record":{"id":"0f68fa4a03bae979","repo":"musistudio/claude-code-router","slug":"ccr-gateway-did-not-restart","errorCode":null,"errorMessage":"CCR gateway did not restart.","messagePattern":"CCR gateway did not restart\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/electron/src/main/deep-link.ts","lineNumber":202,"sourceCode":"}\n\nasync function ensurePluginAppUrlAvailable(config: AppConfig, appUrl: string, startedGateway: boolean): Promise<void> {\n  try {\n    await waitForPluginAppUrl(\n      appUrl,\n      startedGateway ? pluginAppStartupProbeTimeoutMs : pluginAppExistingGatewayProbeTimeoutMs\n    );\n    return;\n  } catch (error) {\n    if (startedGateway) {\n      throw error;\n    }\n    console.warn(`[deep-link] Plugin app URL was not reachable on the running gateway; restarting gateway once. ${formatError(error)}`);\n  }\n\n  const restartedStatus = await gatewayService.start(config);\n  if (restartedStatus.state !== \"running\") {\n    throw new Error(restartedStatus.lastError || \"CCR gateway did not restart.\");\n  }\n  await waitForPluginAppUrl(appUrl, pluginAppStartupProbeTimeoutMs);\n}\n\nasync function ensureClaudeDesignWindowCdpOptions(\n  config: AppConfig,\n  pluginId: string,\n  startedGateway: boolean\n): ReturnType<typeof loadClaudeDesignWindowCdpOptions> {\n  try {\n    return await loadClaudeDesignWindowCdpOptions(config, pluginId);\n  } catch (error) {\n    if (startedGateway) {\n      throw error;\n    }\n    console.warn(`[deep-link] Claude browser plugin status was not reachable on the running gateway; restarting gateway once. ${formatError(error)}`);\n  }\n","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/electron/src/main/deep-link.ts#L184-L220","documentation":"Error \"CCR gateway did not restart.\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/electron/src/main/deep-link.ts:202 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"}