Files
coder/coderd/database/queries
Michael Suchacz a970c6c92e fix: list one Unknown AI Gateway client for missing and literal values (#29635)
`ListAIBridgeClients` grouped by the raw `client` column while selecting
`COALESCE(client, 'Unknown')`, so interceptions with no client and
interceptions whose client is literally `Unknown` produced two identical
`Unknown` entries in the client filter. Group by the coalesced value
instead.

## Validation

`go test ./enterprise/coderd -run '^TestAIBridgeListClients$'` (adds an
interception with a literal `Unknown` client and expects a single
entry), `make gen` with no drift (regenerates `queries.sql.go` and
`querier.go`).

Split out of #28964, where the spend page's client filter surfaced it.

> Xum prepared this PR on behalf of @ibetitsmike.
2026-09-21 18:03:22 +02:00
..
…
…

queries

Database queries are generated using sqlc. See: sqlc docs

Run make gen to generate models and query functions.