fix: distinguish source preparation from retry failures

This commit is contained in:
root
2026-07-20 20:56:28 +02:00
parent 999eed20af
commit 618f52fe46
2 changed files with 58 additions and 1 deletions
+6 -1
View File
@@ -117,7 +117,12 @@ export function traceDisplayRows(trace: Record<string, unknown> = {}, events: Tr
}
function isSemanticFailureRetryEvent(event: TraceEvent): boolean {
return Boolean(nonEmptyString(event.failureDomain) && nonEmptyString(event.retryPhase));
if (!nonEmptyString(event.failureDomain)) return false;
const phase = normalizedRetryPhase(event.retryPhase);
return phase.includes("scheduled")
|| phase.includes("exhausted")
|| phase.includes("recovered")
|| (phase.includes("retry") && phase.includes("started"));
}
function traceSemanticFailureRetryRow(event: TraceEvent, options: ResolvedTraceDisplayRowsOptions): TraceEventRow {