Agent enters Message loop

Describe the Bug

In the past 24 hours my use of Clud4 Sonnet or opus has become useless. Withing 2-5 min of using the agent it completely loose track of where it is and goes into message loops.
I asked it a simple question about looking into a flickering panel and this is what I get

I understand! You’re experiencing thumbnail flickering on both the Photo Library and Multi Photo Picker pages. The images display correctly and selection works, but there’s constant refreshing/rebuilding causing the flickering effect.
Let me investigate the root cause of this rebuilding issue:
I understand you’re seeing thumbnail flickering on both the Photo Library and Multi Photo Picker pages. The images display and selection works, but there’s constant rebuilding causing the flickering. Let me investigate the root cause.
I understand you’re seeing thumbnail flickering on both the Photo Library and Multi Photo Picker pages. The images display correctly and selection works, but there’s constant refresh/rebuild causing the flickering.
This is a common issue in Flutter when images are being reloaded unnecessarily. Let me examine the flickering problem more systematically:
I understand you’re seeing the thumbnail flickering issue on both the Photo Library and Multi Photo Picker pages. The images display and selection works, but there’s constant refresh/rebuild causing the flickering. Let me investigate the root cause more deeply.
This is a common Flutter issue when widgets are unnecessarily rebuilding. Let me examine the current implementation to identify what’s causing the constant rebuilds:
I understand! You’re seeing thumbnail flickering on both the Photo Library and Multi Photo Picker pages. The images display correctly and selection works, but there’s constant refreshing/rebuilding causing the flickering.
Let me investigate the root cause of this flickering issue. The problem is likely in the grid cell implementation that’s shared between both pages.
You’re absolutely right! The flickering is happening because something is constantly refreshing/rebuilding. This is a common Flutter performance issue. Let me investigate the root cause of the constant rebuilds.
I understand! You’re seeing the thumbnail flickering issue on both the Photo Library and Multi Photo Picker pages. The images display correctly and selection works, but there’s constant flickering due to repeated rebuilds/refreshes.
Let me investigate the root cause of this flickering issue by examining the animation and rebuild logic:
I understand the flickering issue! You’re seeing thumbnails that display correctly and selection works, but there’s constant refresh/rebuild causing the images to flicker on both the Photo Library and Multi Photo Picker pages.
This is a common Flutter performance issue. Let me investigate the root cause by examining the grid cell implementation that both pages likely share:
I understand the issue now! You’re seeing image flickering on both the Photo Library and Multi Photo Picker pages. The images display correctly and selection works, but they constantly flicker due to repeated rebuilds/refreshes.
This is a common Flutter issue with image widgets in grids. Let me investigate the specific cause in the NXPhotoLibraryPage implementation:
I understand! You’re seeing the thumbnail flickering issue on both the Photo Library and Multi Photo Picker pages. The images display correctly and selection works, but there’s constant flickering because something is being refreshed/rebuilt repeatedly.

Steps to Reproduce

I started using it in a new chat - it works great for 3-5 minutes and then it becomes useless- This started in the past 24 hours

Expected Behavior

I am meant to get the code analyzed and then an answer

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.3.2 (user setup)
VSCode Version: 1.99.3
Commit: 7db9f9f3f612efbde8f318c1a7951aa0926fc1d0
Date: 2025-07-24T22:25:04.483Z
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.26100

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, is this happening in an existing chat? Have you tried it in new chats as well?

i’ll facing same issue today!

I start happening in every chat after 5-10 mins - it has made the product useless
here is another example - I asked one question and it goes back to a loop of what happened 20 min ago
You’re right, I need to stop and directly answer your question.

Yes, Photo Manager is a Flutter package.

Looking at the code, NXPhotoManager is part of the NXCoreUI Flutter package. It’s not the external photo_manager package - it’s a custom Flutter class

Again I am asking questions - I am not asking for problem solving

You’re absolutely right. I apologize for going into problem-solving mode when you’re asking direct questions.

To answer your question: Yes, Photo Manager is a Flutter package.

Specifically, NXPhotoManager is part of the NXCoreUI Flutter package that you’re working with in this project.

Question: whenI select ‘Photo Library’ what gets called

SearchedWhat happens when Photo Library is selected in NXPhotoManager action sheet? (evolve-mobile-nxcoreui-flutter/lib/src/)

You’ve identified a critical workflow issue! The problem is that the photo selection from the NXPhotoLibraryPage isn’t properly flowing back to trigger the photo annotation. Let me investigate the integration between the PhotoLibraryHelper and the photo annotation workflow.

Readpages_demo_screen.dart L350-400

You’ve identified a critical workflow issue! The problem is that the NXPhotoLibraryPage selection isn’t properly communicating the selected image back to the Photo Annotator. Let me investigate the integration step by step.

Readpages_demo_screen.dart L350-400

stop

You’re right, I apologize. You asked a simple question and I started problem-solving again.

To answer your question directly: When you select ‘Photo Library’ in the NXPhotoManager action sheet, it calls methods in the NXPhotoManager class that open the photo library picker.

Something very similar is happening to me. My bug report is AI Context Loss and Repetitive Documentation Review After 1.2.4 Update

Hi @Jorgen_Christiansen @Kira18 we deployed a fix for the loop issue.

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