The Cursor Agent goes to infinite loop when context is summarized

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I was trying to generate a text file where I asked to agent to give detailed answer to provided questions. The agent tried to generate a file, but the single file was too much big (more than 90K characters) that the chat context summarization takes place in between file generation. This summarization caused the IDE to stop generating file restarts to generate the answers again. This happened over multiple times but the file was not at all generated.

Steps to Reproduce

• Open the IDE
• Ask to generate a text file with detailed answer to various questions
• Hit enter

Expected Behavior

Generate a file with detailed answers

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.49 (user setup)
VSCode Version: 1.105.1
Commit: 21a2ed198584d56a91c0b996d1a09c93f8538440
Date: 2025-12-05T07:49:06.016Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

Auto

For AI issues: add Request ID with privacy disabled

5ee40e7f-d35e-4e44-a2fc-35b101f0fd2b

Additional Information

“Chat context summarized” interrupted the file generation.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. It looks like chat auto-summarization is interfering with a long generation and restarting the response.

We need a bit more data and a couple of checks:

  • Please share the exact prompt and how you started the file write (which agent mode/tool).
  • Try turning off Auto and selecting a fixed model, then enable Max Mode and retry. About models and context window: Models | Cursor Docs
  • Confirm whether it reproduces with a shorter request to verify that the trigger is the summarization. About summarization: Summarization | Cursor Docs
  • Attach additional Request IDs from the failed attempts
  • From Help > Toggle Developer Tools, copy errors from Console and from Output if present.

Once you send this, I’ll pass it to engineering and open a ticket. Thanks!

• My complete prompt was this

✅ ANDROID INTERVIEW QUICK-REVISION CHECKLIST

(For Senior Developer Round – Android Associate SDE)

1. Activity, Fragment & Lifecycle

Must Know



Explain the Activity lifecycle with real-world examples



Explain the Fragment lifecycle and how it differs from Activity



When is onPause() called?



What happens on configuration change?



How to retain ViewModel across config changes?



Fragment → Activity communication patterns



2. UI, Layouts, RecyclerView & Custom Views

UI/Layouts



Difference between ConstraintLayout, LinearLayout, RelativeLayout



Why is ConstraintLayout preferred?



What is overdraw? How to detect and reduce it?



RecyclerView



How RecyclerView works internally



Purpose of ViewHolder



DiffUtil — why and when to use it



Multiple view types



Custom Views



When to create one



Lifecycle of a View: onMeasure, onLayout, onDraw



How to draw custom shapes



3. Kotlin + Coroutines + Flow

Kotlin basics



Data classes, sealed classes, extension functions



Inline functions, higher-order functions



Null safety & safe calls (?., !!, ?:)



Coroutines



launch, async, withContext, CoroutineScope



Main, IO, Default Dispatchers



Structured concurrency



Exception handling in coroutines



Flow



Flow vs LiveData



StateFlow vs SharedFlow



Cold vs Hot streams



4. Architecture Patterns

MVVM



Responsibilities of ViewModel vs Repository



How to store UI state (StateFlow)



ViewModel + Hilt example flow



Why ViewModel shouldn't hold context



Clean Architecture basics



Domain, Data, UI layers



Use cases



Dependency Injection (Hilt / Dagger)



@Module, @Provides, @Binds



@Singleton, @Inject, @Named



Hilt component hierarchy (Singleton, Activity, Fragment, ViewModel)



5. Networking



Retrofit — how it works



OkHttp interceptors (logging, header, token refresh)



Handling API errors (HTTP vs parsing errors)



Synchronous vs asynchronous calls



Glide / Coil



How caching works



When to clear image cache



6. Storage & Data Handling

Room



DAO, Entity, Database



Migrations



Difference between suspend DAO vs Flow DAO



SharedPreferences vs DataStore



Why DataStore is preferred



7. Background Work

WorkManager



Unique work, periodic work



Constraints (Wi-Fi, charging, idle)



Services



Foreground service vs background service



Binding to a service



BroadcastReceiver



Implicit & explicit broadcasts



Runtime vs manifest registered



8. Android Internals



Activity launch modes (standard, singleTop, singleTask, singleInstance)



Tasks & back stack



Intent flags (FLAG_ACTIVITY_CLEAR_TOP, etc.)



ANR — causes & prevention



9. Testing



Unit testing ViewModel (using Mockito/Kotest/MockK)



UI tests (Espresso basics)



Why we use Fake/Mock repositories



10. Performance, Optimization, and Best Practices



Memory leaks (and LeakCanary)



Avoiding context leaks



Large bitmap handling



Proper architecture separation



Lazy loading & pagination



Clean API design



11. Common Practical Questions

Be able to verbally explain how you'd implement these:



Pagination using RecyclerView + Retrofit



Offline-first architecture (Room + Network)



Image loading with authentication headers (Glide + OkHttp)



Custom View (like rating bar, dashes indicator)



Snackbar/Toast from ViewModel (Event wrappers, SharedFlow)



Debouncing search using Flow



12. Behavioral Questions (Specific for Android Devs)



Tell me about a tough bug you solved



Explain a feature you built end-to-end



How do you ensure code quality in a team?



Time you optimized performance



How you handle disagreements in code reviews



There are my interview prepartion question

Write a text file with answer to each one of them in detail use .txt file

——
I was using Auto mode (no particular agent

• I can try, but trying this would take time. I will definitely try it later.

• Yes, I tried this and it worked

• Request IDs are as follows
8a54bec2-93cf-47c4-8069-3551154c0226
5ee40e7f-d35e-4e44-a2fc-35b101f0fd2b

• I couldn’t find errors there as of now, I will share once I get the error again.

Thanks for the time and effort

Thanks for the detailed info. You’ve confirmed the bug - automatic summarization shouldn’t interrupt active generation.

I’ll pass this to the engineers with your request ID. As a temporary fix, use shorter prompts or split large files into parts.

If you see errors in Console (Help > Toggle Developer Tools), please share them.

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