Remote-ssh and persistent sessions

At the moment, I run cursor on my worker machine using the remote ssh extension. Unfortunately, if the wifi goes down or I close my computer the agent stops working because the ssh connection dies. My goal is to allow the worker to continue running even if the UI disconnects. Then when the UI reconnects it catches up.

  • My terminal connection doesn’t have this problem because I use eternal terminal + tmux.

Links:

Hi @sshleifer – for short disconnects (<5 mins), it should be able to auto-reconnect without making you reload the editor. However, for long reconnects, you will have to reload the window, since the remote server will automatically shutdown after 5 minutes of no connected clients. For long running commands, I would recommend that you continue to use tmux for that.