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
feat(context): kleines Dreieck, sobald der Cloud-Kontext ueber dem Standard liegt
purple74d5b4286392
diff --git a/e2e/cloud-kontext-pro-modell.spec.ts b/e2e/cloud-kontext-pro-modell.spec.tsindex ff89bd46..d978f825 100644--- a/e2e/cloud-kontext-pro-modell.spec.ts+++ b/e2e/cloud-kontext-pro-modell.spec.ts@@ -41,6 +41,8 @@ test('a cloud model gets its own context pick from the header dropdown', async (await expect(knob).toBeVisible({ timeout: 15_000 })// Default: the fill over the 32K send window, not over the model's 256K.await expect(knob).toContainText('/32K')+ // No warning on the default (David 30.09.2026: only once it was raised).+ await expect(page.getByLabel('Larger context costs more')).toHaveCount(0)await knob.click()await expect(page.getByRole('button', { name: /^Auto · 32K$/ })).toBeVisible()@@ -48,6 +50,7 @@ test('a cloud model gets its own context pick from the header dropdown', async (await expect(page.getByRole('button', { name: /^8K$/ })).toHaveCount(0)await page.getByRole('button', { name: /^64K$/ }).click()await expect(knob).toContainText('/64K')+ await expect(page.getByLabel('Larger context costs more')).toHaveCount(1)const saved = await page.evaluate(() => JSON.parse(localStorage.getItem('chat-settings') || '{}').state?.settings?.cloudSendWindowByModel)expect(Object.values(saved ?? {})).toEqual([65536])@@ -56,4 +59,5 @@ test('a cloud model gets its own context pick from the header dropdown', async (await knob.click()await page.getByRole('button', { name: /^Auto · 32K$/ }).click()await expect(knob).toContainText('/32K')+ await expect(page.getByLabel('Larger context costs more')).toHaveCount(0)})diff --git a/src/components/chat/ContextDropdown.tsx b/src/components/chat/ContextDropdown.tsxindex 67e2d371..8adfaa02 100644--- a/src/components/chat/ContextDropdown.tsx+++ b/src/components/chat/ContextDropdown.tsx@@ -14,6 +14,7 @@ import { useActiveContextWindow } from '../../hooks/useActiveContextWindow'// hier eine eigene Rechnung und im Fuellstand daneben eine zweite, und beide// zeigten denselben Wert verschieden (Gegenprobe G2, 04.09.2026).import { formatContextWindow } from '../../lib/formatters'+import { DEFAULT_SEND_WINDOW_TOKENS } from '../../lib/send-window'import { ENGINE_DEFAULT_CTX } from '../../lib/builtin-ctx'import { SOURCE_LABEL, withStoredWindow } from '../../lib/context-source'import { platzFuerPopover, type PopoverPlatz } from '../../lib/popover-placement'@@ -185,6 +186,10 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {// Nicht verstellbar (Cloud): kein Regler, aber der Fuellstand bleibt stehen.if (!activeModel || !ctx.adjustable) return <>{children}</>+ // Hinweis erst, wenn der Nutzer ueber den Standard gegangen ist, vorher+ // nicht (David 30.09.2026). Grau, kein Gelb (Regel vom 04.09.).+ const raised = cloud && ctx.sendWindow > DEFAULT_SEND_WINDOW_TOKENS+/** Die Liste endet an der Decke, und die Decke ist der groesste Eintrag.*@@ -342,6 +347,7 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {<span id={labelId} className="sr-only">Context window</span>{busy ? <Loader2 size={9} className="animate-spin" /> : null}{applyError && !busy ? <AlertTriangle size={9} className="text-red-400" /> : null}+ {raised && !applyError && !busy ? <AlertTriangle size={9} className="text-gray-400" aria-label="Larger context costs more" /> : null}{/* Der Fuellstand IST die Beschriftung. Nur wenn es keinen gibt (leererChat), steht hier wieder das Fenster allein. */}<span id={valueId}>@@ -394,8 +400,10 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {</button>)}<div className="mt-0.5 px-2 pt-1 border-t border-gray-100 dark:border-white/[0.06] text-[0.5rem] text-gray-400 leading-snug">- {cloud- ? 'How much of the chat each step sends. More remembers more, and every step costs more. Saved for this model.'+ {raised+ ? <span className="flex items-start gap-1"><AlertTriangle size={9} className="shrink-0 mt-px" />Once the chat is longer than {formatContextWindow(DEFAULT_SEND_WINDOW_TOKENS)}, every message sends more and costs more credits.</span>+ : cloud+ ? 'How much of the chat each message sends. Saved for this model.': ctx.provider !== 'custom'? 'Reloads the model on change.': (ctx.clampedFrom ?? 0) > 0