Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

resolve the preflight progress reporter's return before catching, so a sync reporter cannot throw out of the security scan

[._.]/ Adam Eivy297f5eeb95ed
diff --git a/server/services/prReviewerPipeline.js b/server/services/prReviewerPipeline.js
index 2fb6c24489..bf99d15180 100644
--- a/server/services/prReviewerPipeline.js
+++ b/server/services/prReviewerPipeline.js
@@ -213,7 +213,11 @@ export async function runPrReviewerSecurityPreflight(taskType, app, metadata, ta
// call below is a no-op. Failure to paint the card must never stop the scan.
const step = async (key, options) => {
if (!progress) return;
- await progress(key, options).catch((err) => console.error(`❌ Preflight progress for '${key}' could not be recorded: ${err.message}`));
+ // Resolved rather than assumed thenable: a reporter that reports
+ // synchronously is a legitimate shape, and `.catch` on its undefined return
+ // would throw a TypeError straight out of the scan this must never stop.
+ await Promise.resolve(progress(key, options))
+ .catch((err) => console.error(`❌ Preflight progress for '${key}' could not be recorded: ${err.message}`));
};
await step('cadence');