Add service LaunchAgent management#92
Conversation
Add cbth service install, uninstall, and status for macOS LaunchAgent autostart. Generate a LaunchAgent that runs cbth service run with the selected home, report launchctl state, and keep Linux user systemd as future documented shape. Co-authored-by: Codex (model=GPT-5) <codex@openai.com>
|
To use Codex here, create a Codex account and connect to github. |
|
codex/review-gate state
|
|
@codex review Note This workflow is requesting a Codex generative AI review. |
Update the C6 project journal with the created pull request URL. Co-authored-by: Codex (model=GPT-5) <codex@openai.com>
|
@codex review Note This workflow is requesting a Codex generative AI review. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 042aef661c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Re-enable the macOS LaunchAgent label during service install so a previously disabled login item can be restored before bootstrap. Also render LaunchAgent log paths as absolute paths to match the generated service run home. Co-authored-by: Codex (tool=Codex CLI; model=GPT-5) <codex@openai.com>
|
@codex review Note This workflow is requesting a Codex generative AI review. |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review Note This workflow is requesting a Codex generative AI review. |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Treat launchctl missing-domain output like a not-loaded service so status and uninstall still work in headless macOS sessions without an active gui launchd domain. Co-authored-by: Codex (tool=Codex CLI; model=GPT-5) <codex@openai.com>
|
@codex review Note This workflow is requesting a Codex generative AI review. |
Ensure cbth service status reports changed=false even when the generated LaunchAgent plist would differ from disk state, and cover the reporting behavior with a focused unit test. Co-authored-by: Codex (tool=Codex CLI; model=GPT-5) <codex@openai.com>
|
@codex review Note This workflow is requesting a Codex generative AI review. |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Note
This PR is purely generated by LLM: OpenAI Codex (GPT-5.5 (reasoning xhigh, summaries auto)).
Summary
cbth service install,cbth service uninstall, andcbth service status.cbth --home <path> service run.Validation
cargo fmt --checkcargo test --lib service::tests -- --test-threads=1cargo test --test cli_help -- --test-threads=1cargo clippy --locked --all-targets -- -D warningscargo test --lockeduv run /Users/hoteng/.codex/skills/project-journal/scripts/project_journal.py validate --repo .cargo fmt --all,cargo clippy --locked --all-targets -- -D warnings, andcargo test --lockedReview
codex-reviewlive-snapshot review completed with no blocking findings.@codex review/codex/review-gate, offline frozen-diff review, CI, and PR comment cleanup before merge.