Apply code update from chat creates a new file

I’m having this issue as well. On MacOS, using claude-3.5-sonnet-20241022. Apply has worked for me in general, but on a set of files I’m working now, if I click apply it creates a file in the wrong path. This is in ‘chat’. I know chat isn’t supposed to create files, but I think it’s doing it as part of the logic of “updating” the file at the wrong path.

In my case I have a VSCode workspace with multiple folders mounted as top-level projects. I’m working in one of the folders, but the “apply” incorrectly happens in another one (the first project in the list).

It’s 100% reproducible with these files. I haven’t experienced this with other uses of apply. Happy to jump on a zoom or something if someone wants to debug this. It’s pretty annoying.

2 Likes