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(ui): kein openai:: mehr vor Modellnamen, die Kunden lesen
purple78a958ae7a03
diff --git a/src/components/chat/MessageBubble.tsx b/src/components/chat/MessageBubble.tsxindex 43a4afa1..c8ea0598 100644--- a/src/components/chat/MessageBubble.tsx+++ b/src/components/chat/MessageBubble.tsx@@ -9,6 +9,7 @@ import { groupAgentBlocks } from '../../lib/tool-call-groups'import { VramSwitchCard } from './VramSwitchCard'import { SpeakerButton } from './SpeakerButton'import { ChatArtifactCard } from './ChatArtifactCard'+import { displayModelName } from '../../api/providers/model-name'import type { Message } from '../../types/chat'import { stripModelNoise } from '../../lib/strip-model-noise'import { truncationNotice } from '../../lib/answer-notes'@@ -292,7 +293,13 @@ function MessageBubbleImpl({ message, onRegenerate, onEdit, pendingApprovalId, ochat. Turns from before that carry none and get no line, ratherthan a guess. */}{!isUser && message.modelId && (- <div className="t-mono text-gray-500 dark:text-gray-400 pl-1">{message.modelId}</div>+ // Ohne Steckplatz-Praefix: `openai::` ist unsere interne Adresse+ // fuer jedes Backend, das das OpenAI-Protokoll spricht, und stand+ // damit vor jedem lokalen Modellnamen im Chat (Persona P5,+ // 03./04.09.2026). Der volle Name bleibt im title.+ <div title={message.modelId} className="t-mono text-gray-500 dark:text-gray-400 pl-1">+ {displayModelName(message.modelId)}+ </div>)}{/* Thinking block — auto-expands while this (last) turn is stillproducing so the reasoning streams LIVE, then collapses (David 2026-06-04). */}diff --git a/src/components/models/ModelCard.tsx b/src/components/models/ModelCard.tsxindex 5d132dd3..e2f42fa1 100644--- a/src/components/models/ModelCard.tsx+++ b/src/components/models/ModelCard.tsx@@ -4,6 +4,7 @@ import { formatBytes } from '../../lib/formatters'import { BenchmarkButton } from './ModelBenchmark'import { ContextMenu } from '../ui/ContextMenu'import { buildModelCardMenu, type ModelMenuHandlers } from '../ui/menu-actions'+import { displayModelName } from '../../api/providers/model-name'import type { AIModel } from '../../types/models'interface Props {@@ -63,8 +64,18 @@ export function ModelCard({ model, isActive, onSelect, onDelete, onInfo, canDele{/* Type icon */}<TypeIcon size={13} className={`${typeInfo.color} shrink-0`} />- {/* Name — grows to fill the row (single-line, LM-Studio style) */}- <span className="flex-1 min-w-0 text-[0.7rem] text-gray-800 dark:text-gray-200 font-medium truncate">{model.name}</span>+ {/* Name — grows to fill the row (single-line, LM-Studio style).+ Ohne das `openai::` davor: das ist unser Steckplatzname, kein Name,+ den ein Kunde je gewaehlt hat. Persona P5, 03./04.09.2026: "Fuer+ einen Kunden, der LU Engine benutzt und mit OpenAI nichts zu tun+ hat, ist das verwirrend." Der volle Name bleibt im title, denn ein+ Fehlerbericht braucht ihn. */}+ <span+ title={model.name}+ className="flex-1 min-w-0 text-[0.7rem] text-gray-800 dark:text-gray-200 font-medium truncate"+ >+ {displayModelName(model.name)}+ </span>{isActive && <span className="shrink-0 text-[0.5rem] text-blue-400 font-medium uppercase">Active</span>}diff --git a/src/components/models/__tests__/installed-tile-has-a-use-button.test.ts b/src/components/models/__tests__/installed-tile-has-a-use-button.test.tsindex 1a10e9b8..16b54281 100644--- a/src/components/models/__tests__/installed-tile-has-a-use-button.test.ts+++ b/src/components/models/__tests__/installed-tile-has-a-use-button.test.ts@@ -70,6 +70,7 @@ const { ModelManager } = await import('../ModelManager')const { useModelStore } = await import('../../../stores/modelStore')const { useProviderStore } = await import('../../../stores/providerStore')const { __resetLuEngineSwapLockForTests } = await import('../../../api/lu-engine-swap-lock')+const { displayModelName } = await import('../../../api/providers/model-name')const ACTIVE = 'openai::Phi-4-mini-instruct-Q4_K_M'const OTHER = 'openai::mlabonne_gemma-3-4b-it-abliterated-Q4_K_M'@@ -97,9 +98,14 @@ async function openInstalled() {})}-/** The Use button on the row for `name`, or null when the row has none. */+/** The Use button on the row for `name`, or null when the row has none.+ *+ * Gesucht wird nach dem Namen, den der Nutzer SIEHT. Die Kachel zeigt seit+ * dem 04.09.2026 den Anzeigenamen ohne `openai::`, denn das ist unser+ * Steckplatzname und kein Name, den ein Kunde je gewaehlt hat (Persona P5).+ * Der volle Name lebt weiter im title. */function useButtonFor(name: string): HTMLElement | null {- const row = screen.getByText(name).closest('div[class*="rounded-lg"]')+ const row = screen.getByText(displayModelName(name)).closest('div[class*="rounded-lg"]')return row?.querySelector('[data-testid="model-card-use"]') as HTMLElement | null}@@ -157,6 +163,20 @@ describe('the Use button the 2.6.8 notes promise on the Installed tile', () => {expect(useButtonFor(OLLAMA)).toBeNull()})+ // Persona P5, 03./04.09.2026: "openai:: steht vor jedem lokalen+ // Modellnamen. Fuer einen Kunden, der LU Engine benutzt und mit OpenAI+ // nichts zu tun hat, ist das verwirrend." Es ist unser Steckplatzname,+ // nicht seiner.+ it('nennt kein Modell mit dem Steckplatz-Praefix', async () => {+ await openInstalled()+ expect(document.body.textContent).not.toContain('openai::')+ // Gegenprobe zur Gegenprobe: der Name ist wirklich da, nur ohne Praefix.+ expect(document.body.textContent).toContain('Phi-4-mini-instruct-Q4_K_M')+ // Und der volle Name bleibt fuer einen Fehlerbericht erreichbar.+ const zeile = screen.getByText(displayModelName(ACTIVE))+ expect(zeile.getAttribute('title')).toBe(ACTIVE)+ })+// NEGATIVE CONTROL: the button is a door into the same house, so it obeys// the shared bolt. A press while another swap is running must not send a// second swap_bundled_model at one llama-server.