Repository navigation
Replies: 1 comment
|
+1, I hit the stale-coordinator case too. I've implemented exactly this shape on my fork:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
delegate_taskwithisolation: "worktree"always cuts the child's worktree from the parent thread's current commit. When the parent's checkout is behind its remote, for example a long-running coordinator thread or a main checkout that has not pulled, the child starts on stale code.In one case a child started three releases behind
origin/main. It worked against old code and had to rebase before it could open its PR.Existing capability
t3_thread_launchalready lets the caller choose the base of a new worktree:workspaceStrategytakesbaseRefandstartFromOrigin.Proposal
Accept the same two optional fields on
delegate_taskwhenisolationis"worktree":baseRef: the ref to cut the child's worktree from.startFromOrigin: fetch first and cut from the remote ref.When both are omitted, the behavior stays as it is today.
Workarounds today
t3_thread_launchinstead. The child is then not tracked bytask_statusandtask_cancel.All reactions