As long as the user session is alive (i.e. not locked out) and the PC is not in sleep mode the application will keep running.
The application will also reconnect to cloud, if the PC has been in sleep mode previously, when the user logs back in.
It is also possible to run robots even when user is logged out by setting the runtime agent as a service from the application settings menu. Check the workforce side settings icon from the top bar and click “Setup as Service”.