Skip to content

Commit 7a3674a

Browse files
committed
add comment about idempotency
1 parent 7e5ede0 commit 7a3674a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agentcontainers/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,8 @@ func (api *API) cleanupSubAgents(ctx context.Context) error {
944944

945945
// maybeInjectSubAgentIntoContainerLocked injects a subagent into a dev
946946
// container and starts the subagent process. This method assumes that
947-
// api.mu is held.
947+
// api.mu is held. This method is idempotent and will not re-inject the
948+
// subagent if it is already/still running in the container.
948949
//
949950
// This method uses an internal timeout to prevent blocking indefinitely
950951
// if something goes wrong with the injection.

0 commit comments

Comments
 (0)