Skip to content

doctor: false llm_provider warning even when llm.provider is configured #301

Closed

Description

@hurttlocker

Problem

cortex doctor reports:

  • ! resolved_config llm_provider not resolved

...even when ~/.cortex/config.yaml explicitly contains:

llm:
  provider: openrouter

and valid provider keys are detected in the same doctor run.

Repro

  1. Set ~/.cortex/config.yaml with llm.provider: openrouter.
  2. Ensure OPENROUTER_API_KEY is available.
  3. Run cortex doctor.

Observed

  • warning: llm_provider not resolved
  • pass: llm_keys configured: google, openrouter

Expected

If provider is configured (or can be inferred from available keys/env), resolved_config should pass or provide a specific mismatch reason.

Why it matters

This creates false negative health signals and reduces operator trust in doctor during incident triage.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions