# Context limitation suddenly limits length

**URL:** <https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237>\
**Category:** Feedback\
**Created:** [July 22, 2025, 5:14pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237 "2025-07-22T17:14:06Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 22, 2025, 5:14pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/1 "2025-07-22T17:14:06Z")

</div>

### Describe the Bug

I had been working with Cursor for the past 4 months, and I was able to pack a ton of code into each request. I often pay 300-400 dollars in costs, and that’s reasonable, I use it a LOT, almost every day.  
Of course, I don’t want to overpay or pay extreme costs, to get it working, but I don’t see why limiting the context so much should be the case.  
More on the problem: it says “This file has been condensed to fit in the context limit.”  
I don’t see how this suddenly should limit users workflows.

### Steps to Reproduce

Just try to add a combined context size of more than 150k tokens and see. It says “This file has been condensed to fit in the context limit.”

### Expected Behavior

I should be able to add a LOT of context, as much as I want, up to the models limits, or at least roughly halfway there.

### Screenshots / Screen Recordings

![Untitled.png](https://us1.discourse-cdn.com/cursor1/original/3X/e/2/e2eec4cabe3ad3f628b405d25bceb6a0baf3a904.png)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (user setup)  
VSCode Version: 1.99.3  
Commit: a8e95743c5268be73767c46944a71f4465d05c90  
Date: 2025-07-10T17:09:01.383Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Windows\_NT x64 10.0.22631

### Additional Information

I am considering switching to a competitor if this does not get better. I really like the workflow (obviously!) but this can be a dealbreaker for me unfortunately.

### Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [July 22, 2025, 5:29pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/2 "2025-07-22T17:29:22Z")

</div>

hi @g_j thank you for the detailed post.

The message shows that a file is larger than a models context limit.

What happens is that once a model gets over a certain amount of context it may start to hallucinate due to a lot of differing information contained within the context

- User request prompt
- Files attached
- Rules
- MCPs
- Tools available
- System prompt
- Tool calls and resulting information (code,…)

That info accumulates with each tool call & follow up requests that are separate API calls to AI provider but they are combined in the same chat. It also adds up as tokens used from each API and the cost to you.

Could you share which model you are using and if you use MAX mode?

You can find each model regular and max context size here in the documentation:

> **[Cursor – Models](https://docs.cursor.com/models)**
>
> Available models in Cursor

---

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 22, 2025, 5:49pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/3 "2025-07-22T17:49:40Z")

</div>

Hi,

Thanks for the response.  
I did not attach a lot of extra content, basically I only have a very short user prompt and the lengthy file. This used to work. My code file has been growing steadily, now at 6000 lines (250k characters). I am aware this is a lot, and should be refactored, and I may do it. Also, the **Agent** mode was not working well with this particular lengthy file, but the **Ask** mode was still perfect.  
Up to until about a week or so ago, I was able to attach not only this file, but several others, and the inference results were great, very useful. Now it is tangibly different, as these “compressed” files don’t seem to really reach the models decision making (overcompressed?).  
To clarify I dont have significant:

- Rules
- MCPs
- additional Tools
- extra System prompt
- no tools, so no tool call feedback loop either

I can not even send this file in the first message of a chat conversation, so the accumulation issue could be ruled out I think.  
This happens with every model that I’ve been testing with, but to name a few, my main ones are o3 (MAX) gemini-2.5-pro (MAX) (I pretty much always use MAX mode)

Maybe, if I downgrade to Cursor 1.0 it will solve the issue?

---

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 22, 2025, 5:53pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/4 "2025-07-22T17:53:44Z")

</div>

To clarify, and before everyone starts laughing at me, this 6000 line code file is one of the central files of my large project, and the project as a whole has 40k+ lines of code. The unfortunate situation is this 6000 line long file file has grown disproportionately (should be refactored), but the issue also arises if I try to add multiple shorter files to the context. The limit seems to be around 50-100k tokens very roughly.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [July 22, 2025, 5:58pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/5 "2025-07-22T17:58:10Z")

</div>

I can not guarantee that 1.0 will improve things as there were several feature additions and changes in AI calls from more recent launches. You can try it out of course but only latest version receives updates.

Gemini should be able to support 1M context size in MAX, though there were also some issues with Gemini reported in last days.

Its understandable that sometimes large files are used even if not ideal, no worries.

I will pass your report through to Cursor team for review.

---

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 22, 2025, 5:59pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/6 "2025-07-22T17:59:56Z")

</div>

Thank you very much for passing this message along. It has been very reassuring to receive attention on this matter, so thank you. Hopefully this issue can get resolved soon, and normal usage can resume 🙂 Have a great day!

---

<div class="post-metadata">

**Author:** ![Artemonim](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/artemonim/32/56113_2.png) [@Artemonim](https://forum.cursor.com/u/Artemonim)\
**Post date:** [July 22, 2025, 6:01pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/7 "2025-07-22T18:01:40Z")

</div>

You can use (with caution) my [Agent Docstrings](https://github.com/Artemonim/AgentDocstrings) on that file and copy only ToC to the prompt window. Agent will find the rest of the context on its own: through semantic search or just read it.

---

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 22, 2025, 6:07pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/8 "2025-07-22T18:07:55Z")

</div>

Thanks, looks interesting, will check it out. Sounds like a neat optimization trick.

---

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 22, 2025, 6:10pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/9 "2025-07-22T18:10:36Z")

</div>

I would probably use it to create roadmaps, or crossroads signs to the agents, so it has a general overview of the codebase, rather than to compress a single files context. I prefer having the full context on current files.

---

<div class="post-metadata">

**Author:** ![Artemonim](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/artemonim/32/56113_2.png) [@Artemonim](https://forum.cursor.com/u/Artemonim)\
**Post date:** [July 22, 2025, 6:12pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/10 "2025-07-22T18:12:27Z")

</div>

I’m planning to add an option that will generate a global ToC for the entire repo.

> <https://github.com/Artemonim/AgentDocstrings/issues/4>
>
> \### Pre-submission Checklist
> 
> \- \[x\] I have read the \[README.md\](../README.md)
> \- …\[x\] I am using the latest version of Agent Docstrings
> \- \[x\] I have searched for existing issues to see if this feature has been requested before
> \- \[x\] This feature request is not a bug report (use Bug Report template for bugs)
> 
> \### Feature Category
> 
> Other
> 
> \### Related Language/Component
> 
> \- \[\] Python parser
> \- \[\] Java parser
> \- \[\] Kotlin parser
> \- \[\] Go parser
> \- \[\] PowerShell parser
> \- \[\] Delphi parser
> \- \[\] C/C++ parser
> \- \[\] C# parser
> \- \[\] JavaScript/TypeScript parser
> \- \[x\] CLI interface
> \- \[\] Configuration system
> \- \[\] File discovery
> \- \[\] New language support
> \- \[x\] Core functionality
> 
> \### Feature Summary
> 
> Collect generated Agent Docstrings into a single atlas. An optional feature that is disabled by default.
> 
> \### Problem Statement
> 
> \- It is theoretically applicable for systems that do not know how to build their own repository index.
> \- Perhaps the LLM will provide some additional repo analysis by looking at such an atlas.
> 
> \### Proposed Solution
> 
> \_No response\_
> 
> \### Alternative Solutions
> 
> \_No response\_
> 
> \### Priority Level
> 
> 👀 Low - Minor convenience improvement
> 
> \### Implementation Complexity
> 
> \- \[x\] 🤔 Simple - Minor change or addition
> \- \[\] 😑 Moderate - Requires new parsing logic
> \- \[\] 🛠️ Complex - Major feature requiring significant development
> \- \[\] 😎 I don't know
> 
> \### Usage Examples
> 
> \_No response\_
> 
> \### Technical Details (Optional)
> 
> \_No response\_
> 
> \### Contribution
> 
> \- \[x\] I would like to implement this feature myself
> \- \[\] I can help with testing
> \- \[\] I can provide sample code files for testing
> 
> \### Additional Context
> 
> \_No response\_

But I need to seriously rework Agent Docstrings first, and I’m currently waiting for the chance to get to it.

If you’ve got any more ideas – I’d love to see them as new issues!

---

<div class="post-metadata">

**Author:** ![Artemonim](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/artemonim/32/56113_2.png) [@Artemonim](https://forum.cursor.com/u/Artemonim)\
**Post date:** [July 22, 2025, 6:14pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/11 "2025-07-22T18:14:38Z")

</div>

And don’t forget that Cursor indexes the repository by itself. However, it is not very clear what information the Agent gets from this Index.

---

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 23, 2025, 8:07am UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/12 "2025-07-23T08:07:45Z")

</div>

Hi again,

I have updates regarding the issue. We have checked with other team members of the same organization I’m in, and at least 1 more team member has the same issue. Additionally, both my computers suffer from this, so it’s not a local misconfiguration.

Hope this helps diagnosing the issue faster. I think it narrows down the possible issues which can be helpful.

---

<div class="post-metadata">

**Author:** ![guyisra](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/guyisra/32/45010_2.png) [@guyisra](https://forum.cursor.com/u/guyisra)\
**Post date:** [July 24, 2025, 7:11pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/13 "2025-07-24T19:11:11Z")

</div>

im having this as well. a 36k token file getting condensed on the strongest models. the result is horrible output. this didn’t happen yesterday on the same file. what is this ■■■■

---

<div class="post-metadata">

**Author:** ![g\_j](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@g\_j](https://forum.cursor.com/u/g_j)\
**Post date:** [July 25, 2025, 10:27am UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/14 "2025-07-25T10:27:59Z")

</div>

Hi,

It seems that the issue was resolved. Not sure how, somebody at the Cursor dev team might have fixed the configs, or pushed some update, but now it works great! Thanks again for the attention and the fix.

G.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [July 25, 2025, 5:09pm UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/15 "2025-07-25T17:09:36Z")

</div>

Thanks for the update!

---

<div class="post-metadata">

**Author:** ![guyisra](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/guyisra/32/45010_2.png) [@guyisra](https://forum.cursor.com/u/guyisra)\
**Post date:** [July 26, 2025, 4:41am UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/16 "2025-07-26T04:41:07Z")

</div>

@condor unfortunately it did not! (it might have been resolve temporarily yesterday for a few hours)  
Using claude sonnet/opus with MAX mode I’m getting the issue on a 36k token file (that again, used to work great a few days ago)  
If I switch to gemini or gpt-4.1 with 1M tokens it doesn’t show the error.

This is really unreliable, how can I depend on cursor if I can’t even use a fraction of what the model offer (36K on a 200K model)

---

<div class="post-metadata">

**Author:** ![Zackh1998](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/zackh1998/32/13484_2.png) [@Zackh1998](https://forum.cursor.com/u/Zackh1998)\
**Post date:** [July 26, 2025, 4:49am UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/17 "2025-07-26T04:49:57Z")

</div>

Hi! It’s showing an outline of the attached file to the model, and then the model will pull in parts of the file (or read the entire file if it thinks it needs all the context of the file).

The model can use the entire 200k context, its just limited what gets shown per user message so that the model has plenty of room to pull in context via tool calls (and for future user messages in the conversation) without filling up the full context window too quickly (which then forces a summarization).

---

<div class="post-metadata">

**Author:** ![guyisra](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/guyisra/32/45010_2.png) [@guyisra](https://forum.cursor.com/u/guyisra)\
**Post date:** [July 26, 2025, 5:27am UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/18 "2025-07-26T05:27:58Z")

</div>

@Zackh1998 thanks. This wasn’t the behavior a few days ago. My fear (that maybe solved in 1.3?) is its unknown (to me) what gets included in that outline. I have instructions, specs, status of each. I don’t know if what I need for the prompt to be successful is included or not. With this outlining, cursor is saying “trust me bro”. Would be better to udnerstand exactly what gets outlined, and the reasoning for it. If its for context optimization, I’d want the option to not do the summerization, especially if what I include in the context is well below the model’s context window limit (if something gets clipped, its a different story, but I’d like control there too)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [August 26, 2025, 7:19am UTC](https://forum.cursor.com/t/context-limitation-suddenly-limits-length/121237/20 "2025-08-26T07:19:43Z")

</div>

Closed on August 26, 2025, 7:19am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
