Fix daemon polecat respawn to pass rigPath for rig agent settings
Daemon's restartPolecatSession was calling BuildPolecatStartupCommand with empty rigPath, causing polecats to fall back to town-level defaults instead of honoring rig-specific agent settings. Now passes rigPath so rig agent settings are honored. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -798,7 +798,9 @@ func (d *Daemon) restartPolecatSession(rigName, polecatName, sessionName string)
|
||||
_ = d.tmux.SetPaneDiedHook(sessionName, agentID)
|
||||
|
||||
// Launch Claude with environment exported inline
|
||||
startCmd := config.BuildPolecatStartupCommand(rigName, polecatName, "", "")
|
||||
// Pass rigPath so rig agent settings are honored (not town-level defaults)
|
||||
rigPath := filepath.Join(d.config.TownRoot, rigName)
|
||||
startCmd := config.BuildPolecatStartupCommand(rigName, polecatName, rigPath, "")
|
||||
if err := d.tmux.SendKeys(sessionName, startCmd); err != nil {
|
||||
return fmt.Errorf("sending startup command: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user