Fix remaining worker startups for gt seance metadata
- startCrewMember: now uses BuildCrewStartupCommand (was GetRuntimeCommand) - refinery/manager.go: now uses BuildAgentStartupCommand (was GetRuntimeCommand) Both now properly inject BD_ACTOR and GT_ROLE so seance can identify sessions correctly. This completes the seance metadata fix started in the previous commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -194,7 +194,8 @@ func (m *Manager) Start(foreground bool) error {
|
||||
// Start Claude agent with full permissions (like polecats)
|
||||
// NOTE: No gt prime injection needed - SessionStart hook handles it automatically
|
||||
// Restarts are handled by daemon via LIFECYCLE mail, not shell loops
|
||||
command := config.GetRuntimeCommand("")
|
||||
// Export GT_ROLE and BD_ACTOR in the command since tmux SetEnvironment only affects new panes
|
||||
command := config.BuildAgentStartupCommand("refinery", bdActor, "", "")
|
||||
if err := t.SendKeys(sessionID, command); err != nil {
|
||||
// Clean up the session on failure (best-effort cleanup)
|
||||
_ = t.KillSession(sessionID)
|
||||
|
||||
Reference in New Issue
Block a user