This is more a nitpick than a bug.
In the caves, there are often broken robots that can be stripped for pieces. In half the cases, bumping into them with melee results in "cannot swap with disabled ally". They're not disabled, they're broken. Thus, the expected behavior would be for them to be attacked, rather than requiring the player to disable all weapons but melee, and fire the melee weapon manually.