From fbfb8982cc3a7f906811c7e266cd07396b9316ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=AA=E7=A8=8B=E4=BC=9F?= Date: Wed, 15 Jul 2026 14:56:16 +0800 Subject: [PATCH] fix(agents): keep each (provider, model) unique in the preference chain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the "Edit Agent → Preferred Providers" tab the same (provider, model) combination could be selected repeatedly — e.g. two rows of the same provider both pointing at the same model, or two "provider default" rows. This is unintended: a provider may repeat across the fallback chain, but each (provider, model) should stay unique. Root cause: addProviderEntry() pushed unconditionally (the code comment even said "we never dedup here") and the model