Hamas had steadfastly refused to release the remaining hostages, unless Israel ended the war and withdrew its forces from Gaza.
Suddenly, Hamas is agreeing to release all the hostages.
What happened? What caused Hamas to change their mind?

Hamas had steadfastly refused to release the remaining hostages, unless Israel ended the war and withdrew its forces from Gaza.
Suddenly, Hamas is agreeing to release all the hostages.
What happened? What caused Hamas to change their mind?