It takes a while for the both of them to talk about it.
For weeks Yaz doesn’t bring up the 10 months, and The Doctor doesn’t mention her prison stay. It works for the most part. They travel, save the world a few times, they make friends with Dan and show him the true wonders of the universe and everything is fine.
But there’s only so long you can go without talking about something important.