mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
The slot-holding python parent now traps INT/TERM (forwarding to a running child) and, in a finally, removes the temp worktree (git worktree remove --force, rm -rf) and prunes it from the main repo. The pre-exec stage has its own EXIT/INT/TERM trap for the window between worktree add and the hand-over. Tested: 3 runs, limit 2, run 3 killed with TERM while queued -> exit 143, 'stopped by signal 15; removed …'; all three temp worktrees gone from disk and from git worktree list.