mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:53:27 +00:00
fix(onboard): avoid false 'telegram plugin not available' block
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user