Skip to content

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

:art: 改进内核只读模式 https://github.com/siyuan-note/siyuan/issues/7615

Liang Ding71af3210bac0
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index d59d0775b2..788c069245 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -488,6 +488,10 @@ func NewLute() (ret *lute.Lute) {
var confSaveLock = sync.Mutex{}
func (conf *AppConf) Save() {
+ if util.ReadOnly {
+ return
+ }
+
confSaveLock.Lock()
confSaveLock.Unlock()