Skip to content
This repository was archived by the owner on Sep 15, 2026. It is now read-only.

Wait for renderer LaunchAgent before upgrade bootstrap - #53

Merged
VdustR merged 2 commits into
mainfrom
codex/issue-51-launchd-unload-wait
Sep 2, 2026
Merged

VdustR merged 2 commits into
mainfrom
codex/issue-51-launchd-unload-wait

Conversation

@VdustR

@VdustR VdustR commented Sep 2, 2026

Copy link
Copy Markdown
Owner

TL;DR

Fixes a device-verified upgrade race where launchctl bootstrap returned I/O error while the prior renderer job was still unloading.

Follow-up for #51.

Changes

  • Wait up to five seconds for launchctl print to confirm the old renderer job is absent before bootstrapping the replacement.
  • Fail clearly if unload does not complete instead of installing partial state.
  • Cover unload-before-bootstrap ordering in script tests.

Verification

  • PYTHONPATH=src python3 -m unittest tests.test_scripts
  • bash -n scripts/install-renderer.sh
  • git diff --check

Device evidence

The first merged upgrade rolled back safely after launchctl bootstrap returned exit 5. Current jobs and the previous app were restored. This PR addresses the observed transition before retrying the upgrade.

@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f75a418

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T04:25:34.127115Z f75a418 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@VdustR
VdustR merged commit 9ba7f13 into main Sep 2, 2026
1 check passed
@VdustR
VdustR deleted the codex/issue-51-launchd-unload-wait branch September 2, 2026 04:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant