Cursor Agent had been worked for a long time, and I had talked with it multi turns. Until I got the error below, And I can’t resume it in this conversation.
Request ID: c651b3ea-a58d-415b-811f-f52ab3a9907b
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Tool call error”,“detail”:“Failed to read file.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [invalid_argument] Error
at tJc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4989:399337)
at Ewo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:36007)
at Ewo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:35749)
at Ewo._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:34514)
at Ewo._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:33336)
at GDt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:31429)
at _e._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at ggt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4974:12156)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7497:18439)
Steps to Reproduce
Talked with Cursor agent multi turns.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
This looks related to a known issue with the read_file tool that’s under investigation. It affects Custom Modes and seems to impact the standard Agent as well.
To help us understand your case, please share:
Does starting a new chat temporarily fix it?
What was the file type/size being read when the error occurred?
Does it happen consistently in long conversations, or was it a one-time event?
As a temporary workaround, starting a fresh chat should let you continue.
I’ll pass this to the team along with your Request ID. If you notice any patterns that help reproduce it, please let me know.
Thanks for the additional information. The code rollback you’re seeing is a critical issue. It means the chat is reverting your saved changes, which is data loss and goes beyond the read_file error.
This confirms the engineering team needs to prioritize this. I’m escalating both issues (read_file error + code rollback) to the team with your details.
In the meantime:
Avoid reopening the failed conversation to prevent further rollbacks
Use version control git to protect your work
Start fresh chats for new work
The team is already investigating the read_file tool issue. I’ll make sure they’re aware of the code rollback behavior you discovered.
Same behaviour here. Switching models doesn’t fix this. New chat window worked for me.
ERROR (Failed to read file):
Request ID: 30a04779-b832-4497-86ef-928dcd88b70b
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Tool call error”,“detail”:“Failed to read file.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [invalid_argument] Error
at Nqc.$endAiConnectTransportReportError (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7338:399337)
at cwo._doInvokeHandler (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:490:36007)
at cwo._invokeHandler (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:490:35749)
at cwo._receiveRequest (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:490:34514)
at cwo._receiveOneMessage (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:490:33336)
at JDt.value (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:490:31429)
at _e._deliver (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at hgt.fire (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7323:12156)
at MessagePort. (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9846:18403)**
I have had quite a few instances of Claude and GPT-5 using sed to read files. It isn’t often, but when it happens it seems unable to find the read_file tool (I asked GPT-5 to list its tools once and it was not listed).
Later in the same conversation it could read the code just fine while working (agent). It could be related to being in investigate mode.
I was using the tool and failed out of nowhere, dead chat, lost the conversation info.
Request ID: 4347adc0-c175-4c3f-b31e-8a7af38218dc
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Tool call error”,“detail”:“Failed to read file.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [invalid_argument] Error
at rJc.$endAiConnectTransportReportError (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4989:399337)
at Two._doInvokeHandler (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:36007)
at Two._invokeHandler (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:35749)
at Two._receiveRequest (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:34514)
at Two._receiveOneMessage (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:33336)
at zDt.value (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:31429)
at _e._deliver (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at mgt.fire (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4974:12156)
at MessagePort. (vscode-file://vscode-app/tmp/.mount_CursorEJR292/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7497:18439)
Request ID: 72c88bea-60e9-4011-b7ed-
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Tool call error”,“detail”:“Failed to read file.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [invalid_argument] Error
at Fqc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4984:399337)
at uwo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:36007)
at uwo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:35749)
at uwo._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:34514)
at uwo._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:33336)
at qDt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:31429)
at _e._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at hgt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4969:12156)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7492:18403)
Steps to Reproduce
previously cursor ai started to read multiple times a file
Expected Behavior
continue with the to-do. ( also i can’t “export” the to do into a new chat window)
For AI issues: add Request ID with privacy disabled
Request ID: 72c88bea-60e9-4011-b7ed-dd8bf8da68d9
{“error”:“ERROR_BAD_REQUEST”,“details”:{“title”:“Tool call error”,“detail”:“Failed to read file.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [invalid_argument] Error
at Fqc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4984:399337)
at uwo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:36007)
at uwo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:35749)
at uwo._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:34514)
at uwo._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:33336)
at qDt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:31429)
at _e._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at hgt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4969:12156)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7492:18403)
Anyone else having problems where after 4-5 messages the agent just crashes? I keep getting Failed to read file. This has been happening since the 2.0 release
Steps to Reproduce
Try to work with an agent
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
2.0.34 this must be 20 characters or longer blah blah