Release AdClaw v1.0.31 provider priority fix#95
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b0074a16da
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| data = load_providers_json() | ||
| return [_build_provider_info(p, data) for p in list_providers()] | ||
| providers = [_build_provider_info(p, data) for p in list_providers()] | ||
| return sorted(providers, key=_provider_info_sort_key) |
There was a problem hiding this comment.
Preserve registry provider priority after Host AI
When the custom Host AI provider is present (or even absent), this second sort reorders every non-Host provider alphabetically, discarding the priority order already returned by list_providers() via _PROVIDER_ORDER (and asserted by test_xiaomi_provider_sorted_first). In the normal built-in provider list this moves Xiaomi from the configured first position behind alphabetically earlier providers, so the Models UI no longer reflects the registry’s intended/default provider priority; only Host AI should be lifted while preserving the existing order for the rest.
Useful? React with 👍 / 👎.
Summary
Tests