you should read what the Thai government considers income before you respond. And what the last 2 years of Thai tax discussions have been about! It’s a whole lot different than the western world.
The treaty prevents you from being taxed on it twice … yes. However. If you establish tax residency in a foreign country, you might/would file a tax return in that country and then you would file your worldwide income return with the U.S. and then you would get credits for taxes paid outside of the U.S. if you had a filing requirement.