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. Theerror
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:
nul
should benull
detailerrorMessage
is used as a parameter but thendetail
is used in the constructor- 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.