Maybe you have history of staying in Thailand they dont like but normally they dont communicate with immigration so I tend to think your agents stuffed up and did not submit correct paperwork
i simply showed my visa. My phone number. My residence and walked out in about 1 hour including wait time. They asked if I work in said no its a retirement visa.