From 0a32fb899f808a5fa91472b4e8c066bdbace8d9f Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Sat, 27 Jun 2026 04:33:02 +0000 Subject: [PATCH] fix(onboarding): rehydrate plain-select fallback so saved model isn't reset to option[0] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Codex gate finding on #5031: when _mountSearchableModelSelect is absent the fallback returns the old plain so a saved/default model that isn't the first option isn't + // silently replaced by option[0] on render. + const modelSel=$('onboardingModelSelect'); + if(modelSel && ONBOARDING.form.model) modelSel.value=ONBOARDING.form.model; } return; } diff --git a/tests/test_issue1362_codex_oauth_onboarding.py b/tests/test_issue1362_codex_oauth_onboarding.py index ef0a7c71..2b9b69bb 100644 --- a/tests/test_issue1362_codex_oauth_onboarding.py +++ b/tests/test_issue1362_codex_oauth_onboarding.py @@ -611,6 +611,20 @@ def test_onboarding_non_custom_provider_mounts_searchable_model_picker(): assert "customInputId:'onboardingModelInput'" in js +def test_onboarding_plain_select_fallback_rehydrates_saved_model(): + """When the searchable picker helper is unavailable, the plain