Skip to content

refactor(webview): migrate provider identifiers in UI hooks - #1148

Open
WebMad wants to merge 1 commit into
Zoo-Code-Org:mainfrom
WebMad:refactor/944-webview-ui-hooks-provider-migration
Open

refactor(webview): migrate provider identifiers in UI hooks#1148
WebMad wants to merge 1 commit into
Zoo-Code-Org:mainfrom
WebMad:refactor/944-webview-ui-hooks-provider-migration

Conversation

@WebMad

@WebMad WebMad commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Extracts the webview-ui/src/components/ui/hooks portion of #1141 into a focused pull request:

  • canonicalizes provider checks and router-model keys in useSelectedModel
  • canonicalizes Zoo Gateway router-model synchronization
  • adds focused useSelectedModel coverage for dynamic, retired, local, and router-backed providers

These changes have been removed from #1141.

Related to #944.

Validation

  • repository pre-commit lint passed
  • repository pre-push type checks passed

@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: 3 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: 8609716f-991f-4058-97c5-7260c40abd65

📥 Commits

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

📒 Files selected for processing (3)
  • webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts
  • webview-ui/src/components/ui/hooks/useSelectedModel.ts
  • webview-ui/src/components/ui/hooks/useZooGatewayRouterModelsSync.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