Skip to content

refactor(webview): canonicalize provider model config identifiers - #1147

Open
WebMad wants to merge 1 commit into
Zoo-Code-Org:mainfrom
WebMad:refactor/944-provider-model-config-identifiers
Open

refactor(webview): canonicalize provider model config identifiers#1147
WebMad wants to merge 1 commit into
Zoo-Code-Org:mainfrom
WebMad:refactor/944-provider-model-config-identifiers

Conversation

@WebMad

@WebMad WebMad commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Extracts the provider model configuration utility changes from #1141 into a focused pull request:

  • canonicalizes provider registry keys in the settings model configuration utilities
  • canonicalizes provider comparisons, docs slugs, and custom model UI entries
  • adds focused coverage for canonical keys, Z.ai defaults, and model-change side effects

This PR is intentionally limited to webview-ui/src/components/settings/utils.

Validation

  • npx vitest run src/components/settings/utils/__tests__/providerModelConfig.spec.ts — 29 tests passed
  • pnpm check-types in webview-ui
  • ESLint with --prune-suppressions --max-warnings=0 for both changed files
  • repository pre-commit lint
  • repository pre-push type checks
  • git diff --check

Related to #944.
Extracted from #1141.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@WebMad, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 9 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2277eacf-67a9-4c03-84d5-27f6f793d458

📥 Commits

Reviewing files that changed from the base of the PR and between 0ae9217 and da51978.

📒 Files selected for processing (2)
  • webview-ui/src/components/settings/utils/__tests__/providerModelConfig.spec.ts
  • webview-ui/src/components/settings/utils/providerModelConfig.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot added the awaiting-review PR changes are ready and waiting for maintainer re-review label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR changes are ready and waiting for maintainer re-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant