Skip to content

ocr shows update nudge despite being the latest version #697

Description

@philippgille

OpenCodeReview Version

open-code-review v1.8.6 (1b193db) darwin/arm64 built at: 2026-08-03T06:43:12Z

Operating System

macOS (Apple Silicon)

Installation Method

npm (global)

LLM Provider

Other OpenAI-compatible endpoint

Bug Description

For any command I run, even ocr version, I see the nudge to update to a newer version, despite being on the latest version.

Example copy pasted from my terminal just now:

$ ocr version
[ocr] A new version (v1.8.6) is available. Run to update:
  npm i -g @alibaba-group/open-code-review@1.8.6

open-code-review v1.8.6 (1b193db35) darwin/arm64
built at: 2026-08-03T06:43:12Z
https://github.com/alibaba/open-code-review

Steps to Reproduce

I'm using asdf to manage my Node version. I'm not repeating the asdf/Node install steps, but here's the commands afterwards:

$ asdf current
Name            Version         Source                        Installed
elixir          ______          ______
nodejs          24.18.1         /Users/philipp/.tool-versions true
[...]

$ npm i -g --min-release-age=0 @alibaba-group/open-code-review@latest
changed 2 packages in 2s
Reshimming asdf nodejs...

$ ocr version
[ocr] A new version (v1.8.6) is available. Run to update:
  npm i -g @alibaba-group/open-code-review@1.8.6

open-code-review v1.8.6 (1b193db35) darwin/arm64
built at: 2026-08-03T06:43:12Z
https://github.com/alibaba/open-code-review

Expected Behavior

When I'm on version v1.8.6 then I expect to not get a nudge to install v1.8.6

Logs / Error Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions