`coder ssh` should exit when its parent process dies
@johnstcn ci sta già lavorando.
Dal 7/1/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem:
We observed an internal user having a large number of orphaned coder ssh processes running on their laptop.
This was contributing to increased load on coderd.
Our hypothesis is that the user's editor (Cursor) was automatically running a setup script over SSH that invoked coder ssh (via ProxyCommand in .ssh/config) and exiting with an error.
Steps to reproduce:
- Run a new shell and get its PID
bash
$ echo $$
12345
- SSH into a workspace and run a long-lived command
coder ssh my-workspace sleep infinity
- Validate that the
coder sshcommand is running
ps -eo pid,ppid,command | grep [c]oder
12346 12345 coder ssh my-workspace sleep infinity
- Kill the SSH process' parent (the bash shell)
kill -9 12345
- Observe the
coder sshprocess still running but now owned by PID 1
ps -eo pid,ppid,command | grep [c]oder
12346 1 coder ssh my-workspace sleep infinity
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 3
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di coder/internal
-
flake
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
flake
-
flake