Assist not using BTE headsets microphone

Please this one fix. For example galaxy buds pro 4 changing androids default assistsnt to home assistsnt works great by pressing the earbuds button to activate but the microphone always stays on the phone and won’t transfer automatically if activated on the buds.

I assume this could be fixed by using androids sensors to understand when headphones are connected route mic and not just the audio.