Can't edit the file that opens by default in Cursor when AI sidebar is visible

Upon launching Cursor, the previous workspace and the last opened file load as expected. However, the initially opened file is not editable, regardless of its type.

I’ve disabled all extensions, but the issue still occurs.

This doesn’t happen in standard VS Code. It seems to be specific to Cursor. That said, I tested this on the latest versions I have on Windows: VS Code 1.99.2 and Cursor 0.48.8 (which is based on VS Code 1.96.2), so I can’t say if the problem exists in VS Code 1.96.2.

To make the file editable, I need to either click somewhere else and then back into the file, or close and reopen the file.

Interestingly, if the AI sidebar is not open when Cursor starts, the problem doesn’t happen.

I think it occurs for some files/workspaces, but not all. To reproduce, create a folder “a” and file “a.txt” in it, and open the folder and the file with Cursor, open AI sidebar, close Cursor, reopen Cursor, and you’ll see the opened “a.txt” is not editable