Refuse lead tools that would restart an interrupted or errored agent

This commit is contained in:
Ian Gulliver
2026-10-20 09:33:36 -07:00
parent 09d6c6e023
commit 76c1c673d7
6 changed files with 108 additions and 9 deletions
+4
View File
@@ -45,6 +45,10 @@ func leadActor(login string) string {
return login + " (lead)"
}
func isLeadActor(actor string) bool {
return strings.HasSuffix(actor, " (lead)")
}
func humanActor(actor string) bool {
return actor != "byre" && actor != agentActor && actor != boardActor && !strings.HasSuffix(actor, leadActor(""))
}