Shell auto refresh in the middle of queries

When I was in the middle query the db in shell, the shell tab refreshed itself and I lost all the previous commands and was forced to start over again. Please help. Thanks

Due to sensitive information, the Render team has handled this in private.