Skip to content

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

:bug: The plugin switch status is not synchronized https://github.com/siyuan-note/siyuan/issues/16155

Daniele315fd377e28
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index 868146748b..352fe2e6b5 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -1589,7 +1589,7 @@ func processSyncMergeResult(exit, byHand bool, mergeResult *dejavu.MergeResult,
} 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"))
+ entries, err := os.ReadDir(filepath.Join(util.DataDir, "plugins"))
if nil != err {
logging.LogErrorf("read petals dir failed: %s", err)
} else {