Skip to content

feat: enhance ov --version to show both CLI and server versions#834

Closed
ZaynJarvis wants to merge 1 commit intovolcengine:mainfrom
ZaynJarvis:main
Closed

feat: enhance ov --version to show both CLI and server versions#834
ZaynJarvis wants to merge 1 commit intovolcengine:mainfrom
ZaynJarvis:main

Conversation

@ZaynJarvis
Copy link
Collaborator

🚀 Enhancement

Enhance the ov --version command to display both CLI and server versions for better user experience.

Changes

  • CLI Version: Show client version (ov binary)
  • Server Version: Fetch from OpenViking server /health endpoint
  • Error Handling: Clear message when server unavailable
  • Config Path: Show environment-aware ovcli.conf location

Output Example

ov version
# When server accessible:
CLI version: 0.2.6
Server version: 1.2.3

# When server unavailable:
CLI version: 0.2.6
Server: not found
Check ovcli.conf: /Users/user/.openviking/ovcli.conf

Problem Solved

Prevents user confusion about CLI vs server upgrade status. Users won't mistakenly think OpenViking server hasn't been upgraded when only the CLI is outdated.

Implementation

  • Modified crates/ov_cli/src/main.rs to add server version fetching
  • Uses existing /health endpoint for version information
  • Graceful fallback with helpful troubleshooting info

- Add CLI version display (existing behavior preserved)
- Add server version fetching from /health endpoint
- Handle server unavailable case with helpful error message
- Show environment-aware config file path for troubleshooting
- Prevent user confusion about CLI vs server version mismatch
@github-actions
Copy link

Failed to generate code suggestions for PR

@ZaynJarvis ZaynJarvis closed this Mar 21, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant