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(settings-chat): gate opens on look phrases and LU as a word; a no on the card says NOT CHANGED
purplec1de8115e37a
diff --git a/e2e/settings-live/lu-runs-itself.live.ts b/e2e/settings-live/lu-runs-itself.live.tsindex b9dfcd63..c742d0bf 100644--- a/e2e/settings-live/lu-runs-itself.live.ts+++ b/e2e/settings-live/lu-runs-itself.live.ts@@ -121,12 +121,16 @@ async function drive(page: Page, convId: string, sc: Scenario): Promise<{ end: sawait card.screenshot({ path: shot })await page.screenshot({ path: join(OUT, `C60-${sc.id}-card${n}-page.png`) })cards.push({- title: (await card.locator('p').first().textContent()) ?? '',- risk: (await card.getAttribute('data-risk')) ?? '',- taint: await page.getByTestId('setting-change-taint').first().textContent().catch(() => null),+ title: (await card.locator('p').first().textContent({ timeout: 5_000 }).catch(() => '')) ?? '',+ risk: (await card.getAttribute('data-risk', { timeout: 5_000 }).catch(() => '')) ?? '',+ // count() does not wait: a card without a taint note has none, and a+ // textContent() here waited until the card itself timed out (run 1).+ taint: (await card.getByTestId('setting-change-taint').count()) > 0+ ? await card.getByTestId('setting-change-taint').textContent({ timeout: 5_000 }).catch(() => null)+ : null,shot,})- await card.getByTestId(sc.answer === 'accept' ? 'setting-change-accept' : 'setting-change-decline').click()+ await card.getByTestId(sc.answer === 'accept' ? 'setting-change-accept' : 'setting-change-decline').click({ timeout: 15_000 })await page.waitForTimeout(800)continue}diff --git a/src/api/mcp/self-control-tools.ts b/src/api/mcp/self-control-tools.tsindex 4adf0b40..b05ef990 100644--- a/src/api/mcp/self-control-tools.ts+++ b/src/api/mcp/self-control-tools.ts@@ -91,8 +91,8 @@ async function confirmAction(if (answer.allow) return nullauditAction(run, o.key, o.title, answer.reason === 'timeout' ? 'timeout' : 'declined')return answer.reason === 'timeout'- ? 'No answer on the card for 10 minutes, so no. Nothing changed. Do not ask again unless the user asks.'- : 'The user declined. Nothing changed. Do not ask again unless the user asks.'+ ? 'NOT DONE. No answer on the card for 10 minutes, so no. Nothing happened. Tell the user so. Do not ask again unless the user asks.'+ : 'NOT DONE. The user declined. Nothing happened. Tell the user so. Do not ask again unless the user asks.'}// ── lu_models ────────────────────────────────────────────────────diff --git a/src/api/mcp/settings-tools.ts b/src/api/mcp/settings-tools.tsindex e1092859..7ecab986 100644--- a/src/api/mcp/settings-tools.ts+++ b/src/api/mcp/settings-tools.ts@@ -238,8 +238,8 @@ export async function executeSetSetting(args: ToolArgs, run?: AgentRunContext, sif (!answer.allow) {audit(run, model, { ...item, outcome: answer.reason === 'timeout' ? 'timeout' : 'declined', tainted: verdict.taintedBy })return answer.reason === 'timeout'- ? `No answer on the card for 10 minutes, so no. ${entry.label} stays ${item.from}. Do not ask again unless the user asks.`- : `The user declined. ${entry.label} stays ${item.from}. Do not ask again unless the user asks.`+ ? `NOT CHANGED. No answer on the card for 10 minutes, so no. ${entry.label} stays ${item.from}. Tell the user it was not changed. Do not ask again unless the user asks.`+ : `NOT CHANGED. The user declined. ${entry.label} stays ${item.from}. Tell the user it was not changed. Do not ask again unless the user asks.`}// The value may have moved while the card was open (by hand, another chat).const now = st.readEntry(entry)@@ -294,8 +294,8 @@ export async function executeSetSettings(args: ToolArgs, run?: AgentRunContext,if (!answer.allow) {for (const c of ok) audit(run, model, { ...c.item, outcome: answer.reason === 'timeout' ? 'timeout' : 'declined', tainted: taintedBy })lines.push(answer.reason === 'timeout'- ? 'No answer on the card for 10 minutes, so no. Nothing changed. Do not ask again unless the user asks.'- : 'The user declined the card. Nothing changed. Do not ask again unless the user asks.')+ ? 'NOT CHANGED. No answer on the card for 10 minutes, so no. Nothing changed. Tell the user so. Do not ask again unless the user asks.'+ : 'NOT CHANGED. The user declined the card. Nothing changed. Tell the user so. Do not ask again unless the user asks.')return lines.join('\n')}const selected = new Set(answer.selected ?? ok.map((c) => c.entry.key))diff --git a/src/lib/__tests__/c60-lu-runs-itself.test.ts b/src/lib/__tests__/c60-lu-runs-itself.test.tsindex 5e563082..7a296edf 100644--- a/src/lib/__tests__/c60-lu-runs-itself.test.ts+++ b/src/lib/__tests__/c60-lu-runs-itself.test.ts@@ -227,7 +227,9 @@ describe('the card', () => {await vi.advanceTimersByTimeAsync(0)expect(queue()).toHaveLength(1)await vi.advanceTimersByTimeAsync(CARD_TIMEOUT_MS + 1)- expect(await p).toMatch(/No answer on the card for 10 minutes/)+ const said = await p+ expect(said).toMatch(/No answer on the card for 10 minutes/)+ expect(said).toMatch(/^NOT CHANGED./)expect(settings().theme).toBe(DEFAULT_SETTINGS.theme)})@@ -316,6 +318,9 @@ describe('the gate', () => {expect(asksAboutSelfControl('Wechsel auf Gemma 4')).toBe(true)expect(asksAboutSelfControl('Schalt die Local API an')).toBe(true)expect(asksAboutSelfControl('Lade Flux Schnell herunter')).toBe(true)+ expect(asksAboutSelfControl('Stell das Design von LU auf hell.')).toBe(true)+ expect(asksAboutSelfControl('LU soll dunkel aussehen')).toBe(true)+ expect(asksAboutSelfControl('Wie lustig ist das?')).toBe(false)expect(asksAboutSelfControl('Erzähl mir einen Witz')).toBe(false)expect(asksAboutSettings('Erinnerst du dich an gestern?')).toBe(false)})diff --git a/src/lib/settings-tool-names.ts b/src/lib/settings-tool-names.tsindex 37eb2bfd..2be45315 100644--- a/src/lib/settings-tool-names.ts+++ b/src/lib/settings-tool-names.ts@@ -58,6 +58,12 @@ const ACTION_WORDS = ['comfyui', 'comfy', 'neustart', 'restart', 'starte', 'stoppe', 'start comfy', 'stop comfy','local api', 'lokale api', 'localapi', 'api server', 'api-server','remote', 'handy', 'phone', 'smartphone', 'fernzugriff',+ // The look, in the words people use (the old A11 list had them; the live+ // probe of 09.11.2026 lost "Stell das Design von LU auf hell" without them).+ 'dark mode', 'light mode', 'darkmode', 'dunkelmodus', 'dunklen modus', 'hellen modus', 'dark theme', 'light theme',+ 'auf hell', 'auf dunkel', 'helles design', 'dunkles design', 'design auf', 'design von lu', 'aussehen von lu',+ // The app by its name, as a word of its own: "von LU", "in LU", "LU's".+ ' lu ', ' lu.', ' lu?', ' lu!', ' lu,', " lu's", ' lus ',...SELF_CONTROL_TOOL_NAMES,]@@ -87,7 +93,8 @@ export function settingsGateWords(): string[] {/** True when a chat message is about LU itself. */export function asksAboutSelfControl(userMessage: string): boolean {- const msg = (userMessage || '').toLowerCase()+ // Padded, so " lu " also finds LU at the start or the end of the message.+ const msg = ` ${(userMessage || '').toLowerCase()} `return settingsGateWords().some((k) => msg.includes(k))}