Web Terminal is unreliable. It closes web socket when losing focus.
As an operator, when I have a Kubernetes deployed application, then go to "Environments" tab, then I open the Web Terminal that connects to my deployed pod, I'm allowed to type some shell commands on it. Although, If I change to another tab in my browser then comeback to the Web Terminal tab, I can't type commands anymore.
Steps to reproduce
Create an application with Node Express template, for instance.
Create a K8s Cluster and enable Auto DevOps as explained here
After deployment is done, click on Environments, then click on the button to open the pod Web Terminal.
Type some commands on the terminal like:
Open another tab in your preferred browser.
Comeback to the Web Terminal tab and try to type another command.
What is the current bug behavior?
It's not anymore possible to type in commands.
What is the expected correct behavior?
I should be able to leave my Web Terminal tab open in my browser, do other work outside this tab, then comeback and keep using the terminal. Or, even if the web socket connection is closed, I should have a way to reconnect to it.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Create a keep alive mechanism or add a reconnect button.