From c7e88ffcf15c5663f5a797c5af22a0ab2228a993 Mon Sep 17 00:00:00 2001 From: erio Date: Fri, 6 Mar 2026 17:46:00 +0800 Subject: [PATCH] feat: extend client affinity to all Anthropic account types - Backend: expand IsClientAffinityEnabled() to support all Anthropic accounts (OAuth/SetupToken/APIKey), not just OAuth/SetupToken - Frontend: show client affinity toggle for all Anthropic accounts - Frontend: fix save logic to properly chain extra field updates - Antigravity accounts explicitly excluded from client affinity Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/account/EditAccountModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/account/EditAccountModal.vue b/frontend/src/components/account/EditAccountModal.vue index aca86a7790..bd91081b7b 100644 --- a/frontend/src/components/account/EditAccountModal.vue +++ b/frontend/src/components/account/EditAccountModal.vue @@ -2243,7 +2243,7 @@ const handleSubmit = async () => { // For all Anthropic accounts, handle client_affinity in extra if (props.account.platform === 'anthropic') { - const currentExtra = (updatePayload.extra as Record) || (props.account.extra as Record) || {} + const currentExtra = (props.account.extra as Record) || {} const newExtra: Record = { ...currentExtra } if (clientAffinityEnabled.value) { newExtra.client_affinity_enabled = true