Skip to content

feat(cli): add version check to agentv studio/serve commands #1128

@christso

Description

@christso

Problem

agentv eval checks required_version from .agentv/config.yaml and prompts the user to update if there's a mismatch (#1125, merged in #1126). However, agentv studio and agentv serve do not perform this check — they launch silently even if the installed version doesn't satisfy the project's requirement.

Desired behavior

When agentv studio or agentv serve is run in a repo with .agentv/config.yaml containing required_version:

  • Interactive (TTY): Same "Update now? (Y/n)" prompt as agentv eval
  • Non-interactive: Warn to stderr, continue

This covers the primary use case: a developer running Studio locally in a single project.

Scope

Files to change

  • apps/cli/src/commands/results/serve.ts — add enforceRequiredVersion() call before starting the server, similar to run-eval.ts:988-992

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    in-progressClaimed by an agent — do not duplicate work

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions