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

feat(cos): add checkout-default-branch step to branch-cleanup task

Adam Eivy5029e7ab5536
diff --git a/server/services/taskSchedule.js b/server/services/taskSchedule.js
index 0d9c9eec6e..dc958cbb55 100644
--- a/server/services/taskSchedule.js
+++ b/server/services/taskSchedule.js
@@ -607,9 +607,13 @@ Repository: {repoPath}
- Delete remotely: \`git push origin --delete <branch>\`
- Log the branch name and result
-## Phase 4 — Report
+## Phase 4 — Checkout Default Branch
+
+11. Checkout the default branch so the repo is not left on a stale feature branch: \`git checkout <defaultBranch>\`
+
+## Phase 5 — Report
-11. Summarize:
+12. Summarize:
- Total branches found (local and remote)
- Branches deleted (local and remote)
- Branches skipped (protected or unmerged)