You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
afx task builders cannot be resumed or attached to an existing branch #159
So --resume mints a fresh id and then looks for a worktree at that new path, which does not exist. There is also no way to name the builder on the command line: the positional argument only accepts a number or ABC-123 (agent-farm/cli.ts:345-352), so afx spawn task-uxln --resume fails with Invalid issue identifier: task-uxln before it reaches the spawn logic.
--branch is ignored for task builders
spawnTask never reads options.branch. It hardcodes:
constbranchName=`builder/${worktreeName}`;
The spec path (line 429) and the issue path (line 814) both honour options.branch. The task path does not, and does not warn that it is ignoring the flag.
Effect
A task builder cannot change harness mid-task and cannot be recovered onto a new session. The only workaround is to commit and push its work by hand, file an issue describing the remainder, and spawn a numbered builder against the branch. That is what was done here; the branch was builder/task-uxln and the follow-up issue is #156.
Suggested fix
Accept a task builder id as the positional argument when --resume is present, and resolve the worktree from it instead of generating a new short id.
Honour options.branch in spawnTask, matching the other two paths.
Failing either, reject the flag combination loudly rather than silently generating a new builder. A flag that is quietly ignored is worse than one that errors.
Activity