From a087f089b8da920c4fec54e85c6178701cb6b67e Mon Sep 17 00:00:00 2001 From: Gemini Wen Date: Fri, 6 Mar 2026 20:15:42 +0800 Subject: [PATCH] fix(account): preserve existing credentials when saving apikey accounts When editing an apikey account, the credentials object was built from scratch, causing fields like tier_id that are not exposed in the UI to be silently dropped on save. Spread currentCredentials first so unknown fields are retained, then let the known fields overwrite them. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/account/EditAccountModal.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/account/EditAccountModal.vue b/frontend/src/components/account/EditAccountModal.vue index 406a3d7b..ac24f32f 100644 --- a/frontend/src/components/account/EditAccountModal.vue +++ b/frontend/src/components/account/EditAccountModal.vue @@ -2254,6 +2254,7 @@ const handleSubmit = async () => { // Always update credentials for apikey type to handle model mapping changes const newCredentials: Record = { + ...currentCredentials, base_url: newBaseUrl }