create-claude-workspace 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scheduler/loop.mjs +3 -2
- package/package.json +1 -1
package/dist/scheduler/loop.mjs
CHANGED
|
@@ -58,8 +58,9 @@ export async function runIteration(deps) {
|
|
|
58
58
|
// Caller (scheduler.mts) handles pause state
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
// Recover orphaned worktrees
|
|
62
|
-
if (state.
|
|
61
|
+
// Recover orphaned worktrees — once per scheduler run (first iteration only)
|
|
62
|
+
if (!state._recoveryDone) {
|
|
63
|
+
state._recoveryDone = true;
|
|
63
64
|
await recoverOrphanedWorktrees(projectDir, state, logger, deps);
|
|
64
65
|
}
|
|
65
66
|
// Load tasks (dual mode: platform issues or local TODO.md)
|