{"record":{"id":"283680f4ade42270","repo":"musistudio/claude-code-router","slug":"claude-app-did-not-open-a-window-for-profile-nam","errorCode":null,"errorMessage":"Claude App did not open a window for ${profile.name || profile.id}. ... Command: ${entry.command} User data: ${entry.userDataDir}","messagePattern":"Claude App did not open a window for (.+?)\\. \\.\\.\\. Command: (.+?) User data: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/src/profiles/launch-service.ts","lineNumber":361,"sourceCode":"    };\n  }\n\n  applyClaudeAppGatewayConfig(profileGatewayConfig, {\n    defaultModel: profile.model\n  });\n  applyClaudeAppGatewayConfig(profileGatewayConfig, {\n    backup: false,\n    dataDir: resolveClaudeAppProfileUserDataDir(CONFIGDIR, profile),\n    defaultModel: profile.model,\n    refreshModelDiscoveryCache: true\n  });\n  await ensureGatewayConfigRunning(profileGatewayConfig, profile, \"Claude App\");\n  const entry = registerProfileApp(profile, \"app\", await launchClaudeAppProfile(CONFIGDIR, profile, profileGatewayConfig));\n  const started = await waitForProfileAppStart(entry, 12000);\n  if (!started) {\n    cleanupProfileAppEntry(profileRuntimeKey(profile.id, \"app\"), entry);\n    sendProfileProcessSignal(entry.pid, \"SIGTERM\");\n    throw new Error([\n      `Claude App did not open a window for ${profile.name || profile.id}.`,\n      ...(entry.spawnError ? [`Error: ${entry.spawnError}`] : []),\n      `Command: ${entry.command}`,\n      `User data: ${entry.userDataDir}`\n    ].join(\" \"));\n  }\n  activateProfileAppWindow(entry);\n  startClaudeAppBotWorker(config, profile);\n  return {\n    message: `Opened Claude App with ${profile.name || profile.id}.`,\n    profileId: profile.id,\n    profileName: profile.name,\n    surface: \"app\"\n  };\n}\n\nexport async function ensureProfileGateway(\n  config: AppConfig,","sourceCodeStart":343,"sourceCodeEnd":379,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/core/src/profiles/launch-service.ts#L343-L379","documentation":"Error \"Claude App did not open a window for ${profile.name || profile.id}. ... Command: ${entry.command} User data: ${entry.userDataDir}\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/core/src/profiles/launch-service.ts:361 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"}