fix: format default model label as 'model · provider' for consistency

The default option showed 'Default (openai/gpt-5.2)' while individual
options used the friendlier 'gpt-5.2 · openai' format.
This commit is contained in:
Christopher Chamaletsos 2026-03-15 21:05:24 +02:00 committed by Peter Steinberger
parent c0237d8544
commit 5cc35a2e95

View File

@ -592,7 +592,10 @@ function renderChatModelSelect(state: AppViewState) {
currentOverride,
defaultModel,
);
const defaultLabel = defaultModel ? `Default (${defaultModel})` : "Default model";
const defaultDisplay = defaultModel.includes("/")
? `${defaultModel.slice(defaultModel.indexOf("/") + 1)} · ${defaultModel.slice(0, defaultModel.indexOf("/"))}`
: defaultModel;
const defaultLabel = defaultModel ? `Default (${defaultDisplay})` : "Default model";
const busy =
state.chatLoading || state.chatSending || Boolean(state.chatRunId) || state.chatStream !== null;
const disabled =