Skip to content

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

:art: Improve clear workspace history msg pushing https://github.com/siyuan-note/siyuan/issues/12080

Daniel1458024ea545
diff --git a/kernel/api/history.go b/kernel/api/history.go
index 6687144f73..220bbfec1c 100644
--- a/kernel/api/history.go
+++ b/kernel/api/history.go
@@ -127,9 +127,7 @@ func clearWorkspaceHistory(c *gin.Context) {
ret.Msg = err.Error()
return
}
- util.PushClearMsg(msgId)
- time.Sleep(500 * time.Millisecond)
- util.PushMsg(model.Conf.Language(99), 1000*5)
+ util.PushUpdateMsg(msgId, model.Conf.Language(99), 1000*5)
}
func getDocHistoryContent(c *gin.Context) {