OpenSpec icon indicating copy to clipboard operation
OpenSpec copied to clipboard

`openspec version --check` can offer a version that `openspec install` can't get yet

Open TabishB opened this issue 1 month ago • 0 comments

openspec version --check gets the latest version from npm, but openspec install gets it from GitHub releases. Right after a release, they don't agree.

The standalone files are attached to a GitHub release a few minutes after it's published. During that time, the check says there's a new version, and the install can't get it yet.

Example

Someone on the standalone install, during those few minutes:

$ openspec version --check
OpenSpec 1.16.0 (standalone)
Update available: 1.17.0
  openspec install

$ openspec install
1.17.0 is still being prepared; installing 1.16.0.

The install exits with 0, and they still have 1.16.0. The output does say why, but a script only sees that the install worked and the version didn't change.

If the files never get attached because the release job failed, this doesn't clear up by itself. The check keeps offering a version that the install can't get.

What should change

For a standalone install, version --check should report the newest release that has all its files, the same one openspec install would pick.

TabishB avatar Oct 31 '26 05:10 TabishB