pub fn resolve_agent_api_key_env(provider: &str, configured_env: &str) -> StringExpand description
Resolve the agent-wide API-key env fallback for a provider.
Unlike resolve_api_key_env, a concrete value that is another known
provider’s default is treated as a stale provider-switch remnant and is
replaced by the active provider’s default. Genuinely custom names and the
active provider’s own accepted names still win. Explicit CLI and
provider-scoped overrides must keep using resolve_api_key_env so their
intent is never second-guessed.