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/7117

Liang Dinga99ca6d62f9b
diff --git a/kernel/task/queue.go b/kernel/task/queue.go
index 2426fd89e0..5cdff6ee19 100644
--- a/kernel/task/queue.go
+++ b/kernel/task/queue.go
@@ -126,6 +126,10 @@ func StatusLoop() {
}
items = append(items, item)
}
+ if 1 > len(items) {
+ items = []map[string]interface{}{}
+ }
+ data["tasks"] = items
util.PushBackgroundTask(data)
if 0 < len(tasks) {
time.Sleep(1000 * time.Millisecond)