Fix branch follower performance status visibility

This commit is contained in:
Codex
2026-07-04 13:07:34 +00:00
parent 3d52db184c
commit c3e97e2745
4 changed files with 388 additions and 314 deletions
+13 -1
View File
@@ -43,7 +43,7 @@ export function followerEvidenceSummary(input: {
const refreshSourceCommit = stringOrNull(refresh?.sourceCommit);
return {
pipelineRunRefName: pipelineRefName,
pipeline,
pipeline: compactPipelineEvidence(pipeline),
refreshBoundedReason: refresh === null ? "missing-from-live-and-stored-evidence" : null,
refresh: refresh === null
? null
@@ -57,6 +57,18 @@ export function followerEvidenceSummary(input: {
};
}
function compactPipelineEvidence(value: Record<string, unknown> | null): Record<string, unknown> | null {
if (value === null) return null;
const metadata = asOptionalRecord(value.metadata);
const spec = asOptionalRecord(value.spec);
return {
metadata: { name: stringOrNull(metadata?.name) },
spec: {
runtimeReadyTask: compactRefreshRuntimeReady(asOptionalRecord(spec?.runtimeReadyTask)),
},
};
}
function compactRefreshRender(value: Record<string, unknown> | null): Record<string, unknown> | null {
if (value === null) return null;
return {