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
refactor: simplify branch reconcile (drop unused field, merge imports)
Adam Eivy070ea7a65cd0
diff --git a/server/services/branchReconcile.js b/server/services/branchReconcile.jsindex 37d2393e90..1863536462 100644--- a/server/services/branchReconcile.js+++ b/server/services/branchReconcile.js@@ -199,8 +199,8 @@ export async function cleanupMerged(repoPath, defaultBranch, merged) {** @param {string} [repoPath=PATHS.root]* @param {{ cleanup?: boolean }} [opts] - when cleanup is false, merged branches- * are reported (as `merged`) but not deleted (honors the cleanupMerged toggle).- * @returns {Promise<{ defaultBranch:string, cleaned:string[], merged:object[], inFlight:object[], wip:object[], skipped:{branch:string,reason:string}[] }>}+ * are reported (in `skipped`, reason `cleanup-disabled`) but not deleted.+ * @returns {Promise<{ defaultBranch:string, cleaned:string[], inFlight:object[], wip:object[], skipped:{branch:string,reason:string}[] }>}*/export async function reconcile(repoPath = PATHS.root, { cleanup = true } = {}) {const defaultBranch = await getDefaultBranch(repoPath).catch(() => 'main') || 'main';@@ -215,5 +215,5 @@ export async function reconcile(repoPath = PATHS.root, { cleanup = true } = {})? await cleanupMerged(repoPath, defaultBranch, merged): { cleaned: [], skipped: merged.map((m) => ({ branch: m.branch, reason: 'cleanup-disabled' })) };- return { defaultBranch, cleaned, merged, inFlight, wip, skipped };+ return { defaultBranch, cleaned, inFlight, wip, skipped };}diff --git a/server/services/branchReconcileScheduler.js b/server/services/branchReconcileScheduler.jsindex 3801fc27f2..152b1e7c1e 100644--- a/server/services/branchReconcileScheduler.js+++ b/server/services/branchReconcileScheduler.js@@ -17,8 +17,7 @@ import { schedule, cancel } from './eventScheduler.js';import { getSettings } from './settings.js';import { getUserTimezone } from '../lib/timezone.js';import { PATHS } from '../lib/fileUtils.js';-import { PRIORITY_VALUES } from './cosTaskStore.js';-import { addTask } from './cosTaskStore.js';+import { PRIORITY_VALUES, addTask } from './cosTaskStore.js';import { reconcile } from './branchReconcile.js';const CRON_ID = 'branch-reconcile';