fix: Implement missing ClearSandboxAgents method.

This commit is contained in:
Haitao Pan 2026-02-06 16:44:11 +08:00
parent b6ab404206
commit d1195bbc75

View File

@ -298,6 +298,13 @@ func (r *Registry) SetSandboxAgent(agentID string, enabled bool) {
}
}
// ClearSandboxAgents clears all sandbox agent bindings.
func (r *Registry) ClearSandboxAgents() {
r.mu.Lock()
defer r.mu.Unlock()
r.sandboxAgents = make(map[string]bool)
}
// normalizeStrings trims whitespace and removes duplicates from the provided
// slice while preserving the original order for unique entries.
func normalizeStrings(values []string) []string {