In macOS (Sonoma 14.6) my shell sometimes shows odd and long numbers inside the prompt instead of my host name for my Mac :
Changing either the shell from zsh to bash (chsh -s /bin/...) and opening a new shell window - or (not sure about it yet) changing the profile in the settings suddenly I do have the normal shell prompt again. Oddly enough macOS Terminal shows these long numbers while Zoc.app - at the same time and same conditions - doesn't show them at all.
And something else is weird - might not have sth to do with the phenomenon in Terminal - in Apple Mail I do have sometimes these long numbers too, doesn't matter which Mail account.
Actually I am using a VPN connection (Cyberghost VPN - set up in Network settings), as well I am using Adguard app - which I suspect at the moment, but I don't know where to start.
How can I pin down why my host name is changing unexpectedly?
--
See as well the attached screenshots below -