Client or integration
Codex CLI
Area
Service lifecycle
Summary
On Windows 11, OpenCodex v2.40.0 can report the proxy service as expired and reboot protection as missing even when the Task Scheduler task is enabled and the proxy is running.
Expected: ocx service / ocx service repair should recognize the registered opencodex-proxy task and report the service as healthy.
Actual: the install/repair flow can fail with schtasks.exe /create ... Access is denied. from a normal PowerShell session. After elevated task registration, the health check can still reject the valid task when the Windows account name contains non-ASCII characters. The local proxy remained reachable (the health endpoint returned HTTP 200), so this appears to be a scheduler identity/trigger validation false negative rather than a proxy failure.
This looks like a residual case related to #3064 and PR #3134: paths may be handled, but the <UserId> comparison and/or schtasks output decoding still does not tolerate non-ASCII account names.
Reproduction
Environment: Windows 11 x64; the Windows account/profile directory contains non-ASCII characters. The actual account name and path are intentionally redacted.
- Install
@bitkyc08/opencodex@2.40.0 globally.
- From a normal (non-elevated) PowerShell, run
ocx service (or ocx service install).
- Observe a scheduled-task registration/cleanup error similar to:
schtasks.exe /create /tn opencodex-proxy /xml <temporary-stage-path>\task.xml
followed by Access is denied.
- Register or repair the task from an elevated shell.
- Refresh the OpenCodex startup-safety/service health check and observe that a valid enabled/running task can still be reported as expired or as having missing reboot protection.
- Verify independently that the
opencodex-proxy task is running and that the local health endpoint returns HTTP 200.
No real username, machine name, SID, full path, PID, token, or raw log file is included in this report.
Version
@bitkyc08/opencodex@2.40.0
Operating system
Windows 11 x64 (Windows account/profile path contains non-ASCII characters)
Provider and model
No response
Logs or error output
No raw logs attached. Sanitized error shape:
schtasks.exe /create /tn opencodex-proxy /xml <temporary-stage-path>\task.xml
Access is denied.
Screenshots and supporting files
No screenshot or supporting file attached; local account, machine, and path details were intentionally omitted.
Redacted configuration
Not provider-specific. No credentials, tokens, account identifiers, or private configuration are relevant.
Checks
Client or integration
Codex CLI
Area
Service lifecycle
Summary
On Windows 11, OpenCodex v2.40.0 can report the proxy service as expired and reboot protection as missing even when the Task Scheduler task is enabled and the proxy is running.
Expected:
ocx service/ocx service repairshould recognize the registeredopencodex-proxytask and report the service as healthy.Actual: the install/repair flow can fail with
schtasks.exe /create ... Access is denied.from a normal PowerShell session. After elevated task registration, the health check can still reject the valid task when the Windows account name contains non-ASCII characters. The local proxy remained reachable (the health endpoint returned HTTP 200), so this appears to be a scheduler identity/trigger validation false negative rather than a proxy failure.This looks like a residual case related to #3064 and PR #3134: paths may be handled, but the
<UserId>comparison and/orschtasksoutput decoding still does not tolerate non-ASCII account names.Reproduction
Environment: Windows 11 x64; the Windows account/profile directory contains non-ASCII characters. The actual account name and path are intentionally redacted.
@bitkyc08/opencodex@2.40.0globally.ocx service(orocx service install).schtasks.exe /create /tn opencodex-proxy /xml <temporary-stage-path>\task.xmlfollowed by
Access is denied.opencodex-proxytask is running and that the local health endpoint returns HTTP 200.No real username, machine name, SID, full path, PID, token, or raw log file is included in this report.
Version
@bitkyc08/opencodex@2.40.0
Operating system
Windows 11 x64 (Windows account/profile path contains non-ASCII characters)
Provider and model
No response
Logs or error output
Screenshots and supporting files
No screenshot or supporting file attached; local account, machine, and path details were intentionally omitted.
Redacted configuration
Not provider-specific. No credentials, tokens, account identifiers, or private configuration are relevant.Checks