{"record":{"id":"e95688f0e484bed0","repo":"musistudio/claude-code-router","slug":"unsupported-plugin-link-action-action","errorCode":null,"errorMessage":"Unsupported plugin link action: ${action}","messagePattern":"Unsupported plugin link action: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/electron/src/main/deep-link.ts","lineNumber":325,"sourceCode":"    return undefined;\n  }\n\n  const host = url.hostname.toLowerCase();\n  const pathSegments = url.pathname.split(\"/\").filter(Boolean).map((segment) => decodeURIComponent(segment));\n  const isPluginHost = host === \"plugin\";\n  const isPluginPath = pathSegments[0]?.toLowerCase() === \"plugin\";\n  if (!isPluginHost && !isPluginPath) {\n    return undefined;\n  }\n\n  const pluginId = boundedPluginId(\n    url.searchParams.get(\"plugin\") ||\n      url.searchParams.get(\"pluginId\") ||\n      (isPluginHost ? pathSegments[0] : pathSegments[1])\n  );\n  const action = (isPluginHost ? pathSegments[1] : pathSegments[2])?.toLowerCase();\n  if (action && action !== \"open\") {\n    throw new Error(`Unsupported plugin link action: ${action}`);\n  }\n\n  const appId = boundedPluginId(url.searchParams.get(\"app\") || url.searchParams.get(\"appId\"), true);\n  return {\n    ...(appId ? { appId } : {}),\n    pluginId,\n    rawUrl\n  };\n}\n\nfunction boundedPluginId(value: string | null | undefined, optional = false): string {\n  const normalized = value?.trim();\n  if (!normalized) {\n    if (optional) {\n      return \"\";\n    }\n    throw new Error(\"Plugin id is required.\");\n  }","sourceCodeStart":307,"sourceCodeEnd":343,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/electron/src/main/deep-link.ts#L307-L343","documentation":"Error \"Unsupported plugin link action: ${action}\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/electron/src/main/deep-link.ts:325 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"}