diff --git a/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx b/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx index 0c041351..18010836 100644 --- a/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx +++ b/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx @@ -246,9 +246,8 @@ function ChatInputInner({ return 0 }) setConfiguredModels(models) - if (defaultKey) { - setActiveModelKey(defaultKey) - } + const activeKey = defaultKey || (models[0] ? `${models[0].flavor}/${models[0].model}` : '') + if (activeKey) setActiveModelKey(activeKey) } } catch { // No config yet