Skip to content

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

:art: Reload UI after find replace

Daniel31d791da6862
diff --git a/kernel/model/search.go b/kernel/model/search.go
index d1a57dd76a..4816686266 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -402,9 +402,9 @@ func FindReplace(keyword, replacement string, ids []string, paths, boxes []strin
}
WaitForWritingFiles()
- if 1 < len(ids) {
+ if 0 < len(ids) {
go func() {
- time.Sleep(time.Second)
+ time.Sleep(time.Millisecond * 500)
util.ReloadUI()
}()
}