From b3eb7194c29e82ae3738fec14eaec4164d6806cd Mon Sep 17 00:00:00 2001 From: haruka <1628615876@qq.com> Date: Thu, 29 Oct 2026 14:46:08 -0400 Subject: [PATCH] fix(frontend): truncate long MCP client IDs Signed client IDs are now about 200 characters. Show them on one line on the consent page and in the connection list, with the full value in the title. The random part leads, so truncated IDs still differ. Co-Authored-By: Claude Opus 5.5 --- frontend/src/views/auth/MCPOAuthAuthorizeView.vue | 2 +- frontend/src/views/user/MCPView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/auth/MCPOAuthAuthorizeView.vue b/frontend/src/views/auth/MCPOAuthAuthorizeView.vue index adf9e67bfc..065a739272 100644 --- a/frontend/src/views/auth/MCPOAuthAuthorizeView.vue +++ b/frontend/src/views/auth/MCPOAuthAuthorizeView.vue @@ -23,7 +23,7 @@
{{ t('mcp.clientId') }}
-
{{ consent.client_id }}
+
{{ consent.client_id }}
{{ t('mcp.returnAddress') }}
diff --git a/frontend/src/views/user/MCPView.vue b/frontend/src/views/user/MCPView.vue index 2007332fbc..3c50ca1d51 100644 --- a/frontend/src/views/user/MCPView.vue +++ b/frontend/src/views/user/MCPView.vue @@ -51,7 +51,7 @@ {{ grant.read_only ? t('mcp.readOnly') : t('mcp.readWrite') }} {{ grantStatus(grant) }}
-

{{ grant.client_id }}

+

{{ grant.client_id }}

{{ t('mcp.createdAt', { date: formatDate(grant.created_at) }) }} {{ t('mcp.expiresAt', { date: formatDate(grant.expires_at) }) }}