From an economic standpoint, GDP grew at an annualized rate of 3.3% - which is good. Consumer spending grew at an annualized rate of 1.9%. Unemployment has been under 4% for the past two years and job growth far exceeded expectations. Wages are now growing faster than inflation. Even housing and new home construction grew - despite rising interest rates! If you don't think this is a good economy, then you have unrealistic expectations of what makes a good economy.
So, coming back around to the topic at hand - if the economy is doing so well then why are developers being laid off by the hundreds of thousands? You claim AI has absolutely nothing at all to do with it. I say that makes no sense given all the facts we know. If anything, the demand for developers should be increasing, but that's not what we're seeing.