Skip to content

fix(POR-22647): handle platform unknown user type errors in notification-center - #1413

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22647-cursor-automated-triage-response-28b4
Draft

fix(POR-22647): handle platform unknown user type errors in notification-center#1413
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22647-cursor-automated-triage-response-28b4

Conversation

@cursor

@cursor cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Add try/catch around notification fetch on /notification-center so platform API failures (e.g. unknown user type) show a user-friendly SilentError instead of an unhandled Next.js request error in Sentry
  • Return early when the token lacks notificationId
  • Use safeParse for in-product CTA params and show a clear message when the notification is not task-linked

Testing Criteria

  • Verified yarn lint:check passes on the changed file
  • Change follows the same defensive pattern as POR-22642/22643/22646 notification-center fixes

Notes

  • The unknown user type error originates from the Assembly platform notification API, not tasks-app code. This PR prevents it from surfacing as a Sentry production alert when an IU opens a malformed or incompatible in-product notification.
  • Manual follow-up: inspect the Sentry event in the Tasks project for workspace/notification ID and verify platform notification sender/recipient user type metadata.

Impact & Surface Area of Change

  • /notification-center page only — error handling for notification deep-link redirects
Open in Web View Automation 

…ion-center

Gracefully catch platform API failures when loading in-product notifications
via /notification-center instead of letting them bubble up as unhandled Next.js
request errors in Sentry.

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

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22647

@vercel

vercel Bot commented Aug 22, 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 Aug 22, 2026 4:05am

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.

1 participant