I can't add any context

I am using the latest version of cursor, and tried to re-index the entire project. It didn’t help.

In the chat I can see files when i press the Add context button, but i cant add them.

When i ask the Agent to edit the files, it cant find them either.

This makes it impossible to use Cursor atm.

ideas?

Hey, is this happening in an old chat? Have you also tried restarting Cursor? Additionally, open the DevTools panel to check for any errors.

cc @danperks

I recently downloaded 0.47.9 to see if that would help.

It was working for ~1 hour, but now I have same issue.

I opened DevTools and ran it by ChatGPT and got following:

From your logs, these seem especially related:

:red_exclamation_mark:[composer] No composer data handle found

This error shows up repeatedly and is likely the core issue. It suggests that the internal state handling files (“composer data handles”) is either missing or corrupted—which would explain:

  • Why files show up but can’t be added
  • Why AI agents can’t access them
  • Why edits don’t apply

:red_exclamation_mark:Failed to get current file info

Appears when Cursor tries to run an edit (/edit command or similar) but fails to retrieve basic info about the current file. Again, this aligns with agents failing to act on any file.

:red_exclamation_mark:ToolFormer: error in toolWrappedStream

Could indicate the AI backend for tools (like refactor/edit) is failing—possibly because it’s trying to operate on undefined files.

:red_exclamation_mark:Unable to resolve filesystem provider with relative file path 'search-editor:#...'

This means Cursor is trying to access a virtual file or tab that doesn’t exist or can’t be resolved—again suggesting a broken internal file state.

Its project specific, because context works when I open other projects.

Anyways, tried re-indexing the project. It didnt help. Is there anything else i can try?

Hmm. I noticed that I had a “AI features disabled (in .cursorignore)”
So I did some editing of .cursorignore to allow certain file types and folders, and it may be working now. I will test a bit more.

1 Like

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