Music Assistant gives up its Sonos queue when another app or audio source takes over a speaker, including when a Sonos Arc switches to television sound. It stops sending commands for the old session rather than continuing to treat that session as its own.
When someone starts music again, Music Assistant loads it into the session already playing instead of creating a new session that first stops the speaker. Michael N supplies the changes to the Sonos connection.