@Upen ******
, you need to talk to the Ministry of Labor who issue work permits, this is a VISA advice group. ๐
As far as how it works when you're married to a thai but you divorce
If you have a year-long, multi-entry visa based on marriage (which you can only get from a thai consulate in another country) where you bounce out and back every 90 days to get a new 90 day stamp
When you divorce the visa is fine and you can bounce out and back every 90 days using it until it expires.
HOWEVER
If you have a yearly extension of stay based on marriage (which you can only get from the immigration office inside thailand) where you do 90 day reporting,
When you divorce your extension is invalid the day you sign the decree at the Amphur and the divorce is finalized.. You would have to go to the immigration and cancel your extension