skip assignment on subsequent runs

This commit is contained in:
Miloš Jovanović 2026-09-24 19:35:32 -07:00
parent a80acaaf6b
commit c615023de4

View file

@ -44,6 +44,10 @@ func (s *Server) reconcile(ctx context.Context, runID int64, rep *User, dept str
continue continue
} }
if existing == agent {
continue // already assigned to the right rep
}
if existing != 0 { if existing != 0 {
// Fill-only: never displace an existing agent. // Fill-only: never displace an existing agent.
skipped++ skipped++