We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent2d79ecc commit6aa8eafCopy full SHA for 6aa8eaf
agent/agentcontainers/api.go
@@ -992,7 +992,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
992
logger.Debug(ctx,"container ID changed, injecting subagent into new container",
993
slog.F("old_container_id",proc.containerID),
994
)
995
-maybeRecreateSubAgent=true
+maybeRecreateSubAgent=proc.agent.ID!=uuid.Nil
996
}
997
998
// Container ID changed or the subagent process is not running,
@@ -1157,7 +1157,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
1157
subAgentConfig.DisplayApps=displayApps
1158
1159
1160
-deleteSubAgent:=maybeRecreateSubAgent&&!proc.agent.EqualConfig(subAgentConfig)
+deleteSubAgent:=proc.agent.ID!=uuid.Nil&&maybeRecreateSubAgent&&!proc.agent.EqualConfig(subAgentConfig)
1161
ifdeleteSubAgent {
1162
logger.Debug(ctx,"deleting existing subagent for recreation",slog.F("agent_id",proc.agent.ID))
1163
client:=*api.subAgentClient.Load()