buildBootstrapPromptForKind dispatches to the right prompt variant based on task kind. For kind='playbook_run' the playbook variant is used; otherwise the regular task variant. Empty kind (legacy rows that somehow didn't migrate) falls through to the regular variant. The bootstrap prompt is intenti
(slug, kind, playbookSlug string)
| 741 | return 0 |
| 742 | } |
| 743 | |
| 744 | // bgPlaybookContext computes (playbookSlug, isFirstRun) for a task's |
| 745 | // bootstrap prompt, mirroring the interactive bootstrap path. Returns |
| 746 | // ("", false) for regular tasks. |
| 747 | func bgPlaybookContext(db *sql.DB, task *flowdb.Task) (string, bool) { |
| 748 | if !task.PlaybookSlug.Valid { |