Read the termination clause before assuming anything. Some agreements run for a set term, often 60 to 90 days, and ending one early can occasionally raise a question about who is owed a commission if a home you were shown through the first agent is later purchased.
A lawyer should review the wording if there is any ambiguity, especially if homes were already toured with the outgoing agent, since that history is exactly where a dispute over commission tends to originate.
Joel Dyck takes on buyers mid-search regularly and can walk through what a clean handoff looks like. Get your hand-reviewed valuation from Joel Dyck.