Error: The model provided an ambiguous search string to replace

Version: 0.50.5 (user setup)
VSCode Version: 1.96.2
Commit: 96e5b01ca25f8fbd4c4c10bc69b15f6228c80770
Date: 2025-05-18T04:26:31.444Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

request id: 404394b1-f1ef-4c60-aa5d-a848018ff290

1 Like

very likely because of duplicated code in your file i got that issue too and that might be the problem

I really think they happen so often that they shouldn’t be included in the 25 tool calls made in just one request.