Informing Cursor of the errors it introduces

Workflow is:

  1. Ctrl+L, “Fix this code to do xyx @file
  2. Cursor produces ‘fix’ and I Apply change
  3. Cursor Problems pane now shows “1 error in @file

I usually copy/paste that error back into my chat window and progress with the workflow.

Instead, how can we inform Cursor of that error without having to copy/paste from Problems pane back into our chat context?

I had hopes for the “shadow workspace” which I saw in the docs, but this setting doesn’t exist for me. Letting the model know about what error was introduced by the change - will require one more call to the LLM so at this point it seems we’re getting into a feature request of running many processes and agents behind the scenes :blush: , will probably cost us more, but I’m ready to pay. :crossed_fingers: .

The closest option is to hover over the error and use the “AI Fix in Chat” button, but that will open a new chat. It would be useful to have an @Errors symbol in the chat or to have the errors automatically provided in the chat context.

1 Like

Hi @salsr ,

Just to expand on @Jakob 's answer, below are screenshots of the currently available AI options in the Problems and Terminal tabs:

Screenshot 01 - Problems Tab - Right Click Issue

Screenshot 02 - Problems Tab - In Editor Fix

Screenshot 03 - Terminal Tab - AI options

So re: Screenshot 01, how can we have Add to Chat (will add to any existing chat) just like in Screenshot 03?

With the option for:

  • (in the case of more than 1 problem: “Add all @file problems to current chat”)
  • or individually for each error

The important part for me is the context shift, so including the fix in the current workflow - rather than separate chat window - is key. It also means subsequent responses in that chat context remember the fix, and don’t attempt to reintroduce the original error.

I think this would benefit a lot of users. That’s why I created this feature request: Enable Error Debugging in Continuation of Existing Chat

Hi @salsr ,

Just to confirm the base requirement:

  • You want the AI options that are available in the Terminal tab to also be available in the Problems tab?

Is that understanding correct?

Thanks for the response @litecode and I think to remain within the narrow focus of this issue the base requirements would be:

Where the Problems tab identifies 1 or more problems in a file:

  • allow the user to click/right-click on the filename and select, “Add to Chat” (assuming this adds all file errors with @file context to the filename to the current chat)
  • allow the user to click/right-click on each individual error and select, “Add to Chat” (assuming this adds this specific error, with @file context to the filename to the current chat)

Which I think is also inline with @FARZ feature request.

For me “shadow workspace” setting is available in User Settings (on 0.41.2)

So it is, let’s see how it helps or not. I realise it may mean it marks its own homework before replying but I think in context to this feature it still won’t have context to the errors it’s introducing.

1 Like