Skip to content

Conversation

szymonrybczak
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Sep 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ai Ready Ready Preview Comment Sep 24, 2025 10:44am

subject: z.string().optional().describe('Email subject line'),
}),
execute: async ({ email, subject }) => {
Linking.openURL(`mailto:${email}?subject=${subject}`)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Email Tool Malforms URLs with Undefined Parameters

The openEmail tool unconditionally includes the optional subject parameter in the mailto URL. When subject is undefined, it's stringified as "undefined", creating a malformed URL instead of omitting the parameter.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant