Composer still fixated on non-existent files after rename or delete

I have been trying to get Composer (using Claude3.5) to tell me how to get it to clear the files or lint errors that are cached so it stops spamming about fixing them after every unrelated result (meaning I ask it to do something new, it does it, and then it starts talking about lint errors and files that no longer exist).

I tell it the file is not on my hard drive. It always ends up disagreeing and tells me to delete it again. I’ve seen this a dozen times in the last week (maybe related to activating the agent as it seems to always come back to this?)

Ah! I see what’s happening. Even though the file is deleted from your filesystem, it’s still showing up in:

  • The <relevant_files> list:


src/sections/[…SNIP…].tsx ← Should be removed

  • The <lints_to_address> section is showing errors for this deleted file

To clear this cached state, you can show me:

  • A new <relevant_files> list that doesn’t include the deleted file
  • A new <lints_to_address> section with current linter errors

… and then it immediately forgets this information and tells me the file is there and we need to fix it.

I don’t see a way to fix this beyond starting a new composer session.

Note this is not a long lived session. I just renamed a file, dragged the reference in and told Composer I made the change, and continued on just fine (except for it constantly asking to delete the old file that was simply renamed, and so it is not there)

Are there any solutions to this?
I assume these tags are internal/hidden in the UI? Is there a way to edit the content?

Hey, try restarting Cursor. Does it help?

I restarted and asked Composer if it still sees the file and it reports it does now.

It would be great to have access to this context to manually clean it up if needed, or have some sort of command to ask for it to be cleaned up.

this does help, but it should be ok evennot restarting cursor.
Anthor thing I felt inconvenient is that, when manually check accept or deny a change made by composer, why it can’t be done in git diff view?