diff --git a/app/w/[id]/hooks/use-workflow-execution.ts b/app/w/[id]/hooks/use-workflow-execution.ts index c054e09035..5be5fecfdd 100644 --- a/app/w/[id]/hooks/use-workflow-execution.ts +++ b/app/w/[id]/hooks/use-workflow-execution.ts @@ -150,9 +150,9 @@ export function useWorkflowExecution() { // Prepare logs for persistence (moved after notification) const blockLogs = (result.logs || []).map((log) => ({ level: log.success ? 'info' : 'error', - message: `Block ${log.blockName || log.blockId} (${log.blockType}): ${ - log.error || 'Completed successfully' - }`, + message: log.success + ? `Block ${log.blockName || log.blockId} (${log.blockType}): ${JSON.stringify(log.output?.response || {})}` + : `Block ${log.blockName || log.blockId} (${log.blockType}): ${log.error || 'Failed'}`, duration: log.success ? `${log.durationMs}ms` : 'NA', createdAt: new Date(log.endedAt || log.startedAt).toISOString(), }))