Uh oh!
There was an error while loading. Please reload this page.
fix: create room if roomId is provided but doesn't exist - #136
Conversation
When a roomId is provided to setupConversation but the room doesn't actually exist in the database, we now check and create it instead of failing with a foreign key constraint error on the memories table. This fixes the error: Error creating memory: Key (room_id)=(...) is not present in table "rooms" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 |
Uh oh!
There was an error while loading. Please reload this page.
Summary
roomIdis provided tosetupConversationbut the room doesn't actually exist in the databaseroomIdis provided, and creates it if neededProblem
The error occurred because:
roomIdthat doesn't exist in the databasesetupConversationassumed ifroomIdis provided, the room existsKey (room_id)=(...) is not present in table "rooms"Test plan
🤖 Generated with Claude Code