refactor(*): 稳定期治理 - 收敛核心架构、错误语义并修复跨项目数据竞态

This commit is contained in:
ddCat committed 2026-09-09 22:02:10 +08:00
1 parent 83d9622fd0
commit bf41ef3172
298 files changed
+12681 -26428

No files matched your search

+2 -8
View File
@@ -550,14 +550,8 @@ func findTaskOutputResource(value any, mediaType string) (string, string) {
if strings.HasPrefix(text, "resource:") {
return strings.TrimPrefix(text, "resource:"), mediaType
}
if strings.HasPrefix(text, "/api/resources/") {
id := strings.TrimPrefix(text, "/api/resources/")
if slash := strings.IndexByte(id, '/'); slash >= 0 {
id = id[:slash]
}
if id != "" {
return id, mediaType
}
if id := resourceIDFromFileURL(text); id != "" {
return id, mediaType
}
}
}