Repository navigation
fix(lastcode): use portable updater locks - #47
Conversation
|
@codex review |
left a comment
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad7d18f9d2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
commented
Aug 21, 2026
|
@codex review |
commented
Aug 21, 2026
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The LastCode local build and managed installer both depended on
/usr/bin/lockf, which is absent on some supported macOS installations. That made updater serialization—and the repository's own guarded CI—fail before either operation could begin.This centralizes both locks in one dependency-free helper using macOS
O_EXLOCK | O_NONBLOCK. The process retains the file descriptor for the lock lifetime, so normal exit and process death release it in the kernel. Existing lock metadata remains available for contention diagnostics, and the standalone installer copies and validates the managed companion.Part of #38.
Validation:
--helpsmoke testpnpm lastcode:ci:quick: passedAuthored with GPT-5.6 in the Codex harness. Reviewed with GPT-5.4 Codex.