Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6aa8eaf

Browse files
committed
fix whoopsie
1 parent2d79ecc commit6aa8eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎agent/agentcontainers/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
992992
logger.Debug(ctx,"container ID changed, injecting subagent into new container",
993993
slog.F("old_container_id",proc.containerID),
994994
)
995-
maybeRecreateSubAgent=true
995+
maybeRecreateSubAgent=proc.agent.ID!=uuid.Nil
996996
}
997997

998998
// Container ID changed or the subagent process is not running,
@@ -1157,7 +1157,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
11571157
subAgentConfig.DisplayApps=displayApps
11581158
}
11591159

1160-
deleteSubAgent:=maybeRecreateSubAgent&&!proc.agent.EqualConfig(subAgentConfig)
1160+
deleteSubAgent:=proc.agent.ID!=uuid.Nil&&maybeRecreateSubAgent&&!proc.agent.EqualConfig(subAgentConfig)
11611161
ifdeleteSubAgent {
11621162
logger.Debug(ctx,"deleting existing subagent for recreation",slog.F("agent_id",proc.agent.ID))
11631163
client:=*api.subAgentClient.Load()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp