-
Notifications
You must be signed in to change notification settings - Fork 659
fix(service): complete the repair migration — docs, startup health, doctor, and update advice #991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ba68e90
bee1cc7
0662e34
b3dfdc2
a632c87
362771a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,7 +175,7 @@ same stale-`app-server` warning and optional `--restart-codex` behavior as `ocx | |
|
|
||
| ## Background service | ||
|
|
||
| ### `ocx service [install|start|stop|status|uninstall|remove]` | ||
| ### `ocx service [install|repair|start|stop|status|uninstall|remove]` | ||
|
|
||
| Run opencodex as a login-managed background service (macOS **launchd**, Linux **systemd user unit**, | ||
| Windows **Task Scheduler**) that auto-starts on login and auto-restarts on crash. Service runs set | ||
|
|
@@ -184,7 +184,8 @@ Windows **Task Scheduler**) that auto-starts on login and auto-restarts on crash | |
| | Subcommand | Action | | ||
| | --- | --- | | ||
| | none | Create/update and start the service. | | ||
| | `install` | Create and start the service. | | ||
| | `install` | Create and start the service. Registers it, which on Windows needs elevation. | | ||
| | `repair` | Refresh an installed service in place and restart it, without re-registering it. | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The claim that AGENTS.md reference: docs-site/AGENTS.md:L5-L10 Useful? React with 👍 / 👎. |
||
| | `start` | Start an installed service. | | ||
| | `stop` | Stop the service and restore native Codex. | | ||
| | `status` | Report service and proxy diagnostics plus log paths. | | ||
|
|
@@ -194,6 +195,7 @@ Windows **Task Scheduler**) that auto-starts on login and auto-restarts on crash | |
| ```bash | ||
| ocx service | ||
| ocx service install | ||
| ocx service repair | ||
| ocx service status | ||
| ocx service uninstall | ||
| ``` | ||
|
|
@@ -230,9 +232,9 @@ log named in the message, and use `ocx start` to serve in the foreground meanwhi | |
| ⚠️ installed and loaded (launchd; logs: …) | ||
| Registered, but no proxy is answering on port 10100. | ||
| launchd is running an OLDER plist than the one on disk. | ||
| Fix: launchctl bootout gui/$(id -u)/com.opencodex.proxy && ocx service install | ||
| Fix: launchctl bootout gui/$(id -u)/com.opencodex.proxy && ocx service repair | ||
| Log: ~/.opencodex/service.log | ||
| Repair: ocx service install | ||
| Repair: ocx service repair | ||
| Meanwhile: ocx start (serves in the foreground) | ||
| ``` | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reference now advertises
repair, butsrc/cli/help.tsstill rendersocx help serviceandocx service --helpasocx service [install|start|stop|status|uninstall|remove]. This leaves the shipped CLI help contradicting the newly synchronized public reference and continues to hide the recovery command from users who consult local help; update the service help entry and its CLI-help coverage alongside this heading.AGENTS.md reference: docs-site/AGENTS.md:L7-L10
Useful? React with 👍 / 👎.