The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(models): the picker says when a window is too small for a tool set
purple1a9572cccf8b
diff --git a/src/components/models/ModelSelector.tsx b/src/components/models/ModelSelector.tsxindex 009d6ad9..ef14d11c 100644--- a/src/components/models/ModelSelector.tsx+++ b/src/components/models/ModelSelector.tsx@@ -366,6 +366,22 @@ export function shouldAutoLoadForSelect(*/export const LMS_AUTOLOAD_CONTEXT = 16384+// A full agent tool set is about 5k tokens of definitions before the+// conversation starts, so a 4k model calls tools in Chat but cannot carry+// Agent or Code (MythoMax holds 4k and the upstream refuses the request+// outright, reproduced against production 2026-07-29). Saying that on the row+// beats letting the user find out from an error after the first message.+const TIGHT_CONTEXT = 8192++export function toolBadgeTitle(model: AIModel): string {+ const ctx =+ 'contextLength' in model && typeof model.contextLength === 'number' ? model.contextLength : 0+ if (ctx > 0 && ctx < TIGHT_CONTEXT) {+ return `Supports tool calling, but its ${Math.round(ctx / 1024)}k context window is too small for a full Agent or Code tool set`+ }+ return 'Supports tool calling (Agent, Code, and tools in Chat)'+}+export function lmsAutoLoadContext(model: AIModel): number {const max ='contextLength' in model && typeof model.contextLength === 'number' && model.contextLength > 0@@ -844,7 +860,7 @@ export function ModelSelector({ openUpward = false, surface = 'chat' }: ModelSel) : model.supportsTools !== false ? (<spanclassName="inline-flex items-center shrink-0 text-emerald-500/90"- title="Supports tool calling (Agent, Code, and tools in Chat)"+ title={toolBadgeTitle(model)}><Wrench size={9} /></span>