mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-07 05:15:09 -05:00
Compute message sequence numbers inside the database transaction rather than trusting a pre-queried count, preventing UniqueViolationError when multiple pods insert messages concurrently. Adds retry logic at both the db batch-insert layer and the model upsert layer for defense in depth.