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:
joe
2026-01-02 18:09:31 -08:00
committed by Steve Yegge
parent cadf09d98c
commit c3e83a3d09
2 changed files with 5 additions and 3 deletions

View File

@@ -947,8 +947,9 @@ func startCrewMember(rigName, crewName, townRoot string) error {
return fmt.Errorf("waiting for shell: %w", err)
}
// Start claude
if err := t.SendKeys(sessionID, config.GetRuntimeCommand(r.Path)); err != nil {
// Start claude with proper env vars for seance
claudeCmd := config.BuildCrewStartupCommand(rigName, crewName, r.Path, "")
if err := t.SendKeys(sessionID, claudeCmd); err != nil {
return fmt.Errorf("starting claude: %w", err)
}