Skip to content

ensureTaskFilesCommitted only updates orch branch in primary repo (workspace mode gap) #479

@HenryLach

Description

@HenryLach

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions