Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: clarify rule risk headline for webhook actions#2905

Open
alexcf wants to merge 1 commit into
elie222:mainelie222/inbox-zero:mainfrom
alexcf:fix/rule-risk-headline-copyalexcf/inbox-zero:fix/rule-risk-headline-copyCopy head branch name to clipboard
Open

fix: clarify rule risk headline for webhook actions#2905
alexcf wants to merge 1 commit into
elie222:mainelie222/inbox-zero:mainfrom
alexcf:fix/rule-risk-headline-copyalexcf/inbox-zero:fix/rule-risk-headline-copyCopy head branch name to clipboard

Conversation

@alexcf

@alexcf alexcf commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Problem

The "Review before enabling" alert (PendingCreateRuleCardContent in apps/web/components/assistant-chat/tools.tsx) always renders the headline:

This rule can send email automatically. Review it before enabling.

For a rule whose only risky action is CALL_WEBHOOK, this is inaccurate — the rule does not send an email, it POSTs email data to an external URL. The detail line right below it already says this correctly:

Medium Risk: Webhook actions can send email data to an external URL…

So the headline over-claims for webhook-only rules.

Fix

The component only receives riskMessages: string[] (not the action types), so rather than thread new props through just for copy, this rewords the shared headline to be accurate for both categories:

This rule can automatically send email or share email data. Review it before enabling.

Covers reply/send/forward ("send email") and CALL_WEBHOOK ("share email data") without a conditional.

Copy-only change; no behaviour change.

Review in cubic

The "Review before enabling" alert always showed "This rule can send
email automatically", but a rule whose only outbound action is
CALL_WEBHOOK does not send email — it POSTs email data to an external
URL (as the detail line below already states). Reword the generic
headline to cover both cases ("send email or share email data") so it
is accurate whether the rule replies/sends or calls a webhook.

Copy-only change; no behaviour change.
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Inbox Zero OSS Program Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Alex Cruz Farmer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

@alexcf
alexcf force-pushed the fix/rule-risk-headline-copy branch from d90364d to 355e7dc Compare July 3, 2026 06:41
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.