Your sealed flight should be booked as part of your international flight. It should all be shown under one itinerary. If you book the flights separately through a 3rd party provider, you will probably need to exit through border control in Bangkok and be required to be quarantined overnight to complete your Test and Go in Bangkok. Check with your airline when booking flights.