Repository navigation
Pin a spawned worktree only when the caller's worktree is pinned - #270
Merged
Merged
Conversation
spawn-task.sh checks the caller's git toplevel against `supacode worktree list --status pinned` before it pins the new worktree. Claude-Session: https://claude.ai/code/session_01AovXvaGgyLLBGKc8NqqHLk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/spawn-taskpinned every new worktree in Supacode, even when the session that spawned it ran in an unpinned worktree.spawn-task.shnow pins the new worktree only when the worktree it runs from is pinned. It checks the caller's git root againstsupacode worktree list --status pinned. Supacode gives a repo's main checkout the statusmain, notpinned, so spawning from a main checkout doesn't pin.Test plan
bash ai/skills/spawn-task/scripts/tests/test-spawn-task.shpasses, with new cases for a caller in a pinned worktree, an unpinned worktree, and the main checkout/spawn-taskfrom a pinned worktree and confirm the new worktree is pinned/spawn-taskfrom an unpinned worktree and confirm the new worktree is not pinnedhttps://claude.ai/code/session_01AovXvaGgyLLBGKc8NqqHLk