i would think in the the latter two examples provided by mongu and greekdude, that the EU partner of Thai could simply sell those seat on the Thai flight eventally bound for BKK as its own.
I think AC may have had some deal with DL, but I honestly don’t know if it still exists. I will check. A buddy of mine at work here worked on the open skies agreement.