fix: preserve status timing source commit

This commit is contained in:
Codex
2026-07-03 16:11:57 +00:00
parent edb6fe7485
commit 6ccbf2677b
+2 -1
View File
@@ -2127,12 +2127,13 @@ function buildFollowerTimings(
...stageTimingsFromCommand(triggerCommand),
...stageTimingsFromNativePayload(nativePayload),
]).slice(0, 24);
const stageSourceCommit = stages.length > 0 ? live.observedSha : null;
return {
budgetSeconds: follower.budgets.endToEndSeconds,
totalSeconds: total?.seconds ?? null,
totalStatus: total?.status ?? "unknown",
totalSource: total?.source ?? "-",
sourceCommit: total?.sourceCommit ?? stringOrNull(triggerCommand?.sourceCommit) ?? null,
sourceCommit: total?.sourceCommit ?? stringOrNull(triggerCommand?.sourceCommit) ?? stageSourceCommit,
startedAt: total?.startedAt ?? null,
finishedAt: total?.finishedAt ?? null,
overBudget: total === null ? null : total.seconds > follower.budgets.endToEndSeconds,