fix: drop legacy bd init retry
This commit is contained in:
@@ -420,18 +420,7 @@ func (m *Manager) initBeads(rigPath, prefix string) error {
|
|||||||
cmd.Dir = rigPath
|
cmd.Dir = rigPath
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lower := strings.ToLower(string(output))
|
// bd might not be installed or failed, create minimal structure
|
||||||
if strings.Contains(lower, "no-agents") &&
|
|
||||||
(strings.Contains(lower, "unknown flag") ||
|
|
||||||
strings.Contains(lower, "unknown option") ||
|
|
||||||
strings.Contains(lower, "flag provided but not defined")) {
|
|
||||||
retry := exec.Command("bd", "init", "--prefix", prefix)
|
|
||||||
retry.Dir = rigPath
|
|
||||||
if retryErr := retry.Run(); retryErr == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// bd might not be installed or --no-agents not supported, create minimal structure
|
|
||||||
// Note: beads currently expects YAML format for config
|
// Note: beads currently expects YAML format for config
|
||||||
configPath := filepath.Join(beadsDir, "config.yaml")
|
configPath := filepath.Join(beadsDir, "config.yaml")
|
||||||
configContent := fmt.Sprintf("prefix: %s\n", prefix)
|
configContent := fmt.Sprintf("prefix: %s\n", prefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user