Skip to content

[Bug]: delegate_task worktree isolation fails in a project whose root holds several repos (tracked folders): "Unable to resolve the parent checkout commit" #42254

Done

Description

@brycealindberg

What happened

A project whose root folder is not a Git repository, but holds several Git repositories that T3 lists as tracked folders, cannot start a delegate_task child with isolation: "worktree". The call fails with:

Unable to resolve the parent checkout commit

The child is meant to work in one of the tracked repos. There is no way to tell delegate_task which tracked repo to branch from, so T3 tries the project root, which has no commit.

Passing target.projectId of the project that is that repo (it is also registered on its own) is refused with "A local task runs in this thread's project" (that part is #30329).

Result: in a multi-repo project, the only way to get parallel writing lanes with their own checkouts is the provider's native subagent (for Claude, Agent with its own worktree). Those lanes run inside the parent session, so a T3 server restart cancels all of them. delegate_task lanes with isolation: "shared" survive the restart, but share one checkout.

Expected

One of:

  1. delegate_task accepts a repo path (or tracked-folder name) for worktree isolation, for example isolation: "worktree", repository: "<tracked folder>", and makes the worktree from that repo's default branch or current HEAD.
  2. Or, when the project root is not a repo and exactly one tracked folder matches the thread's working subfolder, worktree mode uses that repo.

Steps to reproduce

  1. Make a folder with two Git repos inside it (parent/a, parent/b). The parent is not a repo.
  2. Add parent as a T3 project. T3 lists a and b as tracked folders.
  3. In a thread of that project, call delegate_task with isolation: "worktree" and a task meant for a.
  4. It fails with "Unable to resolve the parent checkout commit".

T3 Code 0.1.12-nightly.20261124.5191, macOS, one machine.

Related: #30329 (delegate to another local project), #31250 (project inside another repository).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions