Skip to content

fix(review): drop the fixed gateway URL of the review dry run #5345

Closed

Description

@dan-petty

Problem Description

_get_review_llm_target in src/devops_cli/review/review_plans.py gives a fixed HTTPS gateway URL when ai.provider is gateway and ai.gateway_url is not set. So the dry-run plan of devops review path, branch, pr and benchmark names a host that no setting gave. The rule of #1165 allows no service URL that the config does not set: the code reads the setting, or it stops with an error that names the setting.

Reproduction Steps

  1. Set ai.provider: gateway, and do not set ai.gateway_url.
  2. Run uv run devops review path src --dry-run.
  3. Read the target of the planned model request.

Expected vs Actual Behavior

Environment Diagnostics

origin/main at release 0.125.4.

Logs, Traces, or Terminal Output

None.

Proposed Fix

Remove the fixed URL from _get_review_llm_target. Use the same resolution as the other model calls (ai.gateway_url), and add a test that a dry run with no ai.gateway_url names the setting. Add the module to the guard of #1165 if the guard does not read it.

Activity

  1. added
    source/agent
    type/bug
    scope/review
    status/new
    value/medium
    effort/low
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 12:38 UTC

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

    effort/lowpriority/p2-mediumscope/reviewsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions