Why does the ui lose focus on the chat window mid-sentence?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When typing into the chat window, whenever the AI model’s response completes, my IDE loses focus on the chat window and refocuses on whatever code window I am using, overwriting whatever is at the last cursor location there. This can delete entire sections of code, causing me to have to carefully Ctrl+Z back to the good state before I unknowingly typed over whatever was at my cursor in the editor window when it stole focus from the AI chat window. This seems to have been happening for at least the past 4 months across all versions I’ve used.

Steps to Reproduce

Type in the chat window while the ai model is responding and you will lose focus once the response completes.

Expected Behavior

Whatever window I clicked on should retain focus until i either submit my query using enter, or manually click to another window to focus away.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

ersion: 1.5.11 (Universal)
VSCode Version: 1.99.3
Commit: 2f2737de9aa376933d975ae30290447c910fdf40
Date: 2025-09-05T03:48:32.332Z (2 wks ago)
Electron: 34.5.8

This affects every version I’ve used over the last 4 months, shockingly.

For AI issues: which model did you use?

All models.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, this should already be fixed. Please update to v1.6.35 and let me know if the issue persists.

Thanks - it is mostly resolved, but I just posted a new, likely related issue of the caret moving to the end of line when the agent returns from a prompt.

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