fix(handoff): preserve GT_AGENT across session restarts (#788)
Adds GT_AGENT env var to track agent override when using --agent flag. Handoff reads and preserves GT_AGENT so non-default agents persist across restarts. Co-authored-by: joshuavial <git@codewithjv.com>
This commit is contained in:
@@ -1353,6 +1353,10 @@ func BuildStartupCommandWithAgentOverride(envVars map[string]string, rigPath, pr
|
||||
if rc.Session != nil && rc.Session.SessionIDEnv != "" {
|
||||
resolvedEnv["GT_SESSION_ID_ENV"] = rc.Session.SessionIDEnv
|
||||
}
|
||||
// Record agent override so handoff can preserve it
|
||||
if agentOverride != "" {
|
||||
resolvedEnv["GT_AGENT"] = agentOverride
|
||||
}
|
||||
|
||||
// Build environment export prefix
|
||||
var exports []string
|
||||
|
||||
Reference in New Issue
Block a user