Fix dingding plugin (#221)

This commit is contained in:
paisley
2026-02-28 14:42:55 +08:00
committed by GitHub
Unverified
parent 98703a0ab8
commit dbf88a79be
8 changed files with 220 additions and 65 deletions

View File

@@ -627,9 +627,10 @@ function registerOpenClawHandlers(gatewayManager: GatewayManager): void {
const sourceDir = candidateSources.find((dir) => existsSync(join(dir, 'openclaw.plugin.json')));
if (!sourceDir) {
logger.warn('Bundled DingTalk plugin mirror not found in candidate paths', { candidateSources });
return {
installed: false,
warning: 'Bundled DingTalk plugin mirror not found. Run: pnpm run bundle:openclaw-plugins',
warning: `Bundled DingTalk plugin mirror not found. Checked: ${candidateSources.join(' | ')}`,
};
}
@@ -718,7 +719,8 @@ function registerOpenClawHandlers(gatewayManager: GatewayManager): void {
error: installResult.warning || 'DingTalk plugin install failed',
};
}
saveChannelConfig(channelType, config);
await saveChannelConfig(channelType, config);
gatewayManager.debouncedRestart();
return {
success: true,
pluginInstalled: installResult.installed,