Skip to content

[Bug]: PATH ocx package can be older than the running launchd proxy (help/features lie) #2701

Closed

Description

@lidge-jun

Area

CLI / service lifecycle

What are you trying to accomplish?

The ocx binary on PATH should match the running launchd proxy, or doctor/status should scream when it does not.

Current state

On macOS:

  • PATH ocx -> ~/.bun/bin/ocx -> ~/node_modules/@bitkyc08/opencodex (2.30.0-preview.20260821)
  • launchd com.opencodex.proxy runs nvm global 2.33.0

ocx usage --help from PATH still prints range 7d|30d|all and omits --provider/--model. 2.33.0 registry.ts already documents today|1d and those flags. Operators debug the running proxy with an older CLI.

ocx status reports proxy version via healthz (2.33.0) but does not warn that the invoking CLI package is 2.30.0-preview.

Proposed

  • ocx doctor / ocx status: compare process.argv CLI package version to GET /healthz version; warn on mismatch.
  • Document that service install does not replace ~/.bun/bin/ocx.

Version

CLI 2.30.0-preview.20260821 vs proxy 2.33.0

Activity

  1. added
    bug
    cli
    service
    on Aug 26, 2026
  2. added
    platform
    on Aug 26, 2026
  3. lidge-jun commented on Aug 26, 2026

    @lidge-jun
    OwnerAuthor

    리뷰 · 우선순위 62 / 80

    설명

    이 이슈는 PATH 의 ocx 패키지 버전이 launchd 로 돌아가는 프록시 버전과 어긋날 때 help/features 가 구버전 기준이라 운영자가 잘못된 CLI 로 신버전 프록시를 디버깅하는 문제를 보고합니다. 재현 예: PATH 2.30.0-preview vs 프록시 2.33.0. 구버전 help 는 range 7d|30d|all 만 보여 주고 --provider/--model 을 빠뜨립니다.

    current dev 의 ocx status(src/cli/status.ts) 는 /healthz 로 프록시 버전을 보여 주지만, 호출 중인 CLI 패키지 버전과 비교해 경고하지 않습니다. ocx doctor 도 Codex runtime/Bun/Orca home 쪽 불일치는 다루지만 PATH ocx vs 서비스 패키지 비교는 없습니다. 서비스 설치가 ~/.bun/bin/ocx 를 갈아끼우지 않는다는 문서화 요청도 타당합니다.

    기능 누락이라기보다 운영 함정입니다. #2696 계열과 같은 로컬 설치 혼란을 키웁니다. checkout package.json 은 2.32.1-preview.20260825 입니다. types.ts/config.ts 분할로 닫을 대상이 아닙니다. 미리보기 배포는 계획에 없습니다.

    src/cli/status.ts - healthz 버전만 표시하고 CLI 패키지와 비교하지 않습니다
    src/cli/doctor.ts - PATH ocx vs 서비스 패키지 mismatch 검사가 없습니다
    경로/심볼 - help 텍스트가 구버전 CLI 레지스트리를 그대로 인쇄합니다
    경로/심볼 - 서비스 install 이 bun 글로벌 심볼릭을 갱신하지 않을 수 있습니다
    경로/심볼 - 문서에 install 이 PATH 를 교체하지 않음을 명시할 필요가 있습니다

    메인테이너의 판단이 필요한 지점

    • status 에 경고만 할지 doctor 실패로 승격할지 정해야 합니다
    • 버전 문자열 비교 규칙(preview 접미사)을 어떻게 할지 정해야 합니다
    • 서비스 install/repair 가 PATH 심링크를 고칠지 문서만 할지 정해야 합니다

    너의 추천

    열어 두세요. ocx status/doctor 에 CLI package version vs /healthz version 경고를 넣고, 서비스 설치가 PATH 를 바꾸지 않음을 README/doctor 힌트에 적으세요. #2696 과 같은 로컬 운영 묶음으로 보면 좋습니다. 미리보기 배포는 계획에 없습니다.

    이 댓글은 grok-bot이 작성했습니다

  4. added a commit that references this issue on Aug 27, 2026
    104a604
  5. added 2 commits that reference this issue on Aug 28, 2026
    3216932
    efaf2d9
  6. added 2 commits that reference this issue on Sep 14, 2026
    eb71e84
    291bb42
  7. added 2 commits that reference this issue on Sep 17, 2026
    4e5d10d
    a12a73b
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

    bugcliplatformservice

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions