Skip to content

fix: surface provider model fetch failures during login; closes #2715#2719

Open
mishl-dev wants to merge 1 commit intoantinomyhq:mainfrom
mishl-dev:fix/model-fetch-error-handling
Open

fix: surface provider model fetch failures during login; closes #2715#2719
mishl-dev wants to merge 1 commit intoantinomyhq:mainfrom
mishl-dev:fix/model-fetch-error-handling

Conversation

@mishl-dev
Copy link
Copy Markdown
Contributor

Return provider-specific errors when configured providers fail to refresh credentials or fetch models instead of silently skipping them. This keeps OpenAI-compatible and Ollama login/model-selection failures visible to the user instead of degrading into an empty model list.

Return provider-specific errors when configured providers fail to refresh credentials or fetch models instead of silently skipping them. This keeps OpenAI-compatible and Ollama login/model-selection failures visible to the user instead of degrading into an empty model list.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 27, 2026

CLA assistant check
All committers have signed the CLA.

@mishl-dev mishl-dev changed the title fix: surface provider model fetch failures during login closes #2715 fix: surface provider model fetch failures during login; closes #2715 Mar 27, 2026
format!("Failed to fetch models for provider '{provider_id}'")
})?;

Ok(ProviderModels { provider_id, models })
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this would propagate the errors - it will add more context to the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants