Skip to content

fix(POR-22653): handle platform module-not-found errors gracefully - #1420

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

fix(POR-22653): handle platform module-not-found errors gracefully#1420
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22653-cursor-automated-triage-response-8163

Conversation

@cursor

@cursor cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Wrap /notification-center notification fetch in try/catch so platform errors (e.g. Module not found / parameter_invalid_empty) render a user-friendly SilentError instead of an unhandled Next.js request error in Sentry
  • Add defensive loading to /configure-tasks-app with token validation and try/catch around page data fetches
  • Harden CopilotAPI#getNotificationSettings to return empty settings when app install listing or settings fetch fails
  • Return early when the token payload has no notificationId
  • Use safeParse for in-product CTA params and show a clear message when the notification is not task-linked

Testing Criteria

  • Code review of /notification-center and /configure-tasks-app error paths: invalid token, missing notificationId, API failure, non-task CTA params
  • resolveNotificationSettingId unit tests pass (7/7)
  • Lint on changed files (no new issues)

Notes

Impact & Surface Area of Change

  • src/app/notification-center/page.tsx — IU notification deep-link entry point
  • src/app/configure-tasks-app/page.tsx — IU app configuration entry point
  • src/utils/CopilotAPI.ts — notification settings resolution for IU email gating
Open in Web View Automation 

Wrap notification-center and configure-tasks-app server loads in
try/catch so platform errors (e.g. Module not found / parameter_invalid_empty)
render SilentError instead of unhandled Next.js request errors in Sentry.

Also harden CopilotAPI#getNotificationSettings to return empty settings
when app install listing or settings fetch fails.

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

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22653

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

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