diff --git a/apps/server/src/workflow/WorkflowInspectionService.ts b/apps/server/src/workflow/WorkflowInspectionService.ts index bad1f2c39f..06ef488523 100644 --- a/apps/server/src/workflow/WorkflowInspectionService.ts +++ b/apps/server/src/workflow/WorkflowInspectionService.ts @@ -116,6 +116,7 @@ export const make = (options?: { readonly projectsRoot?: string }) => operation, reason: isEnoent(cause) ? "not-found" : "read-failed", detail: "Failed to resolve the workflow projects root.", + cause, }), }); @@ -126,6 +127,7 @@ export const make = (options?: { readonly projectsRoot?: string }) => operation, reason: isEnoent(cause) ? "not-found" : "read-failed", detail: "Failed to resolve the requested path.", + cause, }), }); @@ -160,6 +162,7 @@ export const make = (options?: { readonly projectsRoot?: string }) => operation, reason: isNotFoundPlatformError(cause) ? "not-found" : "read-failed", detail: "Failed to read the workflow script.", + cause, }), ), ); @@ -189,6 +192,7 @@ export const make = (options?: { readonly projectsRoot?: string }) => operation, reason: isNotFoundPlatformError(cause) ? "not-found" : "read-failed", detail: "Failed to read the workflow journal.", + cause, }), ), ); @@ -275,6 +279,7 @@ export const make = (options?: { readonly projectsRoot?: string }) => operation, reason: isNotFoundPlatformError(cause) ? "not-found" : "read-failed", detail: "Failed to read the agent transcript.", + cause, }), ), ); diff --git a/packages/contracts/src/workflow.ts b/packages/contracts/src/workflow.ts index 07bdd89545..63a59bc2e7 100644 --- a/packages/contracts/src/workflow.ts +++ b/packages/contracts/src/workflow.ts @@ -96,6 +96,9 @@ export class WorkflowInspectionError extends Schema.TaggedErrorClass