Fix witness to pass rigPath for rig agent settings
Witness was calling BuildAgentStartupCommand with empty rigPath, causing it to fall back to town-level defaults instead of honoring rig-specific agent settings (like RigSettings.Agent). Now passes m.rig.Path so rig agent settings are honored, consistent with how refinery already passes the rig path. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -181,7 +181,8 @@ func (m *Manager) Start(foreground bool) error {
|
||||
// Restarts are handled by daemon via LIFECYCLE mail or deacon health-scan
|
||||
// NOTE: No gt prime injection needed - SessionStart hook handles it automatically
|
||||
// Export GT_ROLE and BD_ACTOR in the command since tmux SetEnvironment only affects new panes
|
||||
command := config.BuildAgentStartupCommand("witness", bdActor, "", "")
|
||||
// Pass m.rig.Path so rig agent settings are honored (not town-level defaults)
|
||||
command := config.BuildAgentStartupCommand("witness", bdActor, m.rig.Path, "")
|
||||
if err := t.SendKeys(sessionID, command); err != nil {
|
||||
_ = t.KillSession(sessionID) // best-effort cleanup
|
||||
return fmt.Errorf("starting Claude agent: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user