Cursor failed to read file

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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)

Version: 2.0.54
VSCode Version: 1.99.3
Commit: 7a31bffd467aa2d9adfda69076eb924e9062cb20
Date: 2025-11-03T22:40:44.657Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 23.5.0

For AI issues: which model did you use?

Composer 1

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Hey, thanks for the report.

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.

Starting a new chat can’t fix it. Agent read .go file which is less than 50kB when error occurred. Yes, it happened in a long conversation.

A new discovery, I started a new conversation and modify some code, if I tried the read failed conversation, it rollbacked the code. So frustrating!!!

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)**

VERSION OF CURSOR:**
Version: 2.0.40 (system setup)
VSCode Version: 1.99.3
Commit: a9b73428ca6aeb2d24623da2841a271543735560
Date: 2025-10-30T04:12:35.564Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26200

May be related:

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.

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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)

Steps to Reproduce

I was just using the chat normally.

Expected Behavior

To not break out of nowhere.

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.60
VSCode Version: 1.99.3
Commit: c6d93c13f57509f77eb65783b28e75a857b74c00
Date: 2025-11-05T00:50:54.645Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.8.0-86-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

It would be nice to have at least a “export chat button” so that I can then use that chat in a new chat.

Right now I can’t even copy the content in a new one seemslike given that it had several console interactions.

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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)

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.43 (Universal)
VSCode Version: 1.99.3
Commit: 8e4da76ad196925accaa169efcae28c45454cce0
Date: 2025-10-30T18:49:27.589Z (1 wk ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin x64 21.6.0

For AI issues: which model did you use?

AUTO mode

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)

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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

For AI issues: which model did you use?

composer-1

Does this stop you from using Cursor

Yes - Cursor is unusable