fix(monitor): register sentinel recovery findings

This commit is contained in:
Codex
2026-07-08 21:19:24 +02:00
parent 4bf02772c4
commit 6f5da3d6af
2 changed files with 20 additions and 4 deletions
@@ -529,11 +529,11 @@ function renderWebProbeSentinelConfigPlan(value: WebProbeSentinelConfigPlan): st
"",
"Blocked detail:",
sentinelTable(["KIND", "VALUE"], [
...value.conflicts.map((item) => ["conflict", short(item, 140)]),
...value.conflicts.map((item) => ["conflict", item]),
...value.refs.flatMap((ref) => [
...(ref.error === null ? [] : [[`${ref.key}.error`, short(ref.error, 140)]]),
...(ref.missingFields.length === 0 ? [] : [[`${ref.key}.missing`, short(ref.missingFields.join(","), 140)]]),
...(ref.conflicts.length === 0 ? [] : [[`${ref.key}.conflict`, short(ref.conflicts.join(" | "), 140)]]),
...(ref.error === null ? [] : [[`${ref.key}.error`, ref.error]]),
...(ref.missingFields.length === 0 ? [] : [[`${ref.key}.missing`, ref.missingFields.join(",")]]),
...(ref.conflicts.length === 0 ? [] : [[`${ref.key}.conflict`, ref.conflicts.join(" | ")]]),
]),
]),
];