Resolve filesystem work product targets by existing file

This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 20:06:01 -04:00
1 parent c1349fceab
commit d13c9d83e8
3 files changed
+118 -29

No files matched your search

+5
View File
@@ -76,7 +76,12 @@ export function registerCoreReadHandlers({
no_target: "WORK_PRODUCT_NO_TARGET",
workspace_unresolved: "WORK_PRODUCT_WORKSPACE_UNRESOLVED",
path_escape: "WORK_PRODUCT_PATH_ESCAPE",
path_missing: "WORK_PRODUCT_PATH_MISSING",
} as const;
if (target.reason === "path_missing") {
db.core.documents.updateWorkProduct(parsed.data.id, parsed.data.companyId, { status: "archived" });
publishDomainChanged();
}
return fail(codeByReason[target.reason], target.detail);
}
if (target.kind === "url") {