Repository navigation
fix(version): stop reporting false version mismatch - #91
Merged
Merged
Conversation
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>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
centy versionsetStatustoVersion mismatchwheneverdaemonVersion !== 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.5against daemon0.15.1:Design
Statusreports only whether the daemon is reachable:Runningwhen the daemon answers,Not runningotherwise.cli,daemon,status). Only thestatusvalues change (Up to date/Version mismatchbecomeRunning).Changes
src/commands/version.ts: drop the equality check; setRunningon success.src/commands/version.spec.ts: update status assertions; a daemon with a different version now yieldsStatus: Runningand no mismatch; the unreachable daemon case still yieldsNot running.Other places checked
bin/run.js(--version): prints versions only, no verdict. Unchanged.src/hooks/prerun.tsandsrc/daemon/daemon-get-project-version.ts: compare the project's centy version to the daemon with a semver "behind" check, not equality. Unchanged.Up to dateorVersion mismatch.🤖 Generated with Claude Code