From ece65c886b5fb8eede204c9e1e0bfdea6a374d0c Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Mon, 30 Mar 2026 20:48:17 -0700 Subject: [PATCH] fix: patch name: before creating symlinks to fix --no-prefix ordering bug gstack-patch-names must run BEFORE link_claude_skill_dirs so symlink names reflect the correct (patched) name: values. Previously, switching from --prefix to --no-prefix would read stale gstack-* names from SKILL.md and create wrong symlinks. (Codex adversarial finding) Co-Authored-By: Claude Opus 4.6 (1M context) --- setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup b/setup index 609311d5..91f0c9e7 100755 --- a/setup +++ b/setup @@ -566,8 +566,10 @@ if [ "$INSTALL_CLAUDE" -eq 1 ]; then else cleanup_prefixed_claude_symlinks "$SOURCE_GSTACK_DIR" "$INSTALL_SKILLS_DIR" fi - link_claude_skill_dirs "$SOURCE_GSTACK_DIR" "$INSTALL_SKILLS_DIR" + # Patch name: fields BEFORE creating symlinks so link_claude_skill_dirs + # reads the correct (patched) name: values for symlink naming "$SOURCE_GSTACK_DIR/bin/gstack-patch-names" "$SOURCE_GSTACK_DIR" "$SKILL_PREFIX" + link_claude_skill_dirs "$SOURCE_GSTACK_DIR" "$INSTALL_SKILLS_DIR" if [ "$LOCAL_INSTALL" -eq 1 ]; then echo "gstack ready (project-local)." echo " skills: $INSTALL_SKILLS_DIR"