chore(frontend): remove vestigial AI Gateway v1 references#2403
chore(frontend): remove vestigial AI Gateway v1 references#2403malinskibeniamin merged 4 commits intomasterfrom
Conversation
The old AI Gateway v1 UI was removed from Console in #2155 (Jan 2026) but a dev proxy and two buf-generated npm packages remained. Drop them. Removed: - Dev proxy block for `/.redpanda/api/redpanda.api.aigateway.v1` in rsbuild.config.ts - `AI_GATEWAY_URL` env var export in start-cloud.sh (and cluster-id regex helper it depended on) - `@buf/redpandadata_ai-gateway.bufbuild_es` / `@buf/redpandadata_ai-gateway.connectrpc_query-es` deps Preserved: - AI Gateway v2 (`aigw`) proxy, hooks, query layer, agent pages - Scope.AI_GATEWAY secret scope (semantically v2 now) - Deprecated `virtualGatewayId` field in `AIAgent.GatewayConfig` proto — backend contract stays Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@claude review |
|
Claude finished @malinskibeniamin's task in 1m 11s —— View job Code Review
Overall: This is a clean, well-scoped deletion-only PR. The logic of what's removed is sound — no source files import the dropped packages, the v2 aigw wiring is untouched, and the One issue: lock files not regeneratedBoth
The test plan already calls for Minor observations (no action needed)
SummaryThe code changes themselves are correct and complete. The only gap is the uncommitted lock file regeneration. Once that's addressed this is ready to merge. |
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@claude review |
|
Claude finished @malinskibeniamin's task in 1m 1s —— View job Code Review
Overall: This is a clean, correct, deletion-only PR. The previous review flagged uncommitted lockfile regeneration — that has been addressed in follow-up commit Changes reviewed
Confirmed: no source files under
No issues foundThe v1 cleanup is complete. No remaining references to AI Gateway v1 exist in source files, config, scripts, or lock files. AI Gateway v2 wiring is untouched. This is ready to merge. |
…via ADP UI The /.aigw/api dev proxy is removed. Console does not call AI Gateway (v1 or v2) directly anymore; ADP UI (hosted inside Cloud UI) owns all AIGW interaction going forward. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@claude review |
|
Claude finished @malinskibeniamin's task in 2m 3s —— View job Code Review
Overall: This is a clean, complete cleanup. The issue from the previous review (lock files not regenerated) has been addressed across commits Previous issue — resolvedBoth Commit
|
…me AIGW via ADP UI" Per reviewer feedback on #2403: the aigw v2 (`/.aigw/api`) dev proxy stays. It powers Console's own aigw v2 API calls (LLMProviderService, ModelService) used by the agent pages. Only the v1 proxy is removed in this PR. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
AI_GATEWAY_URLenv helper)./.aigw/apidev proxy, v2 transport hook, v2 query hooks, and the agent pages that depend on them all stay.What's removed
/.redpanda/api/redpanda.api.aigateway.v1infrontend/rsbuild.config.ts(v1 only)AI_GATEWAY_URLenv var export infrontend/start-cloud.sh(plus the cluster-id regex helper it fed)@buf/redpandadata_ai-gateway.bufbuild_esand@buf/redpandadata_ai-gateway.connectrpc_query-esdependenciesbun.lock,yarn.lock)What's preserved
/.aigw/api) inrsbuild.config.ts— still gated onAIGW_URLenv varuseAigwTransport,useListLLMProvidersQuery,useListAigwMCPServersQueryand the agent-page call sitesScope.AI_GATEWAYsecret scope label — semantically refers to stored credentials scoped to AIGW accessvirtualGatewayIdfield inAIAgent.GatewayConfigproto — backend contract staysCompanion PR
cloudv2 cleanup (kills the old AI Gateway front-end embedded under
/clusters/:id/ai-gatewayin Cloud UI): https://github.com/redpanda-data/cloudv2/pull/25788Test plan
bun i && bun i --yarninfrontend/— lockfiles stay cleanbun run start:cloud <backend-url>— dev server starts; aigw v2 proxy still routes whenAIGW_URLis setbun run test— existing agent/secret suites still passGenerated with Claude Code