Software engineering will change. Up to this point, programmers have to build software code line by code line. In the near future, in less than ten years, we will get tools that automate a big chunk of that process. Software engineers will still need to design the program but the building process will be much more automated. You'll be able to request big chunks of code that will be glued and arranged by software engineers, OOP on steroids. Basically, the programming process will be sped up greatly. Software engineers will need to adapt. It reminds me of the transition from hand-coded HTML to a designing tool that lets you draw a web page and the editor takes care of the HTML code. The HTML code produced by the editor is mostly messy but it works and it greatly automates and speeds up the frontend design process. I will even say that at some point we will have apps that will output custom apps designed and created by amateurs. It will be similar to the custom websites that are produced by companies that host sites, companies like Godaddy or Squarespace.
This means that software engineers will need to be more like software designers. They will need to focus on what people need and want rather than being handed a design and having to code it by hand. There will still be a need for software engineers but the way things are done will change. Translating what users need to apps will be much more important.
I suggest you keep up with AI's coding abilities. And you transition to a role where you can speak directly to those people who have ideas they want to translate to computer code. Those apps will include AI. We are starting to see that in the OpenAI store. However, software engineers will be able to put together much more complicated apps.
If you have the skills you might want to create apps that create custom apps for amateurs. Basically, the way I see it, a person opens an app, types in a request, and out will come out a complete app that can be used. On the backend, you can have a set number of apps that will be produced by a bot that will guide users by asking questions to a complete and working app.
We won't get to the point of the user asking for a custom-complicated app and having AI output the complete program 100% of the time anytime soon but we are inching towards it.
The big question is: What apps are needed and how abstract can they be so they fill the needs of the maximum requestors?
I suspect game software will be greatly impacted since you can create many different versions of a game but there is only a set amount of software engineering needed.
So, for the foreseeable future, we will still need engineers but the role requirements will change.