Skip to content

refactor(types): tighten common any/unknown usages with shared helpers - #2766

Merged
riderx merged 10 commits into
mainfrom
cursor/tighten-any-unknown-types-1760
Jul 27, 2026
Merged

refactor(types): tighten common any/unknown usages with shared helpers#2766
riderx merged 10 commits into
mainfrom
cursor/tighten-any-unknown-types-1760

Conversation

@riderx

@riderx riderx commented Jul 27, 2026

Copy link
Copy Markdown
Member

Summary (AI generated)

  • Added shared error helpers in src/utils/errors.ts and supabase/functions/_backend/utils/errors.ts and reused them across stores/components/backend catch paths.
  • Replaced easy bodyRaw: any with unknown, narrowed Hono Context generics, and typed webhook event checks via isWebhookEventType.
  • Removed homemade slow types: deleted recursive Merge / Concrete / ArrayElement helpers in src/services/types.ts and replaced call sites with simple Supabase Returns[number] aliases / intersections.

Motivation (AI generated)

There were hundreds of any/unknown usages, plus a homemade deep Merge utility that forced expensive recursive type instantiation. Focusing on reusable helpers and deleting our own slow types improves type safety and compile cost without rewriting Supabase-generated types.

Business Impact (AI generated)

Fewer silent type holes in API request bodies and error handling, with faster/safer frontend typechecking by dropping recursive homemade utilities.

Test Plan (AI generated)

  • bun typecheck (cli + backend + frontend)
  • bun lint / bun lint:backend / bun lint:deadcode
  • CI Run tests green on latest commit
  • Spot-check org members / usage pages still type and render correctly

Could not type (too hard / out of scope) (AI generated)

Left alone on purpose:

  • Chart.js tooltip/annotation helpers
  • Supabase client bootstrap (null as any) and many RPC/as any joins
  • SSO admin/rpc as any casts
  • Cloudflare caches, Drizzle/pg aliases
  • Stripe/plans org: any paths
  • CLI Ink onboarding UI + CLI fixtures
  • Test-only as any mocks
  • TableRow = any default kept for unparameterized tables

Generated with AI

Open in Web Open in Cursor 

Review in cubic

Summary by CodeRabbit

  • Bug Fixes

    • Improved error handling for role assignments, API key updates, webhooks, and notifications by safely extracting messages/codes and correctly detecting duplicate/structured failures.
    • Improved resilience when the CLI realtime feed preferences are malformed or not in the expected shape.
    • Strengthened webhook event validation for more consistent request outcomes.
  • Refactor

    • Tightened type safety across table rendering and core request/notification payload handling for more predictable behavior and easier maintenance.

Add reusable error helpers and replace easy bodyRaw/catch/Record any
patterns across frontend stores and backend public APIs without over-typing
Chart.js, SSO, or CLI UI paths.

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 11 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ff0a4ae7-a377-4d2d-b55e-53b773987d15

📥 Commits

Reviewing files that changed from the base of the PR and between 1d5cd1f and 3ec566a.

📒 Files selected for processing (4)
  • src/pages/settings/organization/Usage.vue
  • src/services/supabase.ts
  • src/services/types.ts
  • src/stores/organization.ts
📝 Walkthrough

Walkthrough

The PR strengthens TypeScript contracts across frontend components, stores, services, Supabase functions, request handlers, and notification utilities. It also centralizes unknown-error parsing, narrows webhook validation, and adds runtime validation for realtime-feed preferences.

Changes

Frontend typing and error handling

