From b9e357c082efdbb1c94d2ab94707089ed995c1b2 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Tue, 18 Aug 2026 19:29:16 -0700 Subject: [PATCH] [eric] models: heal ALREADY-stranded haiku defaults too, not just at migration time; Eric's own dev install carried one (ENG-343) --- backend/apps/settings/store.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/apps/settings/store.py b/backend/apps/settings/store.py index c918a24b..df712018 100644 --- a/backend/apps/settings/store.py +++ b/backend/apps/settings/store.py @@ -87,6 +87,9 @@ def migrate_legacy_fields(raw: dict) -> dict: # The free lane's forced Haiku default must not outlive the lane (ENG-343): dropping the field lets the real default take over. if raw.get("default_model") == "haiku": raw.pop("default_model", None) + # Installs migrated BEFORE the line above shipped are already own_key with haiku stranded as their global default (Eric's own dev install had it); nobody wants haiku as a durable default, per-session picks stay untouched. + if raw.get("default_model") == "haiku" and raw.get("connection_mode") != "free-trial": + raw.pop("default_model", None) return raw