{"record":{"id":"d5d892b34969831d","repo":"musistudio/claude-code-router","slug":"profile-name-profile-id-does-not-support-s","errorCode":null,"errorMessage":"${profile.name || profile.id} does not support ${surface.toUpperCase()} opening.","messagePattern":"(.+?) does not support (.+?) opening\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/profiles/launch-core.ts","lineNumber":72,"sourceCode":"  }\n  if (profile.agent === \"grok\" || profile.agent === \"kimi\" || profile.agent === \"pi\" || profile.agent === \"kilo\") {\n    return [\"cli\"];\n  }\n  const surface = normalizeProfileSurface(profile.surface);\n  if (surface === \"cli\") {\n    return [\"cli\"];\n  }\n  if (surface === \"app\") {\n    return [\"app\"];\n  }\n  return [\"cli\", \"app\"];\n}\n\nexport function resolveProfileOpenSurface(profile: ProfileConfig, surface?: ProfileOpenSurface): ProfileOpenSurface {\n  const surfaces = profileOpenSurfaces(profile);\n  if (surface) {\n    if (!surfaces.includes(surface)) {\n      throw new Error(`${profile.name || profile.id} does not support ${surface.toUpperCase()} opening.`);\n    }\n    return surface;\n  }\n  return surfaces[0];\n}\n\nexport function defaultProfileOpenSurface(profile: Pick<ProfileConfig, \"agent\">): ProfileOpenSurface {\n  return profile.agent === \"workbuddy\" || profile.agent === \"zcode\" || profile.agent === \"claude-design\" ? \"app\" : \"cli\";\n}\n\nexport function shouldAutoStartProfileGateway(\n  profile: Pick<ProfileConfig, \"agent\">,\n  surface: ProfileOpenSurface\n): boolean {\n  return (profile.agent === \"grok\" || profile.agent === \"kimi\" || profile.agent === \"pi\") && surface === \"cli\";\n}\n\nexport function profileOpenCommand(","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/core/src/profiles/launch-core.ts#L54-L90","documentation":"Error \"${profile.name || profile.id} does not support ${surface.toUpperCase()} opening.\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/core/src/profiles/launch-core.ts:72 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"}