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

This commit is contained in:
ddCat
2026-09-09 22:02:10 +08:00
parent bacd502f5c
commit b5f3413ded
298 changed files with 12681 additions and 26428 deletions

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
}
}
}