I highly doubt that a significant portion of farm labor became salesman or researchers. Builders? I could see that but robots already replaced a portion of those too.
Well, if that's the case, then in your concept the issue isn't what will happen to the programmers, but rather to all the work in general.
less jobs creation is a almost certain for tech, but some people with high IQ get wayy more things done, they already do. This will spread to robots and other areas because robots are not automous yet, maybe will take decade(s). but meanwhile few operators will lead them in a more productive way? That's my bet. It's a clear, logical process with iterations. A lot of things are getting faster with AI, except energy production in some places in the world!
That's how it always happens. Technology advances, and there are more jobs than we're displaced. That's why technology keeps getting better AND the number of jobs keeps increasing with population.