After git push, what happens to a /bin/bash opened from the HostOS?

I used the balena CLI to ssh into the host of my device, and then balena ps and balena exec -it <container id> /bin/bash

then later I did a git push and since the ssh connection was still open, I did some more work, but as part of that noticed that many of the environment variables were missing. All of my device variables, service variables, BALENA_* and RESIN_* variables were missing.

Is this a well known problem?

Nevermind, realized, that the shell I was looking at was the HostOS shell.