Irrelevant answers

Cody’s answers have changed, and they do not provide a relevant code solution but just text and comments that I need to accept or reject.

1 Like

Hey @PetarBelberov

Which model are you using and what version of Cody?

Version - 1.84.0
All the models gave me similar answers, with text and comments to accept and reject…

I have this exact issue. I get this regardless of whether I’m asking for code suggestions or not.
I often use Cody as a second pair of eyes on my code, so this has been a huge issue.

All models return the same thing.

If you mentioned in the prompt that it should show “the change”? This could make a difference to rephrase the prompt without saying something about “change”.

I will try to replicate.

Strangely, Cody works fine on my second laptop. So, is it possible that some settings need to be modified locally on my VSCode?


@PriNova
Look at the strange answer it gives me. Also, look at the code that is provided to accept or reject…

@the_nexust @PriNova
I think I found the a way to solve the strange bug:

  1. Click on the “Prompts” and choose, for example, “explain code”
  2. Then on the same prompt edit or add a new one and ask your question, it will fix the strange behaviour.

Based on the image provided and the explanation, it seems as if Cody is losing track of the referenced file. In the image, I don’t see the filename at the bottom, which suggests that it knows it from past chat history, but during the chat there may have been untraceable changes (like manual editing) that confuse Cody.

The workaround you describe @PetarBelberov seems to be that Cody fetches the most recent file and thus has the most recent reference in context memory again.

The issue is not related with the file names. I Just cropped the image - the files are provided. The workaround fixes the issue. Just keep in mind about this strange behaviour.

I mean the file name under the code block. Usually, the apply features fails if there is no file path depicted under the code block.