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: keep detached-worktree helpers module-private (#10825)
Adam Eivy48e44d7c7299
diff --git a/server/services/branchReconcile.js b/server/services/branchReconcile.jsindex a4b54dc943..7c7f71682a 100644--- a/server/services/branchReconcile.js+++ b/server/services/branchReconcile.js@@ -1347,7 +1347,7 @@ async function retireBranchNow(repoPath, b, { activeAgentIds = new Set(), staleC* @param {string} defaultBranch* @returns {Promise<{path:string, head:string|null, locked:boolean, worktreeAgeMs:number|null, dirtyPaths:string[]}[]>}*/-export async function gatherDetachedWorktrees(repoPath, defaultBranch) {+async function gatherDetachedWorktrees(repoPath, defaultBranch) {const worktrees = await listWorktrees(repoPath).catch(() => []);const detached = [];for (const [index, entry] of worktrees.entries()) {@@ -1397,7 +1397,7 @@ const isStillDetachedOnMerged = async (repoPath, treePath, defaultBranch) => {* @param {{ activeAgentIds?: Set<string>, claimOwners?: { agents: object[]|null } }} [opts]* @returns {Promise<{cleaned:string[], skipped:object[], held:{path:string, head:string|null, reason:string, managed:boolean, retryAt?:string}[]}>}*/-export async function reapDetachedWorktrees(repoPath, defaultBranch, detached, { activeAgentIds = new Set(), claimOwners } = {}) {+async function reapDetachedWorktrees(repoPath, defaultBranch, detached, { activeAgentIds = new Set(), claimOwners } = {}) {const cleaned = [];const skipped = [];const held = [];