That is true. Hence Reasoning is so important. Windsurf for instance uses a lot of extra stuff as context (which files you have open, your latest got changes, grep for specific files etc) in order to find the places to change it really matters.
It can still get lost in circles occasionally though, but it's much netter than just throwing the whole code base at it