mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-12 15:55:03 -05:00
Replace the read-modify-write pattern in stream_chat_post with an atomic append_and_save_message helper that acquires the session lock before re-fetching and appending. This prevents message loss when concurrent requests modify the same session.