An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bulb: Notify user when an encrypted notebook is auto-locked due to inactivity #18034
Danieldf1064300d73
diff --git a/kernel/model/crypto.go b/kernel/model/crypto.goindex 049012c566..9166e002c0 100644--- a/kernel/model/crypto.go+++ b/kernel/model/crypto.go@@ -1647,6 +1647,12 @@ func AutoLockIdleEncryptedBoxesJob() {if elapsed >= thresholdNs {logging.LogInfof("auto-locking idle encrypted notebook [%s] (elapsed=%ds, threshold=%dm)", boxID, elapsed/1e9, threshold)Unmount(boxID)+ // 自动锁定会关闭正在编辑的文档,推一条提示避免用户以为崩溃+ boxName := boxID+ if box := Conf.Box(boxID); nil != box {+ boxName = box.Name+ }+ util.PushMsg(fmt.Sprintf(Conf.Language(322), boxName), 0)}}}