Skip to content

fix(POR-22648): handle platform apps entity errors in notification-center - #1416

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22648-cursor-automated-triage-response-e7ac
Draft

fix(POR-22648): handle platform apps entity errors in notification-center#1416
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22648-cursor-automated-triage-response-e7ac

Conversation

@cursor

@cursor cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Wrap notification fetch in /notification-center with try/catch so platform errors (e.g. No entity type for apps found) show a user-friendly SilentError instead of an unhandled request error in Sentry
  • Return early when token payload lacks notificationId
  • Use safeParse for CTA params and show a clear message when the notification is not task-linked

Testing Criteria

  • Verified lint passes on modified file
  • Change mirrors the defensive pattern from POR-22642/22643/22646/22647 PRs

Notes

  • Related Linear issue: POR-22648
  • The error originates from the Copilot platform API when resolving an apps-scoped notification entity; Tasks cannot fix the platform mapping but can handle it gracefully

Impact & Surface Area of Change

  • /notification-center page only — affects IU in-product notification deep-link flow when platform returns entity-type errors
Open in Web View Automation 

…nter

Wrap notification fetch in try/catch so platform errors like 'No entity
type for apps found' show a user-friendly SilentError instead of an
unhandled request error in Sentry. Also use safeParse for CTA params
and return early when token payload lacks notificationId.

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

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22648

@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:07am

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