fix(hooks): bypass stale plugin bundle caches
This commit is contained in:
parent
83a267e2f3
commit
247a19a694
@ -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 [];
|
||||
|
||||
@ -304,6 +304,7 @@ export function loadPluginManifestRegistry(
|
||||
: discoverOpenClawPlugins({
|
||||
workspaceDir: params.workspaceDir,
|
||||
extraPaths: normalized.loadPaths,
|
||||
cache: params.cache,
|
||||
env,
|
||||
});
|
||||
const diagnostics: PluginDiagnostic[] = [...discovery.diagnostics];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user