I do think when do a source .bashrc or exec bash which is like a restart then you loose the virtual ecosystem and you've got the same result as Placing deactivate. So you have to adjust your solution.This may be valuable for reproducing the behavior, seeing if you can make it vanish by altering the timing of things, and for tests remedies put set u