Skip to content

Commit 00f59c9

Browse files
gastown/crew/navaniclaude
authored andcommitted
fix(polecat): pass agent override to startup command builder
When sling dispatches a polecat with --agent override (e.g., gemini), the override was used to resolve the runtime config for fallback info but NOT passed to BuildStartupCommandFromConfig. The command builder re-resolved the agent from role_agents (defaulting to claude-opus), so the actual tmux command launched claude instead of gemini. Pass opts.Agent through so the correct agent binary and flags (including -i for Gemini prompt injection) are used. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e60401c commit 00f59c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/polecat/session_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (m *SessionManager) Start(polecat string, opts SessionStartOptions) error {
299299
Issue: opts.Issue,
300300
Topic: "assigned",
301301
SessionName: sessionID,
302-
}, m.rig.Path, beacon, "")
302+
}, m.rig.Path, beacon, opts.Agent)
303303
if err != nil {
304304
return fmt.Errorf("building startup command: %w", err)
305305
}

0 commit comments

Comments
 (0)