mirror of
https://github.com/csunny/DB-GPT.git
synced 2026-07-16 17:15:22 +00:00
When an agent conversation fails unexpectedly (leaving state as RUNNING or FAILED), subsequent attempts to start a new conversation would cause a database conflict error due to duplicate conv_id. This fix: - Adds _cleanup_failed_conversation method to remove failed conversation records and associated messages/plans - Detects RUNNING or FAILED state in last conversation before creating a new one - Cleans up residual data before generating a new conversation ID Co-Authored-By: Claude (GLM-5) <noreply@anthropic.com>