fix: set default model after auth choice

This commit is contained in:
Peter Steinberger
2026-01-12 08:04:26 +00:00
parent b8f8e7f4dd
commit d0ba56c5ac
3 changed files with 4 additions and 1 deletions

View File

@@ -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.

View File

@@ -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({

View File

@@ -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,