Skip to content

πŸ› Confusing unused _cli_api_key parameter in load_config()Β #75

Description

@ajianaz

Description

load_config() in src/config/loader.rs:222 accepts _cli_api_key: Option<&str> but completely ignores it. The CLI API key is only used later in build_llm_config(). The documented priority chain (CLI β†’ env β†’ config β†’ global β†’ defaults) does NOT apply to API keys during config loading.

Impact

Not a bug β€” build_llm_config() handles it correctly. But the parameter is misleading dead code.

Suggested Fix

Remove the parameter from load_config() or add a comment explaining why it's intentionally unused.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions