An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: The plugin switch status is not synchronized https://github.com/siyuan-note/siyuan/issues/16155
Daniel8eb0d043935e
diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex f0147f1901..868146748b 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -1586,6 +1586,19 @@ func processSyncMergeResult(exit, byHand bool, mergeResult *dejavu.MergeResult,if parts := strings.Split(file.Path, "/"); 3 < len(parts) {if pluginName := parts[3]; "petals.json" != pluginName {upsertPluginSet.Add(pluginName)+ } else {+ // 修改了 petals.json 则重新加载所有插件+ // The plugin switch status is not synchronized https://github.com/siyuan-note/siyuan/issues/16155+ entries, err := os.ReadDir(filepath.Join(util.DataDir, "storage", "petal"))+ if nil != err {+ logging.LogErrorf("read petals dir failed: %s", err)+ } else {+ for _, entry := range entries {+ if entry.IsDir() {+ upsertPluginSet.Add(entry.Name())+ }+ }+ }}}}