small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

remote: a lost connection wakes for its jobs, and a login shell need not be POSIX

a connection that died cleared its live jobs but told nobody: a session idle on a remote job never woke, poll() kept answering None, and the daemon listed the job as running forever. the jobs no reference here claimed now wake the session once with their own notice, and a dead reference raises RemoteLost from poll(). in_login_shell quoted POSIX redirections into $SHELL, which nu and fish cannot parse: fd 1/2 were still on /dev/null when the login shell started, so every command exited 1 with no output. the script travels through a temporary file now and the login shell is only asked for one quote-free command, `/bin/sh <path>`; it unlinks itself and the shell execs, so no process is left whose command line holds it. Signed-off-by: dawn <90008@klbr.net>


Author ptr.pet
Date Commit Parent 8f1b397d Change ID
+176 -15
5 changed files
+176 -15
5 changed files