diff --git a/agentydragon/tasks/35-tui-inspect-env-integration.md b/agentydragon/tasks/.done/35-tui-inspect-env-integration.md similarity index 100% rename from agentydragon/tasks/35-tui-inspect-env-integration.md rename to agentydragon/tasks/.done/35-tui-inspect-env-integration.md diff --git a/agentydragon/tools/create_task_worktree.py b/agentydragon/tools/create_task_worktree.py index 6c660aefd8..699d815f8c 100644 --- a/agentydragon/tools/create_task_worktree.py +++ b/agentydragon/tools/create_task_worktree.py @@ -142,7 +142,8 @@ def main(agent, tmux_mode, interactive, shell_mode, skip_presubmit, task_inputs) if status and status.lower() == 'done': click.echo(f"Task {slug} marked Done; running Commit agent helper") commit_script = repo_root() / 'agentydragon' / 'tools' / 'launch_commit_agent.py' - run([sys.executable, str(commit_script), slug]) + # Launch commit agent from the main repo root, not inside the task worktree + run([sys.executable, str(commit_script), slug], cwd=str(repo_root())) else: click.echo(f"Task {slug} status is '{status or 'unknown'}'; skipping Commit agent helper")