# Call stack exceeded on agent review

**URL:** <https://forum.cursor.com/t/call-stack-exceeded-on-agent-review/164699>\
**Category:** Bug Reports\
**Created:** [July 2, 2026, 8:56pm UTC](https://forum.cursor.com/t/call-stack-exceeded-on-agent-review/164699 "2026-07-02T20:56:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Dixon](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Scott\_Dixon](https://forum.cursor.com/u/Scott_Dixon)\
**Post date:** [July 2, 2026, 8:56pm UTC](https://forum.cursor.com/t/call-stack-exceeded-on-agent-review/164699/1 "2026-07-02T20:56:33Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Agent Review suddenly started throwing opaque error “Maximum call stack size exceeded”  
Looking at the cursor agent review output terminal I see:

Generated Agent Review context with 32 files and 0 rules, diff size: 178.6201171875kb  
Error computing local context: RangeError: Maximum call stack size exceeded

This works fine for another, larger diff I tried it with so the error is providing incomplete information about what conditions it is unable to review. This is very much a bug given that there’s no actionable error other then “Sorry user. You’re hosed. Have a nice day.”

### Steps to Reproduce

Start an Agent Review

### Expected Behavior

Either the review works or, if it fails, it tells me why it failed so I know what to do differently.

### Operating System

MacOS

### Version Information

Version: 3.9.16 (Universal)  
VS Code Extension API: 1.105.1  
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80  
Date: 2026-06-27T06:41:01.941Z  
Layout: editor  
Build Type: Stable  
Release Track: Default  
Electron: 40.10.3  
Chromium: 144.0.7559.236  
Node.js: 24.15.0  
V8: 14.4.258.32-electron.0  
xterm.js: 6.1.0-beta.256  
OS: Darwin arm64 25.5.0

### For AI issues: which model did you use?

Deep agent review (unknown/opaque)

### Additional Information

Tried with extensions disabled. No chage.  
Tried with quick review. No change.

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [July 3, 2026, 9:30am UTC](https://forum.cursor.com/t/call-stack-exceeded-on-agent-review/164699/7 "2026-07-03T09:30:26Z")

</div>

Hey Scott, thanks for the report.

This is a bug on our end. The “compute local context” step fails when your change set includes a single file with one very large block of changes (usually a generated, lock, or data file), and it trips per file rather than by total diff size, which is why a bigger diff worked for you. The unhelpful error is a separate issue we’re fixing too, it should name the file it couldn’t handle. I’m flagging both to our team.

To unblock now: if your pending changes include a big generated or data file, commit it on its own (or otherwise keep it out of the review) and re-run on the rest. That should let the review complete.

If you can confirm whether the failing diff includes a large generated or data file, that’ll help us pin down your exact case.
