A home warranty is a service contract, a written agreement in which a company agrees to arrange repairs to listed home systems and to pay for covered work, within the limits of its terms. When you sell a house with a contract in force, the paperwork decides what happens to that agreement. Read those clauses before you list the house, not after a buyer asks for them.
Start with the transfer clause. Look for whether the contract can be passed to a new owner, whether the buyer must apply or sign a form, how long the buyer has to do so, and whether any charge applies to the change. Note the exact wording. Some contracts treat a transfer as automatic, some ask for a form, and some do not allow transfer at all. Only the text of your own contract settles which kind yours is.
Next, read the cancellation clause. Look for how you can end the contract, what notice must be given, how any refund is calculated, and who receives it. The obligor is the company named in the contract as the party that must perform under it, meaning the party that arranges and pays for covered repairs. Copy its exact name and address from the contract itself, not from a website banner or a template, because that is the name your cancellation request should carry.
Then check the waiting period. A waiting period is the stretch of time after a contract starts before its benefits can be used. When a contract changes hands, the buyer may ask whether that window restarts, or whether it has already passed. Ask in writing, and keep the answer with the contract. If you want to see how companies word these terms before you commit, the list of companies that post a sample contract on this site lets you read the language in advance.
Ask the closing office whether the buyer will receive a copy of the contract and any transfer instructions, and get the answer in writing. Do not assume a clause means what it seems to mean on a quick reading. A plain question, sent to the company and answered in writing, is the usual way to settle what a transfer or cancellation will do in your case.