Skip to content

Release AdClaw v1.0.31 provider priority fix#95

Merged
nttylock merged 1 commit into
mainfrom
fix/adclaw-ai-provider-priority-1.0.31
May 31, 2026
Merged

Release AdClaw v1.0.31 provider priority fix#95
nttylock merged 1 commit into
mainfrom
fix/adclaw-ai-provider-priority-1.0.31

Conversation

@nttylock

Copy link
Copy Markdown
Member

Summary

  • bump package version to 1.0.31 for release
  • keep AdClaw AI first in the Models provider list for hosted workspaces
  • add regression coverage for an existing custom provider ordering case

Tests

  • PYTHONPATH=/root/adclaw-public/src pytest -q /root/adclaw-public/tests/test_adclaw_ai_usage.py

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@nttylock
nttylock merged commit bd184c6 into main May 31, 2026
7 checks passed
@nttylock
nttylock deleted the fix/adclaw-ai-provider-priority-1.0.31 branch May 31, 2026 22:50
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.

1 participant