I’ve not experienced this before, might be due to some regression but I passed my current files to Composer, some of which are not in the root folder. Composer then suggested some changes and applying them created a new file in root folder instead of merging the suggestions onto the existing file on some subfolder.
Version: 0.42.2
M1 Max
Sonoma 14.6.1 (23G93)