Auto-detect new playback device

When I plug headphones into my Macbook after starting Audacity 4 it automatically detects this and changes the output device to External Headphones. And it puts up a notification that it has done so.

Bravo!

I’m using Bluetooth, either Apple or Bose, and when they connect I am notified that they are both the new input device and the new output device. When they disconnect I am notified that the Mini speakers are the new output and the Mini mic is the new input.

Seems weird that the air pods or headphones would be considered the input device?

Airpods include a microphone, no? Like, you can talk on the phone with them? So Audacity is recognizing that a new microphone has been connected to the Mac and assumes you want to use it for input.
Same thing happens when I connect my Mackie headphones.