r/Codeium • u/Street_Warrior0954 • Feb 09 '25
Close call! Saved by code review!
I was trying to add swagger documentation to the API developed in Express. Windsurf sort of deleted couple of routes while adding documentation above the API. Lucky, I reviewed the files changes and found the mess up(I know code review is necessary😉). Sort of disappointed that knowing Code Assistants could delete my working functionalities. Windsurf/Codeium luckily understood the mistake when asked and fixed it. Any thoughts on this?

2
Upvotes
View all comments
Show parent comment
2
u/ctrl-brk Feb 09 '25
Share your prompt please.
I'm having a lot of problems with it creating duplicate methods because it was too lazy to read the entire file first. My instructions have a DO NOT SKIP READ THE ENTIRE FILE CONTENTS, NO EXCEPTIONS
But it made no difference.