fix(server): wait for launchd shutdown safely - #56
Conversation
|
@codex review |
(cherry picked from commit 7c5adc4)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 23904533ca
ℹ️ 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".
2390453 to
f52d715
Compare
|
@codex review |
|
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". |
LastCode inherits the same macOS background-service lifecycle race as upstream: `launchctl bootout` can return before the old job finishes draining, while the prior unsupported `--wait` form and optional-error handling can let reinstall proceed without proving the job is gone. This is the patch-identical LastCode port of [upstream PR pingdotgg#7874](pingdotgg#7874), from upstream commit [`7c5adc45ea3ee7456e04339430c2433e3486ffd7`](7c5adc4). It uses supported `launchctl bootout`, polls the exact service with `launchctl print` until launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping. Provenance: - upstream commit: `7c5adc45ea3ee7456e04339430c2433e3486ffd7` - stable patch ID: `e5e07203e79b88a6051cc6eea2159118e4486604` - LastCode port commit: `f52d715a97460fca99afaebc522788a85a8ae1c0` Progresses #39. Validation: - 21 focused boot-service tests - server typecheck - targeted lint, formatting, and diff checks - guarded `pnpm lastcode:ci:quick` pre-push gate Implemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.
LastCode inherits the same macOS background-service lifecycle race as upstream: `launchctl bootout` can return before the old job finishes draining, while the prior unsupported `--wait` form and optional-error handling can let reinstall proceed without proving the job is gone. This is the patch-identical LastCode port of [upstream PR pingdotgg#7874](pingdotgg#7874), from upstream commit [`7c5adc45ea3ee7456e04339430c2433e3486ffd7`](7c5adc4). It uses supported `launchctl bootout`, polls the exact service with `launchctl print` until launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping. Provenance: - upstream commit: `7c5adc45ea3ee7456e04339430c2433e3486ffd7` - stable patch ID: `e5e07203e79b88a6051cc6eea2159118e4486604` - LastCode port commit: `f52d715a97460fca99afaebc522788a85a8ae1c0` Progresses #39. Validation: - 21 focused boot-service tests - server typecheck - targeted lint, formatting, and diff checks - guarded `pnpm lastcode:ci:quick` pre-push gate Implemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.
LastCode inherits the same macOS background-service lifecycle race as upstream: `launchctl bootout` can return before the old job finishes draining, while the prior unsupported `--wait` form and optional-error handling can let reinstall proceed without proving the job is gone. This is the patch-identical LastCode port of [upstream PR pingdotgg#7874](pingdotgg#7874), from upstream commit [`7c5adc45ea3ee7456e04339430c2433e3486ffd7`](7c5adc4). It uses supported `launchctl bootout`, polls the exact service with `launchctl print` until launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping. Provenance: - upstream commit: `7c5adc45ea3ee7456e04339430c2433e3486ffd7` - stable patch ID: `e5e07203e79b88a6051cc6eea2159118e4486604` - LastCode port commit: `f52d715a97460fca99afaebc522788a85a8ae1c0` Progresses #39. Validation: - 21 focused boot-service tests - server typecheck - targeted lint, formatting, and diff checks - guarded `pnpm lastcode:ci:quick` pre-push gate Implemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.
LastCode inherits the same macOS background-service lifecycle race as upstream: `launchctl bootout` can return before the old job finishes draining, while the prior unsupported `--wait` form and optional-error handling can let reinstall proceed without proving the job is gone. This is the patch-identical LastCode port of [upstream PR pingdotgg#7874](pingdotgg#7874), from upstream commit [`7c5adc45ea3ee7456e04339430c2433e3486ffd7`](7c5adc4). It uses supported `launchctl bootout`, polls the exact service with `launchctl print` until launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping. Provenance: - upstream commit: `7c5adc45ea3ee7456e04339430c2433e3486ffd7` - stable patch ID: `e5e07203e79b88a6051cc6eea2159118e4486604` - LastCode port commit: `f52d715a97460fca99afaebc522788a85a8ae1c0` Progresses #39. Validation: - 21 focused boot-service tests - server typecheck - targeted lint, formatting, and diff checks - guarded `pnpm lastcode:ci:quick` pre-push gate Implemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.
LastCode inherits the same macOS background-service lifecycle race as upstream: `launchctl bootout` can return before the old job finishes draining, while the prior unsupported `--wait` form and optional-error handling can let reinstall proceed without proving the job is gone. This is the patch-identical LastCode port of [upstream PR pingdotgg#7874](pingdotgg#7874), from upstream commit [`7c5adc45ea3ee7456e04339430c2433e3486ffd7`](7c5adc4). It uses supported `launchctl bootout`, polls the exact service with `launchctl print` until launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping. Provenance: - upstream commit: `7c5adc45ea3ee7456e04339430c2433e3486ffd7` - stable patch ID: `e5e07203e79b88a6051cc6eea2159118e4486604` - LastCode port commit: `f52d715a97460fca99afaebc522788a85a8ae1c0` Progresses #39. Validation: - 21 focused boot-service tests - server typecheck - targeted lint, formatting, and diff checks - guarded `pnpm lastcode:ci:quick` pre-push gate Implemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.
LastCode inherits the same macOS background-service lifecycle race as upstream: `launchctl bootout` can return before the old job finishes draining, while the prior unsupported `--wait` form and optional-error handling can let reinstall proceed without proving the job is gone. This is the patch-identical LastCode port of [upstream PR pingdotgg#7874](pingdotgg#7874), from upstream commit [`7c5adc45ea3ee7456e04339430c2433e3486ffd7`](7c5adc4). It uses supported `launchctl bootout`, polls the exact service with `launchctl print` until launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping. Provenance: - upstream commit: `7c5adc45ea3ee7456e04339430c2433e3486ffd7` - stable patch ID: `e5e07203e79b88a6051cc6eea2159118e4486604` - LastCode port commit: `f52d715a97460fca99afaebc522788a85a8ae1c0` Progresses #39. Validation: - 21 focused boot-service tests - server typecheck - targeted lint, formatting, and diff checks - guarded `pnpm lastcode:ci:quick` pre-push gate Implemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.
LastCode inherits the same macOS background-service lifecycle race as upstream: `launchctl bootout` can return before the old job finishes draining, while the prior unsupported `--wait` form and optional-error handling can let reinstall proceed without proving the job is gone. This is the patch-identical LastCode port of [upstream PR pingdotgg#7874](pingdotgg#7874), from upstream commit [`7c5adc45ea3ee7456e04339430c2433e3486ffd7`](7c5adc4). It uses supported `launchctl bootout`, polls the exact service with `launchctl print` until launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping. Provenance: - upstream commit: `7c5adc45ea3ee7456e04339430c2433e3486ffd7` - stable patch ID: `e5e07203e79b88a6051cc6eea2159118e4486604` - LastCode port commit: `f52d715a97460fca99afaebc522788a85a8ae1c0` Progresses #39. Validation: - 21 focused boot-service tests - server typecheck - targeted lint, formatting, and diff checks - guarded `pnpm lastcode:ci:quick` pre-push gate Implemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.
LastCode inherits the same macOS background-service lifecycle race as upstream:
launchctl bootoutcan return before the old job finishes draining, while the prior unsupported--waitform and optional-error handling can let reinstall proceed without proving the job is gone.This is the patch-identical LastCode port of upstream PR #7874, from upstream commit
7c5adc45ea3ee7456e04339430c2433e3486ffd7. It uses supportedlaunchctl bootout, polls the exact service withlaunchctl printuntil launchd confirms absence, and fails closed on timeout, permission, domain, or unexpected-output errors before enabling and bootstrapping.Provenance:
7c5adc45ea3ee7456e04339430c2433e3486ffd7e5e07203e79b88a6051cc6eea2159118e4486604f52d715a97460fca99afaebc522788a85a8ae1c0Progresses #39.
Validation:
pnpm lastcode:ci:quickpre-push gateImplemented by OpenAI Codex (GPT-5.6) in the T3 Code Codex harness.