Skip to content

[Bug]: ocx system update check reports installer "source" / reason "source_checkout" on a Windows MSI install (2.84.0) #7051

Closed

Description

@Yum-wu

Client or integration

OpenCodex dashboard

Area

Installation or packaging

Summary

On a Windows MSI install, ocx system update check still reports the installation as a source checkout, so the CLI self-update path is permanently disabled even though the dashboard updater works:

{
  "currentVersion": "2.84.0",
  "latestVersion": null,
  "channel": "latest",
  "installer": "source",
  "updateAvailable": false,
  "canUpdate": false,
  "command": "git pull && bun install && bun run build:gui",
  "releaseNotesUrl": "https://github.com/lidge-jun/opencodex/releases/latest",
  "reason": "source_checkout"
}

I expected a managed MSI install to be recognised (or at least to get a distinct reason), so canUpdate can be true and ocx update can work.

#6963 / #6980 fixed the dashboard installer path — I updated 2.83.0 → 2.84.0 through the dashboard on this very machine and it worked. The CLI path appears untouched and still falls back to the detectedManager = "source" default.

Reproduction

  1. Install OpenCodex from the Windows MSI (registry entry {3A9FB72C-AC9F-4005-ABF7-053525C86DCA}, DisplayVersion = 2.84.0, install dir C:\Program Files\OpenCodex\).
  2. Run ocx system update check.
  3. Observe "installer": "source", "latestVersion": null, "canUpdate": false, "reason": "source_checkout".

Version

2.84.0 (Windows MSI / standalone)

Operating system

Windows (Windows 11, x64)

Logs or error output

$ ocx --version
opencodex 2.84.0

$ ocx status
✅ Proxy: running (PID 24564)
   Runtime: C:\Program Files\OpenCodex\ocx.exe
   Runtime supervisor: OpenCodex Desktop (pid 14664, C:\Program Files\OpenCodex\opencodex-desktop.exe); durable owner: desktop
   Runtime source: standalone

$ ocx system update check
{ "currentVersion": "2.84.0", "latestVersion": null, "installer": "source",
  "updateAvailable": false, "canUpdate": false, "reason": "source_checkout" }

Dashboard self-update on the same install succeeded (update-watch.log):

2026-10-13 21:54:40  PROXY DOWN  desktopPid=25312  -> drain start
2026-10-13 21:54:48  DESKTOP EXIT  pid=25312 -> 0
2026-10-13 21:54:59  EXE VERSION 2.83.0 -> 2.84.0
2026-10-13 21:55:02  PROXY UP    drainSeconds=22.1  -> new process, success path

Redacted configuration

Not provider- or routing-related.

Checks

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

Activity

  1. added
    bug
    cli
    install
    platform
    on Oct 13, 2026
  2. lidge-jun commented on Oct 13, 2026

    @lidge-jun
    Owner

    Fixed on dev by #7063 (b28f23d). A standalone install (the Windows MSI or Desktop-bundled ocx.exe) is now reported as installer "standalone" with reason "standalone_install" and a hint to update through OpenCodex Desktop (Check for Updates…) or the GitHub release, instead of claiming a source checkout and suggesting git pull. The CLI does not self-update a standalone binary, so canUpdate stays false and the Desktop updater remains the update path. Ships in the next release after 2.84.0.

  3. lidge-jun commented on Oct 13, 2026

    @lidge-jun
    Owner

    Decision (maintainer): MSI/standalone installs keep receiving updates through the Desktop updater; ocx update will not self-update MSI installs. As of #7063, ocx update detects these installs and points to the Desktop updater. Closing as won't-do.

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

    bugcliinstallplatform

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions