An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lock: Keep boxID prefix in repo snapshot temp path for encrypted assets #18034
Daniel115234701097
diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex 6349443be8..2b3475eb42 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -495,7 +495,8 @@ func OpenRepoSnapshotFile(fileID string) (title, content string, displayInText breturn}}- file.Path = file.Path[strings.Index(file.Path, "assets/"):]+ // 保留 boxID 前缀,确保 LockBox 清理和 serveRepoDiff 加密校验能命中+ file.Path = path.Join(repoBoxID, file.Path[strings.Index(file.Path, "assets/"):])if util.IsDisplayableAsset(file.Path) {dir, f := filepath.Split(file.Path)tempRepoDiffDir := filepath.Join(util.TempDir, "repo", "diff", dir)