fix: spawn and swarm bug fixes from MVP testing
- spawn.go: Parse bd show --json as array, fix issue_type json tag - session/manager.go: Check filesystem directly in hasPolecat() to handle newly-created polecats - swarm/manager.go: Use bd show to get children via dependents field instead of non-existent bd list --parent flag 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ package session
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -72,12 +73,13 @@ func (m *Manager) polecatDir(polecat string) string {
|
||||
|
||||
// hasPolecat checks if the polecat exists in this rig.
|
||||
func (m *Manager) hasPolecat(polecat string) bool {
|
||||
for _, p := range m.rig.Polecats {
|
||||
if p == polecat {
|
||||
return true
|
||||
}
|
||||
// Check filesystem directly to handle newly-created polecats
|
||||
polecatPath := m.polecatDir(polecat)
|
||||
info, err := os.Stat(polecatPath)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return false
|
||||
return info.IsDir()
|
||||
}
|
||||
|
||||
// Start creates and starts a new session for a polecat.
|
||||
|
||||
Reference in New Issue
Block a user