Skip to content

Handle missing-token activity log requests - #1391

Draft
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/out-3974-cursor-automated-triage-response-52df
Draft

Handle missing-token activity log requests#1391
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/out-3974-cursor-automated-triage-response-52df

Conversation

@cursor

@cursor cursor Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Wrap GET /api/activity-logs/[id] with the shared withErrorHandler API wrapper.
  • Add a regression test proving missing-token requests return a quiet 401 JSON response instead of surfacing as an unhandled route exception.

Testing Criteria

  • yarn test src/app/api/tests/routes/activity-log-route.test.ts src/app/api/tests/utils/withErrorHandler.test.ts --runInBand — 2 suites / 11 tests passed.
  • yarn prettier:check — passed.
  • yarn lint:check — passed with existing React hook/compiler warnings.
  • yarn tsc — still fails only on the known pre-existing SVG module declaration errors in src/icons/index.ts.

Notes

  • Linear/Sentry direct reads were unavailable from this automation environment (Linear returned 401; Sentry MCP requires auth), but the issue title exactly matches the Tasks API auth error thrown by authenticate when no token query parameter is provided.

Impact & Surface Area of Change

  • Scope is limited to the legacy activity-log detail API route. Authenticated successful behavior still calls the same ActivityLogService#get; expected client/auth errors now follow the same response and logging behavior as the rest of the authenticated API routes.
Open in Web View Automation 

cursoragent and others added 4 commits July 12, 2026 18:04
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
@linear-code

linear-code Bot commented Jul 12, 2026

Copy link
Copy Markdown

OUT-3974

@vercel

vercel Bot commented Jul 12, 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 Jul 12, 2026 6:07pm

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