feat: filter interceptions and sessions by provider name - #25640
Merged
Merged
Conversation
Contributor
Docs preview📖 View docs preview for |
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Adds a provider_name filter to the AIBridge interceptions and sessions
list APIs that matches the per-row provider_name snapshot on
aibridge_interceptions. The existing provider filter (matching the
provider type column) is retained for backward compatibility; the SDK,
CLI (--provider, --provider-name), and q-string ("provider:" and
"provider_name:") accept both keys.
The provider_name parser validates the value against ai_providers.name
and errors on unknown names so typos surface at the API rather than
returning empty results. The frontend provider dropdown now populates
from GET /api/v2/ai/providers and writes provider_name: into the URL
filter.
Locks ai_providers.name immutability with TestAIProvidersCRUD/
UpdateCannotMutateName, which posts a raw JSON body containing a
"name" key and asserts the PATCH endpoint ignores it. The SDK type
and SQL update path already omit the field; this test pins the
invariant so a future field addition can't silently make names
mutable. Name immutability is a precondition for any later FK
backfill from aibridge_interceptions.provider_name to ai_providers.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
dannykopping
force-pushed
the
dk/aibridge-filter-by-provider-name
branch
from
May 25, 2026 09:28
14e6157 to
433c9fa
Compare
dannykopping
marked this pull request as ready for review
May 25, 2026 09:30
Contributor
Documentation CheckUpdates Completed
StatusAll documentation updates for the new
Updated review: PR updated with new commits. Documentation changes remain consistent with previous review. No additional documentation needs identified. Automated review via Coder Agents |
johnstcn
approved these changes
May 25, 2026
jakehwll
approved these changes
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Allows filtering sessions & interceptions by provider name, and adds a test to vaidate that provider name is immutable (at least until #25606 lands).