Files
DB-GPT/packages
yhjun1026 515c391291 fix: clean up failed conversation data to avoid conflict on retry
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>
2026-03-02 20:36:44 +08:00
..
2026-02-10 18:51:48 +08:00