You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: ocx status says Desktop Start at Login "could not be verified" when the LaunchAgent is registered but not yet loaded #6948
ocx status on a Desktop-supervised macOS install reports Restart safety: AT RISK after restart (OpenCodex Desktop runs this proxy, but its Start at Login could not be verified; turn it on in the OpenCodex menu), although ~/Library/LaunchAgents/OpenCodex.plist exists with exactly the expected contents (Label OpenCodex, ProgramArguments [/Applications/OpenCodex.app/Contents/MacOS/opencodex-desktop, --autostart], RunAtLoad true).
macLoginRegistration in src/service/desktop-startup.ts also requires launchctl print gui/<uid>/OpenCodex to succeed. A LaunchAgent written after the current login (for example, the app was installed or Start at Login was turned on during this session) is not loaded until the next login, so launchctl print answers Could not find service "OpenCodex". The registration is valid and will start the app at the next login, but status tells the user to turn on a setting that is already on.
Reproduction
On macOS, install OpenCodex.app during a login session and let it register Start at Login (or toggle it on).
plutil -p ~/Library/LaunchAgents/OpenCodex.plist shows the expected agent.
launchctl print gui/$(id -u)/OpenCodex → Could not find service "OpenCodex" in domain for user gui: 501.
ocx status → "Start at Login could not be verified; turn it on in the OpenCodex menu".
Expected: distinguish "registered, takes effect at next login" from "not registered", and do not tell the user to turn on a setting that is already on.
Version
2.83.0 (OpenCodex Desktop, macOS)
Operating system
macOS 26.6 arm64 and macOS 27 arm64
Provider and model
No response
Logs or error output
Restart safety: AT RISK after restart (OpenCodex Desktop runs this proxy, but its Start at Login could not be verified; turn it on in the OpenCodex menu)
Screenshots and supporting files
No response
Redacted configuration
No response
Checks
I searched existing issues and documentation.
I removed secrets, tokens, account details, request credentials, and personal data.
Fixed on dev by #6954 (squash 862b8f1). Exact-head CI on 55f665e was green (PR CI and Cross-platform CI lane=all 38147206772); an independent review passed on that head.
Activity
lidge-jun commentedon Oct 11, 2026
Fixed on dev by #6954 (squash 862b8f1). Exact-head CI on 55f665e was green (PR CI and Cross-platform CI lane=all 38147206772); an independent review passed on that head.