fix(plugins): avoid source rebuilds for policy toggles

Reuse current installed-plugin registry records for policy-only enable and disable refreshes.\n\nThanks @vincentkoc
This commit is contained in:
Vincent Koc
2026-05-01 09:01:13 -07:00
committed by GitHub
parent 575854c096
commit 579acc3a91
10 changed files with 256 additions and 69 deletions

View File

@@ -132,6 +132,7 @@ export function registerPluginsCli(program: Command) {
await refreshPluginRegistryAfterConfigMutation({
config: next,
reason: "policy-changed",
policyPluginIds: [enableResult.pluginId],
logger: {
warn: (message) => defaultRuntime.log(theme.warn(message)),
},
@@ -166,6 +167,7 @@ export function registerPluginsCli(program: Command) {
await refreshPluginRegistryAfterConfigMutation({
config: next,
reason: "policy-changed",
policyPluginIds: [id],
logger: {
warn: (message) => defaultRuntime.log(theme.warn(message)),
},