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
30 changes: 21 additions & 9 deletions cmd/bd/wisp.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,23 +243,35 @@ func runWispCreate(cmd *cobra.Command, args []string) {
)
}

// Wisps are vapor (ephemeral) by default — only create the root issue.
// Materializing child step issues is the "pour" path (bd pour), not wisps.
// Formulas that explicitly set pour=true get children even as wisps.
if !rootOnly && subgraph != nil && !subgraph.Pour {
rootOnly = true
}

if dryRun {
fmt.Printf("\nDry run: would create wisp with %d issues from proto %s\n\n", len(subgraph.Issues), protoID)
if rootOnly {
skipped := len(subgraph.Issues) - 1
fmt.Printf("\nDry run: would create wisp with 1 issue (root only) from proto %s\n", protoID)
if skipped > 0 {
fmt.Printf(" Note: %d child step(s) skipped — set pour=true in formula to materialize them\n", skipped)
}
} else {
fmt.Printf("\nDry run: would create wisp with %d issues from proto %s\n\n", len(subgraph.Issues), protoID)
}
fmt.Printf("Storage: main database (ephemeral=true, not synced via git)\n\n")
for _, issue := range subgraph.Issues {
issuesToShow := subgraph.Issues
if rootOnly && len(issuesToShow) > 0 {
issuesToShow = issuesToShow[:1]
}
for _, issue := range issuesToShow {
newTitle := substituteVariables(issue.Title, vars)
fmt.Printf(" - %s (from %s)\n", newTitle, issue.ID)
}
return
}

// Wisps are vapor (ephemeral) by default — only create the root issue.
// Materializing child step issues is the "pour" path (bd pour), not wisps.
// Formulas that explicitly set pour=true get children even as wisps.
if !rootOnly && subgraph != nil && !subgraph.Pour {
rootOnly = true
}

// Spawn as ephemeral in main database (Ephemeral=true, not synced via git)
// Use wisp prefix for distinct visual recognition (see types.IDPrefixWisp)
result, err := spawnMoleculeWithOptions(ctx, store, subgraph, CloneOptions{
Expand Down
Loading