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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: warn when orphan ref preflight is unknown (#9908)
[._.]/ Adam Eivy618a2477d082
diff --git a/server/services/worktreeManager.js b/server/services/worktreeManager.jsindex 059d6acb7b..02d4b36691 100644--- a/server/services/worktreeManager.js+++ b/server/services/worktreeManager.js@@ -1035,7 +1035,7 @@ export async function removeWorktree(agentId, sourceWorkspace, branchName, optio// A failed or malformed preflight cannot prove that the branch is empty.// Keep both refs in place so retry can safely decide whether to merge.if (countResult?.exitCode !== 0 || !Number.isSafeInteger(parsedCount)) {- console.log(`⚠️ Could not determine commits ahead for ${branchName}; preserving its worktree and branch for retry`);+ console.warn(`⚠️ Could not determine commits ahead for ${branchName}; preserving its worktree and branch for retry`);warnings.push(`Worktree and branch ${branchName} preserved — could not read a valid commit count; retry cleanup when Git refs are available`);return { merged: false, removed: false, uncommittedSaved: false, warnings };}