Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Plugin uninstall

Liang Ding73b980af6957
diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.go
index 00490331b6..7c7f0668cd 100644
--- a/kernel/model/bazzar.go
+++ b/kernel/model/bazzar.go
@@ -87,6 +87,9 @@ func UninstallBazaarPlugin(pluginName string) error {
}
}
petals = tmp
+ if 1 > len(petals) {
+ petals = []*Petal{}
+ }
savePetals(petals)
return nil
}