Yes, it will work when you take a break from the platform and then come back after a while, because we automatically do the sourcing for you when you launch the course.
The lesson here is that when you have just made changes to your package, recompiled, and sourced on one terminal, the other terminals are not aware of that change until you source the ROS workspace on them. It’s the same whether you are working on The Construct or your local PC.
It would really save you a lot of *ache if you make it a habit to source the ROS workspace every time you want to work on a new terminal.
I want to keep my files untouched. By resetting VM, does all environment variables get reset to value like a computer reboot? Or will they keep values from before VM reset?