Skip to content

Fix Copilot company pagination - #1389

Draft
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/por-21082-cursor-automated-triage-response-cb25
Draft

Fix Copilot company pagination#1389
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/por-21082-cursor-automated-triage-response-cb25

Conversation

@cursor

@cursor cursor Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Added batched pagination for CopilotAPI#getCompanies when callers request more companies than a single Copilot page supports.
  • Added focused Jest coverage for direct single-page calls and multi-page company aggregation.

Testing Criteria

  • yarn test src/utils/CopilotAPI.test.ts --runInBand passes and verifies a 6,000-company request is split into 5,000 + 1,000 page calls.
  • yarn lint:check passes with existing React hook/compiler warnings.
  • yarn tsc was run; it still fails only on the repo's existing SVG module declaration errors in src/icons/index.ts.

Notes

  • Linear/Sentry direct reads were unavailable in this automation run (Linear returned 401; Sentry MCP requires auth), so the root cause was inferred from the triage trigger title and the matching Tasks CopilotAPI#_getCompanies call path.

Impact & Surface Area of Change

  • Affects Tasks app call sites that request large company lists through CopilotAPI#getCompanies, including user/assignee loading and task association validation. Single-page company requests keep the previous direct SDK call behavior.
Open in Web View Automation 

cursoragent and others added 4 commits July 12, 2026 17:32
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

POR-21082

@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 5:35pm

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