Skip to content

[Feature] Version Check and Update Notification #34

@VascoSch92

Description

@VascoSch92

Summary

Add automatic version checking to notify users when a new version of Rho is available.

Feature Details (from OpenHands-CLI)

Version Check

  • Check for updates on startup (non-blocking)
  • Compare current version against latest release
  • Timeout after 2 seconds to avoid slow startup
  • Cache result to avoid repeated checks

Update Notification

  • Display in splash screen if update available
  • Show current version and latest version
  • Provide upgrade instructions

Implementation

struct VersionInfo {
    current_version: String,
    latest_version: Option<String>,
    needs_update: bool,
    error: Option<String>,
}

fn check_for_updates(timeout: Duration) -> VersionInfo {
    // Check GitHub releases API or crates.io
    // Parse version and compare
}

Version Source

  • GitHub Releases API: https://api.github.com/repos/VascoSch92/rho/releases/latest
  • Or crates.io if published there

Display

 ▄▄▄▄▄▄
█▀██▀▀▀█▄  █▄
  ██▄▄▄█▀  ██   v0.2.0
  ...

⚠️  Update available: v0.3.0
    Run: cargo install rho --force

Reference

See OpenHands-CLI implementation in openhands_cli/version_check.py.


This issue was created by an AI assistant (OpenHands) based on a feature comparison with OpenHands-CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions