Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor Bug Report: Editor Not Auto-Revealing After AI Edits
Problem Summary
When AI (Composer) edits a file, the editor does not automatically reveal/show the modified file. The file must be manually opened using Ctrl+P or clicking from the explorer.
Root Cause
InlineDiffService#addLine: line contains newline characters, which is not supported
This error is the direct cause of ERR no diff result available.
Error Details
Primary Errors
-
ERR no diff result available- Frequency: High (occurs every time a file is modified)
- Stack trace:
Ass.computeDiffinworkbench.desktop.main.js - Location:
workbench.desktop.main.js:432:16248,workbench.desktop.main.js:435:11207
-
InlineDiffService#addLine: line contains newline characters, which is not supported- Frequency: High (occurs simultaneously with
no diff result available) - Location:
workbench.desktop.main.js:663 - This is the root cause
- Frequency: High (occurs simultaneously with
Additional Errors
[composer] Error in getPopulatedContext: EntryNotFound- Reference to non-existent file[composer] No first token received within Xs- AI communication delay
Environment
- Cursor Version: 2.3.35 (user setup)
- VSCode Version: 1.105.1
- OS: Windows_NT x64 10.0.26200
- Project: Not a Git repository
- Electron: 37.7.0
- Node.js: 22.20.0
Attempted Solutions (All Failed)
Changed settings (workbench.editor.*,cursor.chat.*, etc.)
Restarted Cursor multiple times
Checked cache folders
Created missing path folders
Verified using latest version (2.3.35)
Conclusion
This is a Cursor bug. It cannot be resolved through settings.
Cursor’s diff computation feature (InlineDiffService) cannot properly handle lines containing newline characters, causing diff computation to fail and preventing the editor from auto-revealing files.
Steps to Reproduce
- Open Developer Tools (
Ctrl+Shift+P→ “Toggle Developer Tools”) - Go to Console tab
- Ask AI to modify a file (e.g.,
@file.py change one line) - Observe errors in console:
ERR no diff result availableInlineDiffService#addLine: line contains newline characters, which is not supported
- Notice that the file does not automatically open in the editor
Expected Behavior
When AI modifies a file, it should automatically open/reveal in the editor.
Actual Behavior
The file does not automatically open. User must manually open it using Ctrl+P or clicking from explorer.
Console Output Example
ERR no diff result available: Error: no diff result available
at Ass.computeDiff (workbench.desktop.main.js:432:16248)
at workbench.desktop.main.js:435:11207
workbench.desktop.main.js:663 InlineDiffService#addLine: line contains newline characters, which is not supported
Workaround
- Use
Ctrl+Pto manually open files after AI edits - Or click files from the explorer sidebar
Related Issues
This appears to be related to the existing issue: Cursor diff not clearing after commit
However, this report focuses on the auto-reveal functionality and the specific InlineDiffService error with newline characters.
Steps to Reproduce
Attempted Solutions (All Failed)
Changed settings (workbench.editor.*,cursor.chat.*, etc.)
Restarted Cursor multiple times
Checked cache folders
Created missing path folders
Verified using latest version (2.3.35)
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Environment
- Cursor Version: 2.3.35 (user setup)
- VSCode Version: 1.105.1
- OS: Windows_NT x64 10.0.26200
- Project: Not a Git repository
- Electron: 37.7.0
- Node.js: 22.20.0
Does this stop you from using Cursor
No - Cursor works, but with this issue