mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
A host crash left the scratch root on disk, so the remote process-session wrapper polled its unchanged control directory forever and kept its child alive. The host now writes and refreshes a lease file under sessionDir on an unreferenced timer; the wrapper reads the lease as filesystem metadata only (device, inode, modification time) on a monotonic clock, and terminates itself once the lease stops moving past its duration. Co-authored-by: Paperclip <noreply@paperclip.ing>