Skip to content

fix(POR-22663): handle platform contract file authorization errors in notification-center - #1426

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22663-cursor-automated-triage-response-21b5
Draft

fix(POR-22663): handle platform contract file authorization errors in notification-center#1426
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22663-cursor-automated-triage-response-21b5

Conversation

@cursor

@cursor cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Add defensive error handling in /notification-center when the platform fails to fetch an associated contract file (unauthorized_action / unable to perform action)
  • Early return when token payload lacks notificationId
  • Use safeParse for CTA params instead of throwing on invalid notification shape

Testing Criteria

  • Verified TypeScript compiles for the changed file (pre-existing icon module errors unrelated)
  • Pattern matches prior triage fixes (POR-22651, POR-22655, POR-22654) validated on sibling PR branches

Notes

  • Root cause is platform-side: Assembly API returns not able to get contract file: code [unauthorized_action] error [unable to perform action] when loading notification details that reference a contract file the IU cannot access.
  • Tasks-app cannot fix the authorization issue; this PR prevents the error from surfacing as an unhandled Next.js request error in Sentry.
  • Manual follow-up: check Sentry (Tasks project) for workspace/notification/contract IDs; verify IU permissions on the referenced contract file.

Impact & Surface Area of Change

  • /notification-center server component only — IU in-product notification deep-link entry point.
  • On platform failure, users see a friendly SilentError instead of a 500/unhandled error.
Open in Web View Automation 

… notification-center

When an IU opens an in-product notification via /notification-center, the
platform may fail with unauthorized_action when fetching an associated
contract file. Catch platform errors and show SilentError instead of
surfacing an unhandled request error to 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-22663

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

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