musistudio/claude-code-router · error · Error
${appName} is still running with stale settings for ${profil
Error message
${appName} is still running with stale settings for ${profile.name || profile.id}. Close it before reopening this profile. What it means
Error "${appName} is still running with stale settings for ${profile.name || profile.id}. Close it before reopening this profile." thrown in musistudio/claude-code-router.
Source
Thrown at packages/core/src/profiles/launch-service.ts:200
if (existing.launchSignature === launchSignature) {
startOpenCodeAppBotWorker(
profileGatewayConfig,
profile,
configResult.file,
configResult.inlineConfig,
launchSignature
);
activateProfileAppWindow(existing);
return {
message: `${appName} is already running with ${profile.name || profile.id}.`,
profileId: profile.id,
profileName: profile.name,
surface: "app"
};
}
const stopped = await stopRunningProfileApp(profileRuntimeKey(profile.id, "app"), existing);
if (!stopped && isProfileAppRunning(existing)) {
throw new Error(
`${appName} is still running with stale settings for ${profile.name || profile.id}. ` +
"Close it before reopening this profile."
);
}
stopOpenCodeAppBotWorker(profile.id);
}
const otherProfile = runningProfileAppForAgent("opencode", "app", profile.id);
if (otherProfile) {
const stopped = await stopRunningProfileApp(profileRuntimeKey(otherProfile.profileId, "app"), otherProfile);
if (!stopped && isProfileAppRunning(otherProfile)) {
throw new Error(
`OpenCode App is already running with ${otherProfile.profileName || otherProfile.profileId}. ` +
"Close it before switching OpenCode App profiles."
);
}
stopOpenCodeAppBotWorker(otherProfile.profileId);
}
const unmanagedPid = findRunningOpenCodeAppPid(profile.appPath);View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/core/src/profiles/launch-service.ts:200 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/f5e8c391260bccf4.
Report an issue: GitHub.