Conversation
Primary check now looks for Recoup chat link in email body text: https://chat.recoupable.com/chat/{uuid} Falls back to references header lookup if not found in text. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Extract roomId from email text before checking headers - Convert stored UI parts (step-start, dynamic-tool, reasoning) to simple text-based ModelMessages for AI SDK compatibility - Fixes AI_InvalidPromptError when replying to email threads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename extractText to extractTextFromParts - Move to lib/emails/inbound/extractTextFromParts.ts - Add SRP/DRY/KISS principles to CLAUDE.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add comprehensive tests for extractRoomIdFromText covering valid chat links, edge cases (undefined, empty string, invalid UUIDs), and wrong domains - Add tests for getEmailRoomId covering primary text extraction, fallback to references header, and various undefined scenarios - Verify priority: chat link in email text takes precedence over headers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…-email-webhook-before-checking feat: extract roomId from email text before checking headers
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces utility functions for parsing chat links and email parts, adds comprehensive test coverage for room ID and message extraction, refactors email room ID resolution to prioritize text-based chat links, and removes debug logging. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
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 |
Summary by CodeRabbit
Bug Fixes
Tests
Refactor
Chores
✏️ Tip: You can customize this high-level summary in your review settings.