Uh oh!
There was an error while loading. Please reload this page.
feat: extract conversation ID from email HTML for Superhuman replies - #107
Conversation
Superhuman email client inserts <wbr /> tags in link text which breaks plain text extraction. Added extractRoomIdFromHtml function as secondary fallback in getEmailRoomId to handle this case. 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.
* feat: make room_id required in send_email tool The room_id parameter is now required to ensure all outbound emails include the chat link footer, enabling email thread continuity. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add POST /api/chats endpoint for creating chat rooms - Add createChatHandler in lib/chats/ - Add POST route at app/api/chats/ - Account ID inferred from API key - Optional artistId and chatId params - chatId auto-generated if not provided Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add input validation pattern to CLAUDE.md and chats endpoint - Document validate function pattern using Zod in CLAUDE.md - Add validateCreateChatBody.ts for POST /api/chats - Update createChatHandler to use the validate function Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Remove try-catch around request.json(), follow existing pattern Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add safeParseJson utility for optional request bodies - Create safeParseJson helper that returns {} if body is empty/invalid - Use in createChatHandler so body is not required - All params are optional, so empty body should work Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat: extract conversation ID from email HTML for Superhuman replies (#107) Superhuman email client inserts <wbr /> tags in link text which breaks plain text extraction. Added extractRoomIdFromHtml function as secondary fallback in getEmailRoomId to handle this case. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Summary
extractRoomIdFromHtmlfunction to extract conversation IDs from email HTML content<wbr />tag insertion in link text that breaks plain text extractiongetEmailRoomIdto check HTML as a secondary fallback between text and references headerTest plan
extractRoomIdFromHtml(11 tests) - handles wbr tags, URL-encoded links, edge casesgetEmailRoomId(3 new tests) - verifies HTML extraction prioritypnpm test)🤖 Generated with Claude Code