fix(sling): remove obsolete --naked flag
The --naked flag (skip tmux session creation) was a vestige of an earlier design requiring manual session management. With the current polecat architecture where polecats are witness-managed, ephemeral, and self-deleting after task completion, manual session management is no longer needed. The flag also created invalid states (e.g., slinging to crew --naked left them unreachable since crew require tmux sessions for communication). Closes gt-xhn5s Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
f5832188a6
commit
30a6f27404
@@ -34,7 +34,6 @@ func (s *SpawnedPolecatInfo) AgentID() string {
|
||||
// SlingSpawnOptions contains options for spawning a polecat via sling.
|
||||
type SlingSpawnOptions struct {
|
||||
Force bool // Force spawn even if polecat has uncommitted work
|
||||
Naked bool // No-tmux mode: skip session creation
|
||||
Account string // Claude Code account handle to use
|
||||
Create bool // Create polecat if it doesn't exist (currently always true for sling)
|
||||
HookBead string // Bead ID to set as hook_bead at spawn time (atomic assignment)
|
||||
@@ -115,30 +114,6 @@ func SpawnPolecatForSling(rigName string, opts SlingSpawnOptions) (*SpawnedPolec
|
||||
return nil, fmt.Errorf("getting polecat after creation: %w", err)
|
||||
}
|
||||
|
||||
// Handle naked mode (no-tmux)
|
||||
if opts.Naked {
|
||||
fmt.Println()
|
||||
fmt.Printf("%s\n", style.Bold.Render("🔧 NO-TMUX MODE (--naked)"))
|
||||
fmt.Printf("Polecat created. Agent must be started manually.\n\n")
|
||||
fmt.Printf("To start the agent:\n")
|
||||
fmt.Printf(" cd %s\n", polecatObj.ClonePath)
|
||||
// Use rig's configured agent command, unless overridden.
|
||||
agentCmd, err := config.GetRuntimeCommandWithAgentOverride(r.Path, opts.Agent)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
fmt.Printf(" %s\n\n", agentCmd)
|
||||
fmt.Printf("Agent will discover work via gt prime on startup.\n")
|
||||
|
||||
return &SpawnedPolecatInfo{
|
||||
RigName: rigName,
|
||||
PolecatName: polecatName,
|
||||
ClonePath: polecatObj.ClonePath,
|
||||
SessionName: "", // No session in naked mode
|
||||
Pane: "", // No pane in naked mode
|
||||
}, nil
|
||||
}
|
||||
|
||||
// Resolve account for runtime config
|
||||
accountsPath := constants.MayorAccountsPath(townRoot)
|
||||
claudeConfigDir, accountHandle, err := config.ResolveAccountConfigDir(accountsPath, opts.Account)
|
||||
|
||||
Reference in New Issue
Block a user