List a loop's question in loop-inbox only while the loop holds the session's lock #396

Merged
lilleman merged 8 commits from item-252 into main 2026-10-29 18:40:24 +01:00
Owner

loop-inbox told a running loop by its pid, and this machine hands out its 32,768 pids again within the hour, so a killed loop's question came back in the list. Now a loop holds a flock on <session>.lock while its question is listed. loop-inbox lists a question only while that lock is held, and removes one whose lock is free. Holds 0.4.0.

After merging, restart loop-inbox. An old loop-inbox hides the questions of loops started on the new code. A loop that was already waiting when you merged holds no lock, so the new loop-inbox drops its question: answer that one on the loop's terminal.

loop-inbox told a running loop by its pid, and this machine hands out its 32,768 pids again within the hour, so a killed loop's question came back in the list. Now a loop holds a flock on `<session>.lock` while its question is listed. loop-inbox lists a question only while that lock is held, and removes one whose lock is free. Holds 0.4.0. After merging, restart loop-inbox. An old loop-inbox hides the questions of loops started on the new code. A loop that was already waiting when you merged holds no lock, so the new loop-inbox drops its question: answer that one on the loop's terminal.
lilleman added 2 commits 2026-10-29 18:14:54 +01:00
lilleman added 6 commits 2026-10-29 18:40:02 +01:00
lilleman marked the pull request as ready for review 2026-10-29 18:40:20 +01:00
lilleman merged commit 45439294ea into main 2026-10-29 18:40:24 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilleman/claude-config#396