musistudio/claude-code-router · error · Error
OpenCode App is already running with ${otherProfile.profileN
Error message
OpenCode App is already running with ${otherProfile.profileName || otherProfile.profileId}. Close it before switching OpenCode App profiles. What it means
Error "OpenCode App is already running with ${otherProfile.profileName || otherProfile.profileId}. Close it before switching OpenCode App profiles." thrown in musistudio/claude-code-router.
Source
Thrown at packages/core/src/profiles/launch-service.ts:211
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);
if (unmanagedPid) {
throw new Error(
`OpenCode App is already running outside CCR (PID ${unmanagedPid}). ` +
"Close it before opening an OpenCode App profile."
);
}
const launch = {
...launchOpenCodeAppProfile(
CONFIGDIR,
profile,
configResult.file,View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/core/src/profiles/launch-service.ts:211 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/f34ccca096465200.
Report an issue: GitHub.