Skip to content

Sanitize reminder email subjects before Copilot sends - #1358

Closed
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/POR-20701-cursor-automated-triage-response-0a50
Closed

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/POR-20701-cursor-automated-triage-response-0a50

Conversation

@cursor

@cursor cursor Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Normalize task-title-derived reminder email subjects for override workspaces before sending to Copilot.
  • Truncate derived reminder subjects to 120 characters so long task titles are less likely to be rejected by the email provider.
  • Fall back to the default reminder subject when stripping the configured phrase leaves no meaningful task-title subject.

Testing Criteria

  • yarn test src/jobs/notifications/send-reminder-email.test.ts --runInBand — passes 10 reminder email cases, including long-subject truncation and empty-title fallback.
  • yarn lint:check — passes with existing React hook/compiler warnings only.
  • yarn tsc — attempted; still fails on pre-existing src/icons/index.ts SVG module declaration errors unrelated to this change.

Notes

  • Linear and Sentry MCP auth were unavailable in this environment (Linear calls returned 401; Sentry MCP requires auth), so direct Sentry event inspection and Linear commenting may be unavailable from this automation run.
  • Trigger payload showed POR-20701 in Triage; the reported error shape matches Tasks' CopilotAPI#_manualFetch wrapper for failed /v1/notifications calls.

Impact & Surface Area of Change

  • Narrowly affects email-only task reminder subjects for workspaces configured in REMINDER_SUBJECT_OVERRIDE_WORKSPACES.
  • Default reminder subjects and non-override workspaces are unchanged.
  • Copilot email delivery errors should remain visible for failures not caused by malformed/overlong derived subjects.
Open in Web View Automation 

Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
@linear-code

linear-code Bot commented Jun 29, 2026

Copy link
Copy Markdown

POR-20701

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
tasks-app Ready Ready Preview, Comment Jun 29, 2026 3:52pm

Request Review

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