Layer / File(s) Summary
Shared error handling and frontend consumers
src/utils/errors.ts, src/services/*, src/components/dashboard/*, src/components/permissions/*, src/components/tables/*, src/stores/webhooks.ts
Adds shared error message/code helpers and applies unknown catch typing with normalized error extraction.
Frontend contracts and state typing
src/components/comp_def.ts, src/composables/useRealtimeCLIFeed.ts, src/services/apikeys.ts, src/services/supabase.ts, src/stores/adminDashboard.ts, src/stores/{main,organization}.ts
Genericizes table definitions, validates realtime preferences, and tightens dashboard, API-key, service, and auth-event types.

Backend typing and request flows

Layer / File(s) Summary
Backend shared contracts and utilities
supabase/functions/_backend/utils/*, supabase/functions/_backend/plugin_runtime/utils/*, supabase/functions/_backend/private/{admin_credits,credits,invite_existing_user_to_org}.ts
Replaces broad payload, context, error, notification, analytics, and webhook types with unknown-based contracts and adds webhook event narrowing.
Backend API and webhook validation
supabase/functions/_backend/private/role_bindings.ts, supabase/functions/_backend/public/apikey/*, supabase/functions/_backend/public/webhooks/*
Normalizes status/code inspection, narrows handler inputs and contexts, and reuses the webhook event type guard and API-key chain helpers.
Backend request and database data contracts
supabase/functions/_backend/public/app/*, supabase/functions/_backend/public/build/request.ts, supabase/functions/_backend/public/organization/**
Uses generated application-row and JSON types, while changing raw request body parameters to unknown without altering schema validation flows.

Estimated code review effort: 3 (Moderate) | ~30 minutes

Suggested labels: codex

Suggested reviewers: wcaleniewolny, dalanir

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the main change: tightening shared type usage around any/unknown and shared helpers.
Description check ✅ Passed The description covers summary and test plan well, but it omits the template's explicit Screenshots and Checklist sections.

Comment @coderabbitai help to get the list of available commands.

@codspeed-hq

codspeed-hq Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 43 untouched benchmarks
⏩ 2 skipped benchmarks1


Comparing cursor/tighten-any-unknown-types-1760 (3ec566a) with main (507494d)2

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (9b4803d) during the generation of this report, so 507494d was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Keep only the helpers currently used so knip deadcode checks pass.

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:06 Inactive
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:10 Inactive
@cursor
cursor Bot marked this pull request as ready for review July 27, 2026 05:15
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_897e9951-bfa3-4e0a-949b-8b0af94ae2e5)

@cursor
cursor Bot requested review from Dalanir and WcaleNieWolny July 27, 2026 05:16

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped: usage limit), and this 54-file typing refactor across backend public APIs/webhooks/RBAC and frontend stores exceeds the low-risk auto-approve threshold. Reviewers were assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver External

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Assigned a reviewer for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

@coderabbitai coderabbitai Bot added the codex label Jul 27, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/comp_def.ts`:
- Around line 51-56: Update the generic default on the Tab interface to TableRow
instead of unknown, preserving the existing onClick callback behavior for
unparameterized Tab usages while leaving explicitly parameterized Tab types
unchanged.

In `@src/services/supabase.ts`:
- Around line 690-691: Update the native package metadata handling in the
version-fetching flow so missing or null remoteNativePackages.version or
native_packages remains a failure instead of defaulting to an empty array.
Validate that native_packages is an actual array, reject or propagate the
missing-metadata error through the existing failure path, and call
convertNativePackages only with validated array data.

In `@src/stores/adminDashboard.ts`:
- Around line 161-170: Update fetchStats<T> to default to unknown instead of
any, and stop treating cached or fetched unvalidated data as arbitrary T. Add
metric-specific response types with runtime validation before caching and
returning stats, preserving the existing cache behavior while requiring callers
to narrow unknown results when no specific type is supplied.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4dfad5b1-5e31-40c0-b5ad-7716e07971f7

📥 Commits

Reviewing files that changed from the base of the PR and between dd965dd and 52c730c.

📒 Files selected for processing (54)
  • src/components/comp_def.ts
  • src/components/dashboard/AppAccess.vue
  • src/components/permissions/ChannelAccessPanel.vue
  • src/components/tables/AccessTable.vue
  • src/composables/useRealtimeCLIFeed.ts
  • src/pages/settings/organization/Members.vue
  • src/services/apikeys.ts
  • src/services/logAs.ts
  • src/services/staleAssetErrors.ts
  • src/services/supabase.ts
  • src/stores/adminDashboard.ts
  • src/stores/main.ts
  • src/stores/organization.ts
  • src/stores/webhooks.ts
  • src/utils/errors.ts
  • supabase/functions/_backend/plugin_runtime/utils/bento.ts
  • supabase/functions/_backend/plugin_runtime/utils/hono.ts
  • supabase/functions/_backend/plugin_runtime/utils/org_email_notifications.ts
  • supabase/functions/_backend/plugin_runtime/utils/plugin_notification_queue.ts
  • supabase/functions/_backend/plugin_runtime/utils/posthog.ts
  • supabase/functions/_backend/plugin_runtime/utils/queryHelpers.ts
  • supabase/functions/_backend/private/admin_credits.ts
  • supabase/functions/_backend/private/credits.ts
  • supabase/functions/_backend/private/invite_existing_user_to_org.ts
  • supabase/functions/_backend/private/role_bindings.ts
  • supabase/functions/_backend/public/apikey/post.ts
  • supabase/functions/_backend/public/apikey/put.ts
  • supabase/functions/_backend/public/app/post.ts
  • supabase/functions/_backend/public/app/put.ts
  • supabase/functions/_backend/public/build/request.ts
  • supabase/functions/_backend/public/organization/audit.ts
  • supabase/functions/_backend/public/organization/get.ts
  • supabase/functions/_backend/public/organization/members/delete.ts
  • supabase/functions/_backend/public/organization/members/get.ts
  • supabase/functions/_backend/public/organization/members/post.ts
  • supabase/functions/_backend/public/organization/post.ts
  • supabase/functions/_backend/public/organization/put.ts
  • supabase/functions/_backend/public/webhooks/delete.ts
  • supabase/functions/_backend/public/webhooks/deliveries.ts
  • supabase/functions/_backend/public/webhooks/get.ts
  • supabase/functions/_backend/public/webhooks/index.ts
  • supabase/functions/_backend/public/webhooks/post.ts
  • supabase/functions/_backend/public/webhooks/put.ts
  • supabase/functions/_backend/public/webhooks/test.ts
  • supabase/functions/_backend/utils/bento.ts
  • supabase/functions/_backend/utils/cron_email_stats.ts
  • supabase/functions/_backend/utils/errors.ts
  • supabase/functions/_backend/utils/hono.ts
  • supabase/functions/_backend/utils/org_email_notifications.ts
  • supabase/functions/_backend/utils/platform_admin_access.ts
  • supabase/functions/_backend/utils/plugin_notification_queue.ts
  • supabase/functions/_backend/utils/posthog.ts
  • supabase/functions/_backend/utils/queryHelpers.ts
  • supabase/functions/_backend/utils/webhook.ts
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • Cap-go/capacitor-updater (manual)

Comment thread src/components/comp_def.ts Outdated
Comment thread src/services/supabase.ts Outdated
Comment thread src/stores/adminDashboard.ts Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 54 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

Default Tab to TableRow for unparameterized callbacks, restore missing
native_packages failure path, and keep admin fetchStats polymorphic without
an unchecked generic default.

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:24 Inactive
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_0cc432ca-4bcc-4e21-bceb-952c5fa8af5c)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped: usage limit), and this broad typing refactor across public APIs, webhooks, and RBAC exceeds the low-risk auto-approve threshold. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver External

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/services/supabase.ts`:
- Around line 690-694: Update the native package parsing flow before
convertNativePackages to require nativePackages to be an array, and validate
each item has the expected name and version fields before conversion. Keep the
existing parsing error for invalid metadata and only call convertNativePackages
with validated package entries.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 031c27c9-0497-43f7-8854-9a3dc1637c86

📥 Commits

Reviewing files that changed from the base of the PR and between 52c730c and 1d5cd1f.

📒 Files selected for processing (3)
  • src/components/comp_def.ts
  • src/services/supabase.ts
  • src/stores/adminDashboard.ts
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • Cap-go/capacitor-updater (manual)

Comment thread src/services/supabase.ts Outdated
Reject non-array remote metadata instead of only checking truthiness.

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:30 Inactive
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_35a5aefe-ea40-47a0-9e63-39cdb061f1fb)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped: usage limit), and this broad typing refactor across public APIs, webhooks, and RBAC exceeds the low-risk auto-approve threshold. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver External

Replace recursive Merge/Concrete/ArrayElement helpers with simple
indexed Supabase Returns[number] aliases and delete services/types.ts.

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:38 Inactive
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_9340cf0b-cb1b-4c09-bc5a-fd9226e4cfff)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped: usage limit), and this broad typing refactor across public APIs, webhooks, and RBAC exceeds the low-risk auto-approve threshold. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver External

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:44 Inactive
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_08a06f8f-27f8-46dc-a4ab-28bcf36e08e2)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped: usage limit), and this broad typing refactor across public APIs, webhooks, and RBAC exceeds the low-risk auto-approve threshold. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver External

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:50 Inactive
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_5b2f5441-bf97-483c-a19d-e984cdc8e350)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped: usage limit), and this broad typing refactor across public APIs, webhooks, and RBAC exceeds the low-risk auto-approve threshold. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver External

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 05:56 Inactive
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_ba7f6d5a-b36e-4a5f-ae3c-e5b6db790193)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped: usage limit), and this broad typing refactor across public APIs, webhooks, and RBAC exceeds the low-risk auto-approve threshold. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver External

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@cursor
cursor Bot temporarily deployed to deepsec-pr July 27, 2026 06:04 Inactive
@cursor

cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_c99b72eb-34d2-4573-8409-5f906a9c26fd)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Left a non-blocking comment — Cursor Bugbot did not complete successfully (skipped due to usage limit), so this cannot be auto-approved. Reviewers are already assigned for human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Approver

@sonarqubecloud

Copy link
Copy Markdown

@riderx
riderx merged commit 2d45046 into main Jul 27, 2026
55 of 75 checks passed
@riderx
riderx deleted the cursor/tighten-any-unknown-types-1760 branch July 27, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants