Repository navigation
Release review hook locks when the owner exits - #159
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
An interrupted delivery leaves the directory lock behind and blocks every later hook.
Use Bun's built-in SQLite writer lock, which the OS releases when its owner exits, with a five-second contention timeout. The same process owns the lock, writes hook output, and records receipts; its jq child only computes into a captured pipe. Killing the owner cannot leave a child publishing after the lock is released.
The jq event filter from the base is moved unchanged into its own file; all 73 lines match byte-for-byte after removing the shell indentation. Legacy lock directories are ignored, and a failed output or lock timeout leaves activity replayable. This avoids PID/age-based lock deletion and adds no package dependency.
Validation:
Fixes #158.