The Agents are unable to merge imports in Python project

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The Agents are unable to merge imports in Python project

Steps to Reproduce

Implement any task which creates a new file and get used in existing file

Expected Behavior

It should be able add imports to existing file. Right now when I accept the changes, it does not actually gets added the file.

Operating System

MacOS

Version Information

Version: 2.3.41 (Universal)
VSCode Version: 1.105.1
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30
Date: 2026-01-16T19:14:00.150Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.2.0

For AI issues: which model did you use?

Opus 4.5

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @Saloni_Saraiya

Can you give 2.4 a try? It came out yesterday. If it hasn’t rolled out to you already, you can download it from https://cursor.com/downloads.

I’ve tried this out on 2.4.21, and I can’t reproduce this.

If you can still reproduce it, I’d like to know more about what you mean by this.

Do you get an error? Do the changes disappear? Any screenshots/recordings you can show that show this off would be a big help.