Here's another example: user focus. When an important event occurs, should the user not be able to continue a task and be stopped until a decision is made, or should they continue to work and have the error as a notification? At what point in the experience is the user flow of execution halted for input? This is UX because it doesn't care about the UI. UI is after the UX decision and whether you implement it with a popup, or an alternate screen that overlays, or even a CLI prompt in the case when it is not a graphical UI. Maybe a good way for you to conceptually separate them is to think about the behavior and forget whether you are using a GUI or a CLI to implement it.
I can see this is pointless because clearly you have no experience with either in a professional context. I feel like you're just trying to "win" here and not really listening.