At some point in time, AI will become mighty. In certain areas it is already. For example, predictions of failures of machinery.. weather forecasting (Google has a weather model), etc.. what you are talking about as "AI" is LLM. LLM is not AI. It's a part of a lot different technologies and techniques. Also know as machine learning. So please, keep it divided.
LLMs won't replace you in this round at statistically composing text/code. But may be in the next. The best thing about this, still a human is needed to do the reasoning instead of the LLM. But when this can be done (f.e. with a combination of different ML techniques and LLM) then we have to talk what can be done about it.
We can talk now, but each solution for the question "what will happen to working people, when AI rise" is just a game of thoughts and in the end lead to the only conclusion:
You get rid of it and work further OR you stop working and let AI do it for you. It will be in the time of the transition, surely a lot of people will become unemployed. But at some point, the whole economy and money does not make sense anymore. Just imagine AI produces you the parts you need with a 3D printer on your sign. So when we come to this point, we've transformed as society so much, that your question is not important anymore.
(I think in Europe it will be started early to find solutions to the threat, a AI tax or something like this. With this AI tax the people who lost their jobs will be supported..
Amerika, India, Afrika (as example) are the countries where a lot people living in that care by themselves for their lives. No helping state. There will be big problems, as no social/governed safety net existing.)