Faulty caching logic

It seems there is some funky caching logic. I’ll retag a file and it will say I have typos, citing old code. Mangling code also happens in other ways that I can’t explain away through caching. For example, it will say things like

Looking at the provided codebase context, I can see an issue with the Response.kt file. The error method in the companion object has syntax errors and parameter naming issues:

fun error(message: String, code: String, detailerrorMessage: String, field: String? = nul): Error > = 
   Error(message = message, errors = listOf(ErrorInfo(code, detail, field)))age, field))

There are several problems here:

  1. nul should be null
  2. detailerrorMessage is used as a parameter but then detail is used in the constructor
  3. There’s a syntax error at the end with age, field))

when in fact the code is

fun error(message: String, code: String, detail: String, field: String? = null): Error =
            Error(message = message, errors = listOf(ErrorInfo(code, detail, field)))

This is with Claude 3.7, but it happens with other models (Google, OpenAI) too.

Oh yes this is so frustrating, to always have to remind it to reload the file to pick up my manual coding. Not even that work every time.

I’m on Linux using VSCode

Hey @esafak @magnushammar Does this happens within long conversations or in a new chat too? This looks very suspicious in kind of context window restrictions. On what OS you are and what Cody version? And what IDE are you using?

Thank you

It happens even in the first response.

IntelliJ IDEA 2024.3.5 (Ultimate Edition)
Build #IU-243.26053.27, built on March 16, 2025
MacOS 15.4.1, Cody 7.92.0

1 Like