Yeah I get what you mean. There's a system where it prioritizes your highest level weapon, but that falls apart in endgame. I'm not completely sure how we can solve it when the player is not actively "playing". I've been doing "all melee" or "all ranged" when possible as a strategy.