Skip to content

fix(version): stop reporting false version mismatch - #91

Merged
tupe12334 merged 1 commit into
mainfrom
fix/version-status-no-false-mismatch
Oct 19, 2026
Merged

tupe12334 merged 1 commit into
mainfrom
fix/version-status-no-false-mismatch

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Bug

centy version set Status to Version mismatch whenever daemonVersion !== cliVersion.
The CLI (0.8.x) and the daemon (centy-daemon, 0.15.x) ship separately with independent version numbers.
So every user saw a false mismatch, even on a fully current setup.

Verified with the published centy@0.8.5 against daemon 0.15.1:

CLI: 0.8.5
Daemon: 0.15.1
Status: Version mismatch

Design

  • The command still prints both versions.
  • Status reports only whether the daemon is reachable: Running when the daemon answers, Not running otherwise.
  • The JSON output keeps the same keys (cli, daemon, status). Only the status values change (Up to date / Version mismatch become Running).

Changes

  • src/commands/version.ts: drop the equality check; set Running on success.
  • src/commands/version.spec.ts: update status assertions; a daemon with a different version now yields Status: Running and no mismatch; the unreachable daemon case still yields Not running.

Other places checked

  • bin/run.js (--version): prints versions only, no verdict. Unchanged.
  • src/hooks/prerun.ts and src/daemon/daemon-get-project-version.ts: compare the project's centy version to the daemon with a semver "behind" check, not equality. Unchanged.
  • No docs, README or other command mention Up to date or Version mismatch.

🤖 Generated with Claude Code

The CLI and the daemon ship with independent version numbers, so
comparing them reported 'Version mismatch' on every healthy setup.
Status now reports only whether the daemon is reachable: 'Running'
or 'Not running'. Both versions are still printed. The JSON keys are
unchanged; only the status values changed.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@tupe12334
tupe12334 merged commit cecba3c into main Oct 19, 2026
10 checks passed
@tupe12334
tupe12334 deleted the fix/version-status-no-false-mismatch branch October 19, 2026 13:28
@tupe12334 tupe12334 mentioned this pull request Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant