[Bug]: Windows Desktop auto-update advances the GUI to 2.100.5 but leaves the npm-installed CLI and managed runtime on 2.100.3

Abierto
#8,938 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bun, node.js, typescript

Línea de trabajo

Start by reading the Windows service wrapper generated by ocx service install; the report says it launches the npm package path, while the Desktop updater installs a separate MSI. Trace the updater and service installation entry points to see how their runtime versions are selected. Done means the normal update path keeps the supervised CLI and Desktop runtime aligned, or clearly reports and guides the user through a version mismatch.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug gui install platform service
Client or integration

OpenCodex dashboard

Area

Installation or packaging

Summary

On Windows, the Desktop in-app updater installed 2.100.4 and then 2.100.5, but the npm-installed CLI (@bitkyc08/opencodex) and the managed background service that actually serves the dashboard stayed on 2.100.3.

After the update the two halves disagree:

  • opencodex-desktop.exe and the bundled ocx.exe report 2.100.5
  • opencodex --version reports 2.100.3
  • GET /healthz on the running proxy reports "version":"2.100.3"

So the GUI runs ahead of the runtime it drives. The desktop UI showed anomalies right after the update (user-observed incorrect interface behaviour) and only behaved again once both sides were the same version.

Expected: a Desktop update also updates the npm-installed CLI/runtime it supervises, or the Desktop explicitly refuses to attach to a runtime on a different version and tells the user what to run. A GUI/runtime version skew should not be reachable through the normal update path.

Reproduction
  1. Windows, install Desktop 2.100.3 from the official MSI and install the background service (ocx service install). The service wrapper %USERPROFILE%\.opencodex\opencodex-service.cmd launches the npm package runtime:

    • OCX_BUN=%APPDATA%\npm\node_modules\@bitkyc08\opencodex\node_modules\bun\bin\bun.exe
    • OCX_CLI=%APPDATA%\npm\node_modules\@bitkyc08\opencodex\src\cli\index.ts
  2. Let the Desktop updater install subsequent releases. Registry evidence of the updater being the installer:

    DisplayName    : OpenCodex
    DisplayVersion : 2.100.5
    InstallDate    : 20261119
    InstallSource  : C:\Users\<user>\AppData\Local\Temp\OpenCodex-2.100.5-updater-AJPDJi\
    

    %TEMP%\OpenCodex-2.100.4-updater-* and %TEMP%\OpenCodex-2.100.5-updater-* both contain only the downloaded MSI.

  3. Compare the four version surfaces:

    > (Get-Item "E:\APP\opencodex\opencodex-desktop.exe").VersionInfo.FileVersion
    2.100.5
    > ocx --version          # bundled next to the Desktop exe
    opencodex 2.100.5
    > opencodex --version     # npm global
    opencodex 2.100.3
    > curl http://127.0.0.1:10100/healthz
    {"status":"ok","service":"opencodex","version":"2.100.3", ...}
    
  4. opencodex status still reports the runtime as the npm package:

    Proxy: running (PID ...)
    Runtime: C:\Users\<user>\AppData\Roaming\npm\node_modules\@bitkyc08\opencodex\node_modules\bun\bin\bun.exe
    Runtime source: bundled
    

    and %USERPROFILE%\.opencodex\version.json says {"latest_version":"2.100.5"} while the CLI serving it is 2.100.3.

Workaround that restored a consistent state (all four surfaces at 2.100.5):

Stop-ScheduledTask -TaskName "opencodex-proxy"
# stop the Desktop and the bun runtime
npm install -g @bitkyc08/opencodex@latest
Start-ScheduledTask -TaskName "opencodex-proxy"
# relaunch the Desktop
Version

Desktop 2.100.5 (auto-updated from 2.100.3 via 2.100.4); npm @bitkyc08/opencodex CLI left at 2.100.3

Operating system

Windows 11 Pro, build 26200, x64

Logs or error output
[2026/11/19 11:41:18.45] opencodex service wrapper start
bun="C:\Users\<user>\AppData\Roaming\npm\node_modules\@bitkyc08\opencodex\node_modules\bun\bin\bun.exe"
bun_source="bundled"
cli="C:\Users\<user>\AppData\Roaming\npm\node_modules\@bitkyc08\opencodex\src\cli\index.ts"

The wrapper generated by ocx service install hardcodes the npm package path, so a Desktop-only MSI update cannot move the service onto the new runtime.

Screenshots and supporting files

None.

Redacted configuration

Not configuration-dependent; no providers or credentials are relevant to this report.

Checks
  • I searched existing issues and documentation. Related but different: #8246 covers an MSI leaving the previous runtime serving; here the MSI did update its own bundle, and the npm-installed package was never updated at all.
  • I removed secrets, tokens, account details, request credentials, and personal data.
Lenguaje dominante
TypeScript
Estrellas
16.9k
Forks
1.3k
Merge medio
1 d 4 h
PR fusionados (30 d)
814

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lidge-jun/opencodex

Todos los issues de lidge-jun/opencodex

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.