-
-
Notifications
You must be signed in to change notification settings - Fork 559
fix: deduplicate conversation step rows before Supabase upsert #1038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 7936e41 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This comment has been minimized.
This comment has been minimized.
📝 WalkthroughWalkthroughThis change fixes a behavioral issue where multiple conversation steps with identical IDs in a single persistence batch caused Postgres ON CONFLICT errors. The solution deduplicates step records by ID before upserting to Supabase, retaining only the last record per ID and preserving last-write-wins semantics. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 3 files
Deploying voltagent with
|
| Latest commit: |
7936e41
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d8af86bb.voltagent.pages.dev |
| Branch Preview URL: | https://fix-supabase-conversation-st.voltagent.pages.dev |
PR Checklist
Please check if your PR fulfills the following requirements:
Bugs / Features
What is the current behavior?
What is the new behavior?
fixes (issue)
Notes for reviewers
Summary by cubic
Deduplicates conversation step rows by id before Supabase upsert to prevent Postgres conflict errors. Preserves last-write-wins behavior for steps.
Written for commit 7936e41. Summary will update on new commits.
Summary by CodeRabbit