You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Two desktops using the same SSH connection details can stop each other's remote server #41825
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/desktop (packages/ssh)
What happens
When two desktop apps use the same SSH connection details for one host (same alias or hostname, user and port), they share one set of ownership files on the host. The second desktop to connect is treated as the owner of the server the first one launched. When the second desktop disconnects or removes the environment, it stops that server while the first desktop is still using it.
Steps to reproduce
On two computers, install the desktop app. Pick an SSH host with no T3 server running.
On computer 1, add the host under Settings → Environments → Add environment → SSH. T3 Code launches a server there. Start an agent turn that runs for a while.
On computer 2, add the same host with exactly the same alias or hostname, user and port. It connects to the running server.
On computer 2, disconnect that environment (or remove it).
I have not run this; the steps follow the code on main.
Expected behavior
Computer 2 leaves the server alone, because it did not launch it. The docs say a server that was already running is left alone.
Actual behavior
The server on the host is stopped. Computer 1 loses its connection and the running turn ends.
Impact
Running work on a shared SSH host is interrupted by another desktop.
Activity