From 0e6c748374f1fa48d2f801c80b3dea8afc26a5b5 Mon Sep 17 00:00:00 2001 From: moilanik Date: Thu, 12 Mar 2026 10:29:55 +0200 Subject: [PATCH] fix: skip ai-superpower repo itself during project scan apply.sh was scanning its own directory and creating a recursive .ai symlink inside .ai/, causing infinite folder nesting in VS Code. - Skip $SCRIPT_DIR in scan_projects() to prevent self-symlinking - Remove incorrectly created .ai/.ai symlink and .ai/.gitignore - Add -root session reset command to ai-root-instructions.md - Document -root command in README --- .ai/.gitignore | 1 - apply.sh | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .ai/.gitignore diff --git a/.ai/.gitignore b/.ai/.gitignore deleted file mode 100644 index 0e3265d..0000000 --- a/.ai/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.ai diff --git a/apply.sh b/apply.sh index 6dcd948..68682c4 100755 --- a/apply.sh +++ b/apply.sh @@ -180,6 +180,7 @@ scan_projects() { while IFS= read -r gitdir; do project="$(cd "$(dirname "$gitdir")" && pwd)" if [[ -f "$project/.ai-superpower" ]]; then continue; fi + if [[ "$project" == "$SCRIPT_DIR" ]]; then continue; fi setup_project "$project" (( projects_found++ )) || true done < <(find "$dev_root" -mindepth 2 -maxdepth 4 -name ".git" -type d 2>/dev/null || true)