Google Assistant on my Pixel 4 will search in foreground app if I ask a query so you might not be correct in that respect.
Roku does not support multitasking. I would not expect a voice search to close the app I'm using. If I want to switch apps to listen to music, I could hit the home button, then voice search and let music preferences launch the appropriate app.