diff --git a/CLAUDE.md b/CLAUDE.md index 86debadf..981b7ad9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,6 +11,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co 3. **NEVER push directly to `main` or `test` branches** - always use feature branches and PRs 4. Before pushing, verify the current branch is not `main` or `test` 5. **Open PRs against the `test` branch**, not `main` +6. After pushing, check if a PR exists for the branch. If not, create one with `gh pr create --base test` ### Starting a New Task diff --git a/lib/emails/sendEmailSchema.ts b/lib/emails/sendEmailSchema.ts index 820a59de..7411dd4d 100644 --- a/lib/emails/sendEmailSchema.ts +++ b/lib/emails/sendEmailSchema.ts @@ -1,9 +1,9 @@ import { z } from "zod"; export const sendEmailSchema = z.object({ - to: z.array(z.string().email()).describe("Recipient email address or array of addresses"), + to: z.array(z.email()).describe("Recipient email address or array of addresses"), cc: z - .array(z.string().email()) + .array(z.email()) .describe( "Optional array of CC email addresses. active_account_email should always be included unless already in 'to'.", ) @@ -26,7 +26,9 @@ export const sendEmailSchema = z.object({ .optional(), room_id: z .string() - .describe("Optional room ID to include in the email footer link") + .describe( + "Room ID to include in the email footer link. Use the active_conversation_id from context.", + ) .optional(), });