From e60c7a66d41aed470078d5b6f1335c876337710a Mon Sep 17 00:00:00 2001 From: Arthur Breitman Date: Thu, 18 Jun 2026 21:33:36 +0000 Subject: [PATCH] fix(web): show Edit button for gitlab connections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitLab uses a personal access token (no OAuth refresh / no Re-authenticate flow), so when a gitlab connection lands in status=reauth_required (e.g. token revoked or expired and Validate returned ErrNeedsReauth) the operator had no remedy: the Re-authenticate button is google-only and the Edit button was gated on http_proxy / mcp_proxy / github. Add gitlab to the Edit-button condition. GitLab's connector Meta() already declares both fields (token + base_url) as Editable=true, so the generic data-driven /connections/{id}/edit page is the right landing place — the operator pastes a fresh PAT, saves, and the update flows through the existing UpdateConfig path which clears reauth_required on success. Co-Authored-By: Claude Opus 4.7 (1M context) --- internal/web/templates/connections.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/templates/connections.html b/internal/web/templates/connections.html index b7863ba..2bba77a 100644 --- a/internal/web/templates/connections.html +++ b/internal/web/templates/connections.html @@ -77,7 +77,7 @@

Active {{end}} - {{if or (eq .ConnectorType "http_proxy") (eq .ConnectorType "mcp_proxy") (eq .ConnectorType "github")}} + {{if or (eq .ConnectorType "http_proxy") (eq .ConnectorType "mcp_proxy") (eq .ConnectorType "github") (eq .ConnectorType "gitlab")}} Edit