Skip to content

Commit acdf368

Browse files
furiosaclaude
andcommitted
fix(sling): pass issue variable with bead ID instead of feature with title
When using `gt sling <formula> --on <bead>`, the wisp creation was incorrectly passing `feature=<title>` instead of `issue=<beadID>`. This caused formulas like mol-polecat-work to fail with "missing required variables: issue". Fixes: gt-ojnm2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0fe4501 commit acdf368

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/cmd/sling.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ func runSling(cmd *cobra.Command, args []string) error {
400400
return fmt.Errorf("cooking formula %s: %w", formulaName, err)
401401
}
402402

403-
// Step 2: Create wisp with feature variable from bead title
404-
featureVar := fmt.Sprintf("feature=%s", info.Title)
405-
wispArgs := []string{"--no-daemon", "mol", "wisp", formulaName, "--var", featureVar, "--json"}
403+
// Step 2: Create wisp with issue variable from bead ID
404+
issueVar := fmt.Sprintf("issue=%s", beadID)
405+
wispArgs := []string{"--no-daemon", "mol", "wisp", formulaName, "--var", issueVar, "--json"}
406406
wispCmd := exec.Command("bd", wispArgs...)
407407
wispCmd.Dir = formulaWorkDir
408408
wispCmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)