Comment
Comment by chaorace
Have you considered overriding the Emacs process EDITOR variable via setenv? i.e.:
If you do that, it should cause any child processes (e.g.: vterm) to inherit the replaced EDITOR variable and properly open new editor frames instead of trying to do a terminal takeover.