Summary
ensureTaskFilesCommitted() in execution.ts stages and commits uncommitted task folders, then fast-forwards the orch branch to include the staging commit (added in TP-163, fixes #471).
However, this only runs against repoRoot (the primary repo). In workspace mode, task folders whose paths resolve outside repoRoot are skipped with the relPath.startsWith('..') guard and are never staged or committed. The orch branch update also only applies to repoRoot.
Impact
Workspace mode users with task folders in secondary repos will still hit the ENOENT crash if those task folders aren't committed before running /orch.
Fix
Group wave tasks by owning repo root. Run commit + orch branch ref update per repo instead of just for repoRoot.
Related
Summary
ensureTaskFilesCommitted()inexecution.tsstages and commits uncommitted task folders, then fast-forwards the orch branch to include the staging commit (added in TP-163, fixes #471).However, this only runs against
repoRoot(the primary repo). In workspace mode, task folders whose paths resolve outsiderepoRootare skipped with therelPath.startsWith('..')guard and are never staged or committed. The orch branch update also only applies torepoRoot.Impact
Workspace mode users with task folders in secondary repos will still hit the ENOENT crash if those task folders aren't committed before running
/orch.Fix
Group wave tasks by owning repo root. Run commit + orch branch ref update per repo instead of just for
repoRoot.Related
extensions/taskplane/execution.tsensureTaskFilesCommitted()