Agent finishes code halfway without applying changes

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The agent finishes when the first change over a file is done. The thought process continues saying to change another file but then it returns and finishes the agent workflow of changes over the code source.

Steps to Reproduce

Run any agent. It happened to me with Grok Code, but also with others like Claude Opus 4.5 or Gemini 3 Pro

Expected Behavior

To finish when the agent finishes the work.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.36 (user setup)
VSCode Version: 1.105.1
Commit: 9cd7c8b6cebcbccc1242df211dee45a4b6fe15e0
Date: 2025-11-26T03:43:48.079Z
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?

Grok Code, Claude Opus 4.5, Gemini 3 Pro

For AI issues: add Request ID with privacy disabled

cd76a5cf-9093-4137-ae18-4a1c7d0b2612

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This behavior where the Agent stops after the first file change despite planning to modify more files isn’t expected. Since you’re seeing this across multiple models (Grok Code, Claude Opus 4.5, Gemini 3 Pro), it suggests a potential issue with the Agent execution flow rather than a model-specific problem.

To help investigate, could you please share:

  • Screenshots showing the Agent’s thought process where it mentions changing additional files, followed by it stopping/finishing early
  • Any console errors: Help > Toggle Developer Tools > Console tab
  • Does this happen on every Agent request or only certain types of tasks?
  • Does this occur in other projects and new chats?

In the meantime, you could try:

  • Breaking down larger tasks into smaller, single-file modifications to see if that helps
  • Running network diagnostics: Cursor Settings > Network > Run Diagnostics