Skip to content

Windows: v2.40.0 still misclassifies a valid scheduler task for non-ASCII account names #3320

Description

@chowyuan1314

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.

  1. Install @bitkyc08/opencodex@2.40.0 globally.
  2. From a normal (non-elevated) PowerShell, run ocx service (or ocx service install).
  3. 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.
  4. Register or repair the task from an elevated shell.
  5. 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.
  6. 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

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-infoWaiting on reporter for a concrete spec or reproductionplatformOS/service/tray/ACL (Windows-heavy, not Windows-only)serviceService lifecycle (WinSW/launchd/scheduler)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions