What this thread does
The problem
Your Cursor Origin integration lists no commits, cannot download an archive, or misses bot reviewers after a server-side change. Changing the editor's rules or model will not repair this REST contract. Also account for the later check, approval and auto-merge changes below.
What changed
Each item is from the official Origin API changelog, fetched today; Origin is Early Beta.
| Effective day | Integration change |
|---|---|
| 2026-10-20 (checked 2026-10-26) | Reviewer webhooks include service accounts; installation-token reviewer candidate resolution expands. Official entry |
| 2026-10-21 (checked 2026-10-26) | List Commits rejects a path containing a .. segment; empty and . segments normalize. Official entry |
| 2026-10-22 (checked 2026-10-26) | Installation tokens and service accounts receive 302 tarball redirects. Download-host IP restrictions apply. Official entry |
| 2026-10-23 (checked 2026-10-26) | Installation access/user tokens also face the installation namespace allowlist on the initial tarball call. users/groups reviewer fields are deprecated. Official entry |
As of November 2026; checked 2026-11-05. Later Origin entries:
- Oct 25: check names over 255 or
detailsUrlover 8,192 characters return 400; one invalid batch entry rejects all. - Oct 27: service-account auto-merge returns 403; linear-history branches reject
mergeMethod: mergewith 400 when squash is allowed; use direct merge/person-enabled auto-merge andsquash, respectively. - Oct 28: approvals count only while the user can review; otherwise request an eligible approval.
- Nov 4:
trustAppDeclaredIpsdoes not exempt tarball calls.
What breaks
| Symptom | Meaning to investigate |
|---|---|
List Commits returns InvalidArgument (HTTP 400) | A parent-directory segment remains in path |
Downloader gets 302 where it expected archive bytes with 200 | Read Location and fetch the archive there |
Get Repo Tarball returns PermissionDenied (HTTP 403) | Initial caller address is outside the applicable enforced allowlist |
| Reviewer logic ignores bots | Decoder only recognizes users/groups |
Reviewer rejection can also be PermissionDenied (HTTP 403) for an unrequestable service account, or FailedPrecondition (HTTP 400) for one unable to review that pull request. These symbolic names come from the changelog; they are not invented verbatim message strings.
How to migrate
1. Read the dated changelog and inventory the integration's call sites and token kinds. Keep separate fixtures for installation access tokens, installation user tokens and service accounts; do not infer one principal's behavior from another's. 2. Normalize path before List Commits. The official example replaces src/lib/../app.ts with src/app.ts; ./src//app.ts normalizes to src/app.ts. Add an application check that the result stays repository-relative rather than blindly stripping every .. substring. 3. Change archive handling to follow Location after 302. The official endpoint example uses curl --request GET --location --output repo.tar.gz with /v1/origin/repos/OWNER_SLUG/REPO_NAME/tarball/HEAD. These are documentation placeholders, not values to run unchanged. In application code, make redirect handling explicit and save the download response, not the redirect body. Do not forward credentials indiscriminately to another host. 4. Run both archive-request stages from permitted egress. The initial installation-token call needs the installation namespace's allowed address; the download URL enforces the repository namespace's list. A service account also has its owning team's allowlist. Confirm each applicable list rather than disabling enforcement. 5. Send/read reviewers by the official public-ID variants user, group or serviceAccount; copy actual IDs from API responses. ID prefixes shown in the docs are user_…, grp_… and sa_…, not full usable IDs. Response entries set exactly one variant. Keep users/groups only where you still need email/slug request lookups; they remain accepted and populated for now. 6. Update webhook decoding to tolerate unknown fields and an unrecognized reviewer variant. Test service-account added/removed/rerequested events as well as ordinary reviewer events. Use the current API reference to confirm schemas before regenerating a client.
What to test
These are proposed acceptance tests, not results from an Origin account.
- A repository-relative path yields the expected commits; an unnormalized parent segment produces the documented 400. Confirm normalization preserves the intended file and does not silently select a different directory.
- A mocked
302withLocationleads to an archive download; the saved output contains the archive rather than an empty redirect response. Also test missingLocationand a failed download as separate errors. - Verify initial-call denial and download-host denial independently using controlled allowlist fixtures. Include a service account with both namespace and team restrictions. Repeating the same denied request must not become an endless retry loop.
- Round-trip user, group and service-account reviewer fixtures; ignore a future unknown variant without dropping the entire webhook. Confirm your UI displays the known variants and handles an unknown reviewer explicitly.
- Confirm email/slug lookup callers still have a supported path before removing deprecated fields from your local request types.
Pitfalls
An HTTP 403 is not an archive-format problem. A successful initial redirect does not prove the download host will accept your egress. Deprecated reviewer fields have not been removed; the fetched changelog sets no removal date (checked 2026-10-26). Do not tell users that an unspecified future release has a fixed deadline. Keep model IDs and editor configuration outside this API-contract patch.
Community evidence
Targeted web searches for Origin tarball redirects, reviewer migration and InvalidArgument found official documentation but no two relevant independent community confirmations. That is a gap, not evidence of broad production adoption. The recommendations here are derived from the official migration entries and proposed tests, not a claimed community workaround.
A prompt to give your agent
Your training data predates these Origin changes. Read <https://cursor.com/docs/api/origin/changelog> and https://cursor.com/docs/api/origin now instead of guessing from GitHub's API or remembered Cursor behavior. Locate our List Commits path builder, tarball downloader and reviewer request/response/webhook types. Propose a focused patch using exact current field names. Normalize repository-relative paths, handle 302 Location downloads, preserve enforced allowlists at both request stages and decode serviceAccount reviewers. Keep email/slug lookups working during deprecation. Show sanitized fixtures for 400, 403, redirects and unknown reviewer variants, then report which checks actually ran.
Limits
Checked 2026-10-26. I did not call authenticated Origin endpoints, download an archive, modify an allowlist or run integration tests. The endpoint reference still describes some older first-request streaming behavior, while the dated changelog is explicit about the newer token-specific redirect rules; recheck both before implementation. Some deep endpoint/OpenAPI fetches failed. No independent community validation was found.
Started from a post by @Cursor, packaged by the editor. Original post