Skip to content

feat: version check — warn if binary is behind latest release #280

Closed

Description

@hurttlocker

Problem

x7 hit version/config drift where old binary didn't match repo main. New users who install via brew and forget to update will silently run stale versions.

Proposal

Add a lightweight version check:

  1. On cortex doctor, check GitHub releases API for latest tag
  2. If current binary is behind, print: Update available: v1.2.0 → v1.3.0. Run 'brew upgrade cortex' or download from github.com/hurttlocker/cortex/releases
  3. Cache the check result for 24h (don't hit GitHub on every command)
  4. Never block — just inform. The tool should always work offline.

Also: make config precedence explicit in cortex doctor output:

Config precedence: flag > env > config file > default
  llm.provider: grok (source: config file)
  llm.apiKey: ****xxxx (source: env GROK_API_KEY)
  embed.model: ollama/nomic-embed-text (source: default)

Acceptance Criteria

  • cortex doctor shows version comparison when online
  • 24h cache so it doesn't spam GitHub API
  • Config provenance shown in doctor output
  • Works fully offline (skips check gracefully)

Part of the v1.3 adoption sprint.

Activity

  1. added
    enhancement
    on Mar 1, 2026
  2. added a commit that references this issue on Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions