From d0ba56c5ac3159ffe796e901e63b882e8c041282 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 12 Jan 2026 08:04:26 +0000 Subject: [PATCH] fix: set default model after auth choice --- CHANGELOG.md | 1 + src/commands/configure.ts | 2 ++ src/commands/model-picker.ts | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9c82a62d..ce2464038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -78,6 +78,7 @@ - Auto-reply: allow fuzzy `/model` matches (e.g. `/model kimi` or `/model moonshot/kimi`) when unambiguous. - Auto-reply: ignore inline `/status` directives unless the message is directive-only. - CLI/Configure: enter the selected section immediately, then return to the section picker. +- CLI/Configure: apply the chosen auth model as default (skip the extra picker) and refresh the model catalog for new providers. - Auto-reply: align `/think` default display with model reasoning defaults. (#751) — thanks @gabriel-trigo. - Auto-reply: flush block reply buffers on tool boundaries. (#750) — thanks @sebslight. - Auto-reply: allow sender fallback for command authorization when `SenderId` is empty (WhatsApp self-chat). (#755) — thanks @juanpablodlc. diff --git a/src/commands/configure.ts b/src/commands/configure.ts index 67c1c0670..a703f9e2a 100644 --- a/src/commands/configure.ts +++ b/src/commands/configure.ts @@ -366,6 +366,8 @@ async function promptAuthConfig( setDefaultModel: true, }); next = applied.config; + // Auth choice already set a sensible default model; skip the model picker. + return next; } const modelSelection = await promptDefaultModel({ diff --git a/src/commands/model-picker.ts b/src/commands/model-picker.ts index 1a1a3147f..dd563f686 100644 --- a/src/commands/model-picker.ts +++ b/src/commands/model-picker.ts @@ -97,7 +97,7 @@ export async function promptDefaultModel( const resolvedKey = modelKey(resolved.provider, resolved.model); const configuredKey = configuredRaw ? resolvedKey : ""; - const catalog = await loadModelCatalog({ config: cfg }); + const catalog = await loadModelCatalog({ config: cfg, useCache: false }); if (catalog.length === 0) { return promptManualModel({ prompter: params.prompter,