Skip to content

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

:art: Adjust workspace name length limit to 32 runes Fix https://github.com/siyuan-note/siyuan/issues/9440

Daniel785f467a99d6
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go
index 1b65d95f4a..0e210e2c26 100644
--- a/kernel/api/workspace.go
+++ b/kernel/api/workspace.go
@@ -331,7 +331,8 @@ func isInvalidWorkspacePath(absPath string) bool {
if !gulu.File.IsValidFilename(name) {
return true
}
- if 16 < utf8.RuneCountInString(name) {
+ if 32 < utf8.RuneCountInString(name) {
+ // Adjust workspace name length limit to 32 runes https://github.com/siyuan-note/siyuan/issues/9440
return true
}
toLower := strings.ToLower(name)