fix(hooks): bypass stale plugin bundle caches

This commit is contained in:
Vincent Koc 2026-03-19 13:55:46 -07:00
parent 83a267e2f3
commit 247a19a694
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,8 @@ export function resolvePluginHookDirs(params: {
const registry = loadPluginManifestRegistry({
workspaceDir,
config: params.config,
// Hook discovery should reflect freshly written bundle manifests immediately.
cache: false,
});
if (registry.plugins.length === 0) {
return [];

View File

@ -304,6 +304,7 @@ export function loadPluginManifestRegistry(
: discoverOpenClawPlugins({
workspaceDir: params.workspaceDir,
extraPaths: normalized.loadPaths,
cache: params.cache,
env,
});
const diagnostics: PluginDiagnostic[] = [...discovery.diagnostics];