@Duncan ******
exactly. Or event to which officer and their mood at the time. The official line, you should announce your trip before going.
At the end of the day, The Thai government rules are flexible and all immigration officers have got the legal right to, without right of appeal, to use discretion to take any decision regardless of government guidance.