Obviously, ChatGPT can't do this today, but I don't see any fundamental reason AI won't be able to do this in the decade or so.
Even in this context I don't know that there won't be demand for humans that have the mental rigor to program computers. I do think we will need to adapt.
This abstraction, compiled away, into machine code that does one thing. Compilers also tend to take all kinds of shortcuts to make programs a lot faster, and therefore changing them might not be as straightforward as you think.
If you think I'm wrong, I'd like to see what "fundamental reasons" you've considered and how you've reasoned that they aren't an issue for this sort of system.
Abstractions like assembly code or C or Python are for the benefit of us humans. We can't reason about even fairly trivial x86 binaries because our minds aren't designed for that much complexity. An AI will have a completely different set of limitations.
This isn't going to happen tomorrow, but you'd be foolish to bet against it happening within the next decade. This advanced, but it isn't any more "magic bullshit" than ChatGPT or Stable Diffusion.
People expecting that their jobs never change would have a rough time surviving for decades in IT anyway. Automate all the drudgery away, new drudgery always comes back in its place.