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(create): hosted models in the local picker stand under 'LU Cloud', not 'Older models'
purplef2cde582b148
diff --git a/src/components/create/experimental/ModelChip.tsx b/src/components/create/experimental/ModelChip.tsxindex 63ff156e..6fbdabbe 100644--- a/src/components/create/experimental/ModelChip.tsx+++ b/src/components/create/experimental/ModelChip.tsx@@ -58,6 +58,11 @@ const FIT_MARK_COLOR = 'text-gray-500 dark:text-gray-600'const TEASER_PREFIX = 'lu-cloud-teaser:'const TEASER_ROWS = 4+/** The heading over the hosted rows at the end of the local picker. The list+ * draws a heading only where the group changes, so rows without one ran on+ * under "Older models" (the box, 03.10.2026). A hosted model is not an older+ * one, with or without a tier from the server. */+export const CLOUD_GROUP = 'LU Cloud'// Badge-aware model picker (replaces the raw <select>). Local backend lists// the installed checkpoints; the cloud backend lists the hosted catalog@@ -240,6 +245,7 @@ function LocalModelChip() {label: m.label,sublabel: modelCostHint(m, 'generate'),badge: CLOUD_BADGE,+ group: CLOUD_GROUP,})}}diff --git a/src/components/create/experimental/__tests__/local-model-chip-tiers.test.tsx b/src/components/create/experimental/__tests__/local-model-chip-tiers.test.tsxindex 421771b6..3fde0523 100644--- a/src/components/create/experimental/__tests__/local-model-chip-tiers.test.tsx+++ b/src/components/create/experimental/__tests__/local-model-chip-tiers.test.tsx@@ -18,6 +18,10 @@ import { ModelChip } from '../ModelChip'import { useCreateStore } from '../../../../stores/createStore'import { OLDER_GROUP } from '../../../../lib/render/model-tier'import { classifyModel, type ClassifiedModel } from '../../../../api/comfyui'+import { useCloudCatalogStore } from '../../../../stores/cloudCatalogStore'+import { useSettingsStore } from '../../../../stores/settingsStore'+import { neuerServer, alterServer } from '../../../../lib/render/__tests__/fixtures/test-catalogs'+import { CLOUD_GROUP } from '../ModelChip'const model = (name: string): ClassifiedModel =>({ name, type: classifyModel(name), folder: 'checkpoints' }) as unknown as ClassifiedModel@@ -93,3 +97,46 @@ describe('lokaler Videowaehler', () => {expect(zeilen).toHaveLength(4)})})++// The box, 03.10.2026: the hosted models at the end of the local picker stood+// under "Older models". They carry no group, and the list draws a heading only+// where the group changes, so they ran on under the last heading. They have a+// heading of their own now, whether the server sends a tier or not.+describe('the hosted models at the end of the local picker', () => {+ function cloudRows() {+ render(<ModelChip />)+ fireEvent.click(screen.getByRole('button'))+ const liste = document.querySelector('.lu-elevated') as HTMLElement+ const rows = Array.from(liste.querySelectorAll('button'))+ // Each row is a wrapper holding an optional heading and the button. The+ // heading a row stands under is the nearest one above it.+ const headingOf = (b: Element) => {+ for (let row: Element | null = b.parentElement; row; row = row.previousElementSibling) {+ const head = row.querySelector(':scope > div')+ if (head) return head.textContent ?? ''+ }+ return ''+ }+ return rows+ .filter((b) => Array.from(b.querySelectorAll('span')).some((sp) => sp.textContent === 'Cloud'))+ .map((b) => headingOf(b))+ }++ it.each([['a server with tiers', neuerServer], ['an older server without tiers', alterServer]])(+ 'stand under their own heading, not under "Older models" (%s)',+ (_name, catalog) => {+ useSettingsStore.getState().updateSettings({ cloudTeasersEnabled: true })+ useCloudCatalogStore.setState({ models: catalog() })+ useCreateStore.setState({+ backend: 'local',+ imageModelList: [model('z_image_turbo_bf16.safetensors'), model('Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors')],+ })+ useCreateStore.getState().setIntent('image')+ const headings = cloudRows()+ expect(headings.length).toBeGreaterThan(0)+ expect(CLOUD_GROUP).toBe('LU Cloud')+ for (const h of headings) expect(h).toBe(CLOUD_GROUP)+ expect(screen.getAllByText(OLDER_GROUP)).toHaveLength(1)+ },+ )+})