This article: https://www.cnbc.com/2023/04/03/us-passport-delays-are-months-long-and-may-get-worse.html
...is painting a serious problem that can affect Americans wishing to continue residing in Thailand.
Note, of course, that during the time it takes to get a replacement US Visa, you will NO LONGER HAVE a valid US Visa, in your possession.
The bad-case scenario I'm picturing here is (as an example):
Your Retirement Extension expires on November 15, so you make an appointment with Immigration for renewal of your retirement Extension to meet on November 2, 2023.
In August, 2023, you happen to notice that your passport is expiring October 5, 2023, so you make an appointment to visit the US Embassy in Bangkok, on August 14, 2023.
At that appointment, you request a new renewed passport, pay all the fees, and then, as needed, you surrender your passport.
Thus begins the wait.
Say it took the full FOUR MONTHS for renewal (and how much time would be added on to mailing it to the USA, and getting it mailed back to Thailand, then getting MAILED TO YOUR HOME? This could add a month, easy, to the process) So suppose you've got a FIVE MONTH DELAY, in getting a replacement valid American passport, but in the BEST CASE scenario of the delay being only FOUR months... that would put getting the replacement US Passport in Mid DECEMBER, 2023.
What exactly would happen if you show up at Immigration on your November 2 appointment, WITHOUT A PASSPORT?
(I actually have no idea if Immigration has some work-around for this scenario, as this LONG DELAY for new US Passports Replacement is a recent problem)
My POINT then, is that it behooves Americans to pay close attention to the expiration date on your passport, and schedule the Passport replacement procedure to where (in all cases of possible delay, taking into account this new CRAZY period of 4 month PLUS!) you will be meeting with Immigration with US Passport in hand.
This COULD mean requesting your replacement US Passport 6 or even 9 months ahead of the actual expiration date of the passport, so there's absolutely NO WAY this will interfere with meeting with Immigration.
This could require some clever planning, well in advance.