fix(onboard): avoid false 'telegram plugin not available' block

This commit is contained in:
suko
2026-02-24 21:56:49 +01:00
committed by Peter Steinberger
parent b0bb3cca8a
commit b3e6653503
3 changed files with 91 additions and 7 deletions

View File

@@ -467,6 +467,20 @@ export async function setupChannels(
workspaceDir,
});
if (!getChannelPlugin(channel)) {
// Some installs/environments can fail to populate the plugin registry during onboarding,
// even for built-in channels. If the channel supports onboarding, proceed with config
// so setup isn't blocked; the gateway can still load plugins on startup.
const adapter = getChannelOnboardingAdapter(channel);
if (adapter) {
await prompter.note(
`${channel} plugin not available (continuing with onboarding). If the channel still doesn't work after setup, run \`${formatCliCommand(
"openclaw plugins list",
)}\` and \`${formatCliCommand("openclaw plugins enable " + channel)}\`, then restart the gateway.`,
"Channel setup",
);
await refreshStatus(channel);
return true;
}
await prompter.note(`${channel} plugin not available.`, "Channel setup");
return false;
}