Allow custom provider endpoint edits#1007
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughProvider editing no longer validates saved-conversation dependencies when changing provider endpoints. Session reference resolution is consolidated into label-based provider matching, and tests are updated for referenced IDs and persisted mode selection. ChangesProvider reference validation
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Code Review
This pull request removes the logic and validation that blocks provider endpoint rewrites based on saved conversations. Specifically, it deletes several helper functions such as isProviderEndpointRewriteBlockedBySavedConversations and isProviderReferencedBySessionsViaUrl from api-modes-provider-utils.mjs, cleans up the corresponding state and UI validation in ApiModes.jsx, and removes their associated unit tests. I have no feedback to provide as there are no review comments.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (27 files)
Note: Incremental review over previous SHA Previous Review Summary (commit ecc1d44)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit ecc1d44)Status: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by hy3:free · Input: 69.5K · Output: 4.2K · Cached: 430.8K |
PR Summary by QodoAllow editing custom provider endpoints even when saved conversations exist
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
There was a problem hiding this comment.
Pull request overview
This PR removes the “endpoint rewrite” save-guard that previously prevented editing a custom provider’s Chat Completions endpoint when saved conversations could still resolve to that provider. It keeps provider deletion protection tied to “is referenced by API modes or saved conversations” and to the “saved conversations loaded” state, while allowing endpoint edits to proceed.
Changes:
- Removed the saved-conversation-based endpoint rewrite blocker and its related helper logic from provider utilities.
- Simplified provider editor validation in the popup UI to validate only provider name + endpoint URL (no saved-conversation guard).
- Deleted the corresponding unit tests for the removed guard logic and updated remaining tests accordingly.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/unit/popup/api-modes-provider-utils.test.mjs | Removes unit tests for the deleted endpoint rewrite guard and updates remaining session-recovery expectations. |
| src/popup/sections/ApiModes.jsx | Removes the UI validation that blocked saving provider endpoint edits due to saved conversations; keeps delete protection logic intact. |
| src/popup/sections/api-modes-provider-utils.mjs | Deletes the now-unused endpoint rewrite guard helpers and related URL-based session reference checker used only for that guard. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Review by Qodo
1.
|
Stop blocking custom provider endpoint updates just because saved conversations still reference the provider. Keep delete protection tied to API modes and saved conversations, while removing the now-unused endpoint rewrite guard and its tests.
ecc1d44 to
072e756
Compare
|
Code review by qodo was updated up to the latest commit 072e756 |
There was a problem hiding this comment.
Code Review
This pull request removes the 'isProviderEndpointRewriteBlockedBySavedConversations' function and its associated helper methods, along with the corresponding unit tests. This cleanup simplifies the provider endpoint validation logic by removing the dependency on saved conversation checks. I have no further feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Stop blocking custom provider endpoint updates just because saved conversations still reference the provider.
Keep delete protection tied to API modes and saved conversations, while removing the now-unused endpoint rewrite guard and its tests.
Summary by CodeRabbit
New Features
Bug Fixes