disinto/supervisor
openhands c5c24cda67 fix: Extract lib/worktree.sh — create, recover, cleanup (#797)
Extract reusable worktree management into lib/worktree.sh:
- worktree_create: git worktree add + checkout + submodules
- worktree_recover: detect existing worktree, reuse or recreate
- worktree_cleanup: remove worktree + clear Claude Code project cache
- worktree_cleanup_stale: scan /tmp for orphaned worktrees, skip preserved
- worktree_preserve: mark worktree for debugging (skip stale cleanup)

Update callers:
- dev-agent.sh: use worktree_create/worktree_recover/worktree_cleanup
- action-agent.sh: use worktree_cleanup/worktree_preserve
- formula-session.sh: delegate cleanup_stale_crashed_worktrees, use worktree_preserve
- All formula agents source lib/worktree.sh

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 19:06:31 +00:00
..
AGENTS.md fix: {project}-ops repo — separate operations from code (#757) (#767) 2026-03-26 19:55:12 +01:00
preflight.sh fix: {project}-ops repo — separate operations from code (#757) (#767) 2026-03-26 19:55:12 +01:00
PROMPT.md fix: {project}-ops repo — separate operations from code (#757) (#767) 2026-03-26 19:55:12 +01:00
supervisor-poll.sh fix: supervisor-poll.sh: migrate remaining FACTORY_ROOT log paths to DISINTO_LOG_DIR 2026-03-27 15:03:54 +00:00
supervisor-run.sh fix: Extract lib/worktree.sh — create, recover, cleanup (#797) 2026-03-27 19:06:31 +00:00
update-prompt.sh fix: shellcheck TODO has no enforcement — || true may never be removed (#71) 2026-03-18 01:53:02 +00:00