Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions executable_yolo
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,12 @@ run_multi_agents() {
cmd_arr+=(--add-dir "$YOLO_WORKTREE_PATH")
fi

# If auggie, add --workspace-root to use the worktree directory
if [[ "$agent" == "auggie" ]]; then
# Set workspace root to the current worktree path
cmd_arr+=("--workspace-root" "$YOLO_WORKTREE_PATH")
fi

# Return to the original directory to continue creating more worktrees
cd "$start_pwd"

Expand Down Expand Up @@ -1702,6 +1708,11 @@ main() {
full_command+=("${flag_array[@]}")
fi

# If running in worktree mode, set workspace root to worktree path
if [[ "$use_worktree" == "true" && -n "$YOLO_WORKTREE_PATH" ]]; then
full_command+=("--workspace-root" "$YOLO_WORKTREE_PATH")
fi

# If prompt provided, use --print mode for automation
if (( ${#command_args[@]} )); then
local prompt_joined
Expand Down