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
test(agent): C83 end-to-end run; guard fixes for the N1 package
purple05852cb21380
diff --git a/src/api/__tests__/a19-voice-speaks-as-the-persona.test.ts b/src/api/__tests__/a19-voice-speaks-as-the-persona.test.tsindex d47a697c..5af8db9f 100644--- a/src/api/__tests__/a19-voice-speaks-as-the-persona.test.ts+++ b/src/api/__tests__/a19-voice-speaks-as-the-persona.test.ts@@ -1,4 +1,4 @@-// A19 (setimu, Discord 12.11.2026): Voice ignored the persona of the chat.+// A19 (Discord, 12.11.2026): Voice ignored the persona of the chat.//// A voice session keeps its transcript in a conversation made fresh at Start,// and a fresh conversation starts with the persona off. The system prompt wasdiff --git a/src/api/__tests__/a22-image-part-reload.test.ts b/src/api/__tests__/a22-image-part-reload.test.tsindex eb92ddd5..d680608e 100644--- a/src/api/__tests__/a22-image-part-reload.test.ts+++ b/src/api/__tests__/a22-image-part-reload.test.ts@@ -1,4 +1,4 @@-// A22 (boromirofgeo, 12.11.2026): Gemma 4 12B Abliterated said "This model+// A22 (Discord, 12.11.2026): Gemma 4 12B Abliterated said "This model// can't read images" while its image part (mmproj) lay next to it. The LU// Engine ran the model without the part; a restart fixed it.//@@ -114,7 +114,7 @@ describe('A22: the image part of a vision model on the LU Engine', () => {it('a model with no image part installed says so', async () => {engine.imagePart = falseconst msg = await explainImageRefusal(MODEL)- expect(msg).toMatch(/has no image part installed/)+ expect(msg).toMatch(/^No image part installed: /)expect(engine.swaps).toEqual([])})diff --git a/src/api/image-part-heal.ts b/src/api/image-part-heal.tsindex 7fffd8d4..6a6df2d4 100644--- a/src/api/image-part-heal.ts+++ b/src/api/image-part-heal.ts@@ -1,5 +1,5 @@/**- * A22 (boromirofgeo, Discord 12.11.2026): a vision model said "This model+ * A22 (Discord, 12.11.2026): a vision model said "This model* can't read images".** Gemma 4 12B Abliterated can read images, and its image part (the mmproj@@ -26,6 +26,7 @@ import { bareBuiltinModelName } from '../lib/builtin-model-identity'import { preservedSwapCtx } from '../lib/builtin-ctx'import { useSettingsStore } from '../stores/settingsStore'import { MULTIMODAL_UNSUPPORTED_MESSAGE } from '../lib/ollama-errors'+import { imagePartNotLoadedSentence, imagePartReloadedSentence, noImagePartSentence } from '../lib/image-part-notes'import { useProviderStore } from '../stores/providerStore'import { log } from '../lib/logger'@@ -137,23 +138,11 @@ export async function ensureImagePartLoaded(modelName: string | null | undefinedexport function imagePartRefusalMessage(state: ImagePartState): string {switch (state.kind) {case 'no-part':- return (- `${state.model} has no image part installed, so it cannot see the picture. ` +- 'Add its image part (the mmproj file) on the Models page, or switch to a model that has one, then send again.'- )+ return noImagePartSentence(state.model)case 'not-loaded':- return (- `${state.model} can read images, but the LU Engine is running it without its image part (mmproj)` +- (state.note ? `: ${state.note.replace(/^Loaded without image input: /, '')}` : '.') +- ' LU tried to load it again and it did not come up. ' +- (/smaller context/i.test(state.note ?? '')- ? 'Lower the context in the engine settings, then send again.'- : 'Restart the engine from the model picker, then send again.')- )+ return imagePartNotLoadedSentence(state.model, state.note)case 'sees':- return (- `${state.model} was running without its image part (mmproj). LU has loaded it again: send the message again and it will see the picture.`- )+ return imagePartReloadedSentence(state.model)default:return MULTIMODAL_UNSUPPORTED_MESSAGE}diff --git a/src/components/chat/ContextDropdown.tsx b/src/components/chat/ContextDropdown.tsxindex a8cb85be..71a6a243 100644--- a/src/components/chat/ContextDropdown.tsx+++ b/src/components/chat/ContextDropdown.tsx@@ -380,7 +380,7 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {>{(!cloud || ctx.sendAdjustable !== false) && (<>{cloud && ctx.modelWindowSettable && (- <div className="px-2 pt-0.5 text-[0.5rem] uppercase tracking-wide text-gray-400">Sent per message</div>+ <div className="px-2 pt-0.5 t-micro uppercase tracking-wide text-gray-400">Sent per message</div>)}<button onClick={() => apply(0)} className={rowCls(selectedNow === 0)}><span>Auto{ctx.provider === 'ollama' ? ` · ${formatContextWindow(ctx.autoWindow ?? ollamaWindowFor(windowUse, ctx.modelMax))}` : ctx.provider === 'builtin' ? ` · ${formatContextWindow(ENGINE_DEFAULT_CTX)}` : ctx.provider === 'custom' && ctx.source !== 'user' ? ` · ${formatContextWindow(ctx.contextWindow)}` : cloud ? ` · ${formatContextWindow(globalSendWindow)}` : ''}</span>@@ -401,7 +401,7 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {</>)}{cloud && ctx.modelWindowSettable && (<div data-testid="context-model-window" className="flex flex-col gap-0.5">- <div className={`px-2 pt-1 ${ctx.sendAdjustable !== false ? 'mt-0.5 border-t border-gray-100 dark:border-white/[0.06]' : ''} text-[0.5rem] uppercase tracking-wide text-gray-400`}>Model context window</div>+ <div className={`px-2 pt-1 ${ctx.sendAdjustable !== false ? 'mt-0.5 border-t border-gray-100 dark:border-white/[0.06]' : ''} t-micro uppercase tracking-wide text-gray-400`}>Model context window</div><button onClick={() => applyModelWindow(0)} className={rowCls(modelWindowPick === 0)}><span>Auto{modelWindowPick === 0 && ctx.modelWindow ? ` · ${formatContextWindow(ctx.modelWindow)}` : ''}</span>{modelWindowPick === 0 && <Check size={10} />}@@ -412,7 +412,7 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {{modelWindowPick === p && <Check size={10} />}</button>))}- <div className="px-2 pt-0.5 text-[0.5rem] text-gray-400 leading-snug max-w-[220px]">+ <div className="px-2 pt-0.5 t-micro text-gray-400 leading-snug max-w-[220px]">{`Now ${formatContextWindow(ctx.modelWindow ?? 0)}, ${SOURCE_LABEL[ctx.modelWindowSource ?? 'guess']}. This API does not report the model's context window, so LU cannot check it. Pick the window its documentation names. Saved for this model.`}</div></div>diff --git a/src/hooks/__tests__/c77-api-model-window.test.ts b/src/hooks/__tests__/c77-api-model-window.test.tsindex 85674602..706f0dba 100644--- a/src/hooks/__tests__/c77-api-model-window.test.ts+++ b/src/hooks/__tests__/c77-api-model-window.test.ts@@ -1,6 +1,6 @@// @vitest-environment jsdom/**- * C77 (redapplevi, Discord 11.11.2026): an API model on an OpenAI-compatible+ * C77 (Discord, 11.11.2026): an API model on an OpenAI-compatible* endpoint got a context window of 8192 because the API names none, and* nothing could change it ("Context window (Ollama)" is Ollama's, and the* picker of a paid model sets only the send window).diff --git a/src/hooks/__tests__/c83-the-incident-run-ends.test.ts b/src/hooks/__tests__/c83-the-incident-run-ends.test.tsnew file mode 100644index 00000000..8f099573--- /dev/null+++ b/src/hooks/__tests__/c83-the-incident-run-ends.test.ts@@ -0,0 +1,146 @@+/**+ * @vitest-environment jsdom+ *+ * C83 driven through the real `useAgentChat().sendAgentMessage`, only the+ * network replaced: the model of the support case's run (10.11.2026) answers every+ * round with one tool call, no text, arguments of ~490 characters that wobble+ * a little, and the server reports 420-447k tokens of input per request.+ * The run had 233 such rounds. Here it must end within eight.+ *+ * Run: npx vitest run src/hooks/__tests__/c83-the-incident-run-ends.test.ts+ */+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'+import { renderHook, act } from '@testing-library/react'++vi.mock('../../api/cloud/supabase', () => ({ getAccessToken: async () => 'session-token-abc' }))+vi.mock('../../api/rag', () => ({+ retrieveContext: async () => ({ context: { chunks: [], query: '', documentIds: [] }, scoredChunks: [] }),+ generateEmbeddings: async () => [[0.1, 0.2]],+}))+vi.mock('../../lib/ttsBridge', () => ({ autoSpeak: () => {} }))+vi.mock('../../api/vram-handoff', () => ({ requestGenerationCancel: () => {} }))+vi.mock('../useMemory', () => ({+ useMemory: () => ({ extractAndSave: async () => {} }),+ extractMemoriesFromPair: async () => {},+}))++// The page read: the same small status answer every time, as in the run.+vi.mock('../../api/backend', async () => {+ const actual = await vi.importActual<typeof import('../../api/backend')>('../../api/backend')+ return {+ ...actual,+ backendCall: vi.fn(async (cmd: string, args?: unknown) => {+ if (cmd === 'web_fetch') return { url: (args as { url: string }).url, status: 200, title: 'Status', text: 'All systems operational. No open incidents.' }+ return actual.backendCall(cmd as never, args as never)+ }),+ }+})++import { useAgentChat } from '../useAgentChat'+import { useChatStore } from '../../stores/chatStore'+import { useModelStore } from '../../stores/modelStore'+import { useSettingsStore } from '../../stores/settingsStore'+import { useProviderStore } from '../../stores/providerStore'+import { useAgentModeStore } from '../../stores/agentModeStore'+import { useAgentTaskStore } from '../../stores/agentTaskStore'+import { useAgentLoopStore } from '../../stores/agentLoopStore'+import { useGenerationStore } from '../../stores/generationStore'+import { useTodoStore } from '../../stores/todoStore'+import { useToolAuditStore } from '../../stores/toolAuditStore'+import { DEFAULT_SETTINGS } from '../../lib/constants'+import { __resetRunStopsForTests } from '../../lib/run-stop'+import { toolRegistry, registerBuiltinTools } from '../../api/mcp'++const MODEL = 'lu-cloud::direct/deepseek-v4.1-flash'++/** One call of the incident's shape: ~490 characters, a detail wobbling, and+ * never twice the same (a poll that moves its time stamp on), so the exact+ * repeat filter of the loop lets every one through, as in the run. */+function args(i: number): string {+ const q = ['open', 'pending', 'unresolved'][i % 3]+ const t = 4 * i+ const since = `2026-11-10T09:${String(Math.floor(t / 60)).padStart(2, '0')}:${String(t % 60).padStart(2, '0')}Z`+ return JSON.stringify({+ url: `https://status.example.org/api/v2/incidents?state=${q}&page=${(i % 2) + 1}&per_page=50&include=components,updates,affected_regions&sort=-updated_at&fields=id,name,status,impact,created_at,updated_at,resolved_at,shortlink,components.name,components.status,updates.body,updates.status,updates.created_at,affected_regions.name&filter[impact]=major,critical&filter[component]=api-gateway,auth-service,billing-worker,storage-cluster,edge-cache&locale=en-US&tz=UTC&since=${since}`,+ })+}++let requests = 0+/** Input tokens the server reports per request; 0 = none reported. */+let reportedInput = 0++const toolCallSse = (i: number) => {+ const call = { index: 0, id: `call_${i}`, type: 'function', function: { name: 'web_fetch', arguments: args(i) } }+ const chunks = [+ { choices: [{ delta: { role: 'assistant', content: '', tool_calls: [call] } }] },+ { choices: [{ delta: {}, finish_reason: 'tool_calls' }] },+ ...(reportedInput > 0 ? [{ choices: [], usage: { prompt_tokens: reportedInput + ((i * 7919) % 27_000), completion_tokens: 140, total_tokens: reportedInput + 140 } }] : []),+ ]+ return new Response(chunks.map((c) => `data: ${JSON.stringify(c)}\n\n`).join('') + 'data: [DONE]\n\n', {+ status: 200, headers: { 'content-type': 'text/event-stream' },+ })+}++beforeEach(() => {+ requests = 0+ registerBuiltinTools(toolRegistry)+ __resetRunStopsForTests()+ useChatStore.setState({ conversations: [], activeConversationId: null })+ useAgentTaskStore.setState({ byConv: {} })+ useAgentLoopStore.setState({ loops: {} })+ useGenerationStore.setState({ generating: {}, aborters: {}, runs: {} })+ useAgentModeStore.setState({ agentModeActive: {}, workspaces: {}, workspaceSlugs: {} })+ useTodoStore.setState({ byConversation: {}, updatedAt: {} })+ useToolAuditStore.setState({ entries: {} })+ useSettingsStore.setState({ settings: { ...DEFAULT_SETTINGS, appMode: 'cloud', cavemanMode: 'off', webStrictUrls: false } })+ useProviderStore.setState((s) => ({ providers: { ...s.providers, 'lu-cloud': { ...s.providers['lu-cloud'], enabled: true } } }))+ useModelStore.setState({ models: [], activeModel: MODEL })+ vi.spyOn(globalThis, 'fetch').mockImplementation(async (input: RequestInfo | URL) => {+ const url = String(input)+ if (url.includes('/chat/completions')) {+ requests+++ if (requests > 40) throw new Error('the run did not stop')+ return toolCallSse(requests)+ }+ // The page itself: the same small status answer every time.+ return new Response('<html><body>All systems operational.</body></html>', { status: 200, headers: { 'content-type': 'text/html' } })+ })+})+afterEach(() => vi.restoreAllMocks())++async function run() {+ const convId = useChatStore.getState().createConversation(MODEL, '')+ useChatStore.getState().setActiveConversation(convId)+ const { result } = renderHook(() => useAgentChat())+ await act(async () => {+ await result.current.sendAgentMessage('Watch the status page and tell me when the incident is resolved.', undefined, { curatedTools: ['web_fetch'], chatToolsMode: true })+ })+ const answer = useChatStore.getState().conversations.find((c) => c.id === convId)!.messages.filter((m) => m.role === 'assistant').at(-1)!+ const notes = (answer.agentBlocks ?? []).filter((b) => b.phase === 'reflection').map((b) => b.content)+ return { answer, notes }+}++describe('C83: the incident run, end to end', () => {+ it('the calls have the incident\'s length', () => {+ const lengths = Array.from({ length: 20 }, (_, i) => args(i).length)+ expect(Math.min(...lengths)).toBeGreaterThanOrEqual(480)+ expect(Math.max(...lengths)).toBeLessThanOrEqual(500)+ })++ it('with 420-447k tokens per request: warned at once, stopped by the cost brake within 8 requests', { timeout: 60_000 }, async () => {+ reportedInput = 420_000+ const { answer, notes } = await run()+ expect(requests).toBeLessThanOrEqual(8)+ expect(notes.some((n) => /^⚠ Large request: this step sent 4\d\dk tokens/.test(n))).toBe(true)+ expect(notes.some((n) => /^⛔ Stopped to protect your credits/.test(n))).toBe(true)+ expect(answer.content).toMatch(/Stopped to protect your credits: this run has sent 3\.\dM tokens/)+ })++ it('without usage numbers: the near-copy detector ends it on the 8th', { timeout: 60_000 }, async () => {+ reportedInput = 0+ const { notes } = await run()+ expect(requests).toBe(8)+ expect(notes.some((n) => /Loop guard steered the model: You have now sent 5 nearly identical web_fetch calls/.test(n))).toBe(true)+ expect(notes.some((n) => /Loop guard halted the run: 8 nearly identical web_fetch calls in a row/.test(n))).toBe(true)+ })+})diff --git a/src/hooks/useActiveContextWindow.ts b/src/hooks/useActiveContextWindow.tsindex 1236a2dc..9e9a6a86 100644--- a/src/hooks/useActiveContextWindow.ts+++ b/src/hooks/useActiveContextWindow.ts@@ -70,7 +70,7 @@ export interface ActiveContext {/** Ollama only: what Auto sends, which an unknown maximum keeps small. */autoWindow?: number/**- * C77 (redapplevi, Discord 11.11.2026): a hosted OpenAI-compatible API+ * C77 (Discord, 11.11.2026): a hosted OpenAI-compatible API* that names no window for its model. The window was then a guess from the* name, 8192 at the floor, and nothing could change it: the picker of a* paid model only sets the send window, and "Context window (Ollama)" isdiff --git a/src/lib/__tests__/c83-agent-loop-credits.test.ts b/src/lib/__tests__/c83-agent-loop-credits.test.tsindex 43bdeda2..b3890f47 100644--- a/src/lib/__tests__/c83-agent-loop-credits.test.ts+++ b/src/lib/__tests__/c83-agent-loop-credits.test.ts@@ -1,7 +1,7 @@/*** C83: an agent loop ate a user's credits.*- * tid2110, 10.11.2026 09-10Z, LU Cloud direct/deepseek-v4.1-flash: 233 tool+ * A support case, 10.11.2026 09-10Z, LU Cloud direct/deepseek-v4.1-flash: 233 tool* calls in one run, one every ~4 s, no text from the model at all, and every* request carried 420-447k tokens of input. The arguments were 487-492* characters long and never byte-identical, so the guard (3 identical calls)diff --git a/src/lib/__tests__/logic-notes.test.ts b/src/lib/__tests__/logic-notes.test.tsindex 9cbab13a..a0c0aead 100644--- a/src/lib/__tests__/logic-notes.test.ts+++ b/src/lib/__tests__/logic-notes.test.ts@@ -184,7 +184,8 @@ describe('guard: the hooks write the sentences this reader knows', () => {it('the catch of a plain send has the seven branches read here, the catch of an agent run its twelve', () => {// A new branch writes a new sentence into the answer. It belongs into lib/logic-notes.ts and into the list above.// The seventh and the twelfth (3.0.8, A28) are the LU Cloud outage: the server's sentence, so they write the field too.- const plain = catchOf(chatHook, 'MULTIMODAL_UNSUPPORTED_MESSAGE\n )')+ // A22: the multimodal branch now asks why (api/image-part-heal); its sentences are read above.+ const plain = catchOf(chatHook, 'await explainImageRefusal(activeModel)')expect(plain.match(/updateMessageContent\(/g)).toHaveLength(7)const agent = catchOf(agentHook, "'\\n\\nAgent error: ' + errorMsg")expect(agent.match(/updateMessageContent\(/g)).toHaveLength(12)@@ -196,3 +197,19 @@ describe('guard: the hooks write the sentences this reader knows', () => {expect(emptyAnswerExplanation({ finishReason: 'model_switch', captured: false, keepThinking: false }).startsWith(SWITCHED_MODEL_HEAD)).toBe(true)})})++describe('A22: the image part sentences are notes, not answers', () => {+ it('each is read as a note of the app', async () => {+ const { imagePartNotLoadedSentence, imagePartReloadedSentence, noImagePartSentence } = await import('../image-part-notes')+ const { splitLogicNote } = await import('../logic-notes')+ for (const s of [+ noImagePartSentence('gemma-4-12b'),+ imagePartNotLoadedSentence('gemma-4-12b', 'Loaded without image input: the graphics memory has no room for the image part next to the model. A smaller context makes room.'),+ imagePartReloadedSentence('gemma-4-12b'),+ ]) {+ const note = splitLogicNote(s)+ expect(note?.body ?? null, s).toBe('')+ expect(note?.kind).toBe('generic')+ }+ })+})diff --git a/src/lib/__tests__/models-search-by-file-name.test.ts b/src/lib/__tests__/models-search-by-file-name.test.tsindex 2c28291c..b9de8f12 100644--- a/src/lib/__tests__/models-search-by-file-name.test.ts+++ b/src/lib/__tests__/models-search-by-file-name.test.ts@@ -1,4 +1,4 @@-// Models search by file name (boromirofgeo, Discord 12.11.2026): the user had+// Models search by file name (Discord, 12.11.2026): the user had// Gemma 4 12B Abliterated on disk under its uploader's file name and could// not find it again on the Models page.//diff --git a/src/lib/agent-cost-brake.ts b/src/lib/agent-cost-brake.tsindex bf42321d..2b47c27c 100644--- a/src/lib/agent-cost-brake.ts+++ b/src/lib/agent-cost-brake.ts@@ -1,7 +1,7 @@/*** Cost brake for one agent run (C83).*- * tid2110, 10.11.2026, LU Cloud direct/deepseek-v4.1-flash: 233 tool calls+ * A support case, 10.11.2026, LU Cloud direct/deepseek-v4.1-flash: 233 tool calls* in one run, one every ~4 s, and every single request carried 420-447k* tokens of input. Around 214k credits were gone before the user looked.* The loop guard now catches near-copies of the same call (detector 8), butdiff --git a/src/lib/agent-loop-guard.ts b/src/lib/agent-loop-guard.tsindex e09f2ab2..b9484b8e 100644--- a/src/lib/agent-loop-guard.ts+++ b/src/lib/agent-loop-guard.ts@@ -64,7 +64,7 @@* 5 and never fed detector 6. Steer at 3 per command, halt at 6. A* declined call also no longer counts as a success anywhere.*- * 8. Near-identical silent batches (C83, tid2110 10.11.2026): 233 tool+ * 8. Near-identical silent batches (C83, support case 10.11.2026): 233 tool* calls of one tool, one every ~4 s, no text at all, each request* 420-447k tokens of input on a paid model. The arguments were 487-492* characters and never byte-identical, so detectors 1-3 never saw adiff --git a/src/lib/image-part-notes.ts b/src/lib/image-part-notes.tsnew file mode 100644index 00000000..01a64019--- /dev/null+++ b/src/lib/image-part-notes.ts@@ -0,0 +1,28 @@+/**+ * A22: the sentences a refused picture gets when the LU Engine's image part+ * (mmproj) is the reason. Each starts with a fixed head, so the reader of+ * app-written notes (lib/logic-notes.ts) knows it is not the model's answer.+ * Pure: no engine, no store.+ */+export const IMAGE_PART_NONE_HEAD = 'No image part installed:'+export const IMAGE_PART_NOT_LOADED_HEAD = 'Image part not loaded:'+export const IMAGE_PART_RELOADED_HEAD = 'Image part loaded again:'++export function noImagePartSentence(model: string): string {+ return `${IMAGE_PART_NONE_HEAD} ${model} cannot see the picture without it. ` ++ 'Add its image part (the mmproj file) on the Models page, or switch to a model that has one, then send again.'+}++export function imagePartNotLoadedSentence(model: string, note: string | null): string {+ const why = note ? `: ${note.replace(/^Loaded without image input: /, '')}` : '.'+ const help = /smaller context/i.test(note ?? '')+ ? 'Lower the context in the engine settings, then send again.'+ : 'Restart the engine from the model picker, then send again.'+ return `${IMAGE_PART_NOT_LOADED_HEAD} ${model} can read images, but the LU Engine is running it without its image part (mmproj)${why}` ++ ` LU tried to load it again and it did not come up. ${help}`+}++export function imagePartReloadedSentence(model: string): string {+ return `${IMAGE_PART_RELOADED_HEAD} ${model} was running without its image part (mmproj). ` ++ 'LU has loaded it again: send the message again and it will see the picture.'+}diff --git a/src/lib/logic-notes.ts b/src/lib/logic-notes.tsindex 201736ca..5f78e7de 100644--- a/src/lib/logic-notes.ts+++ b/src/lib/logic-notes.ts@@ -20,6 +20,7 @@ import type { MessageErrorKind } from '../types/chat'import { DISCONNECT_WITHOUT_ANSWER } from './answer-notes'import { CREDITS_EXHAUSTED_MESSAGE } from './credits-exhausted'import { MULTIMODAL_UNSUPPORTED_MESSAGE } from './ollama-errors'+import { IMAGE_PART_NONE_HEAD, IMAGE_PART_NOT_LOADED_HEAD, IMAGE_PART_RELOADED_HEAD } from './image-part-notes'import { PLATFORM_TEXTS } from './platform-text'import { requestLimitMessage } from './request-limit'import { BAD_REQUEST_SENTENCE, TEMPLATE_REFUSAL_SENTENCE } from './template-refusal'@@ -99,7 +100,7 @@ const TAIL_RULES: readonly TailRule[] = [{ heads: bothWordings('cloudSessionEndedMidRun').map(headOf), read: () => ({ kind: 'session', detail: '' }) },{ heads: bothWordings('agentBackendLost').map(headOf), read: (tail, cloud) => ({ kind: cloud ? 'network' : 'engine', detail: detailsOf(tail) }) },{ heads: [...bothWordings('agentNoToolSupport'), ...bothWordings('agentToolTransportSwitched')].map(headOf), read: whole },- { heads: [MULTIMODAL_UNSUPPORTED_MESSAGE], read: whole },+ { heads: [MULTIMODAL_UNSUPPORTED_MESSAGE, IMAGE_PART_NONE_HEAD, IMAGE_PART_NOT_LOADED_HEAD, IMAGE_PART_RELOADED_HEAD], read: whole },{ heads: [headOf(TEMPLATE_REFUSAL_SENTENCE), headOf(BAD_REQUEST_SENTENCE)], read: whole },{ heads: [THINKING_UNSUPPORTED_HEAD], read: () => ({ kind: 'generic', detail: THINKING_UNSUPPORTED_DETAIL }) },{ heads: [RATE_LIMIT_HEAD], read: whole },diff --git a/src/lib/model-search.ts b/src/lib/model-search.tsindex 2219185d..d7a9d96c 100644--- a/src/lib/model-search.ts+++ b/src/lib/model-search.ts@@ -25,7 +25,7 @@ export function installedRowMatchesSearch(rowId: string, query: string): boolean}/**- * Does a catalogue entry answer a search? (boromirofgeo, Discord 12.11.2026)+ * Does a catalogue entry answer a search? (Discord, 12.11.2026)** The catalogue names a model the way people say it ("Gemma 4 12B* Abliterated"), the disk names it the way the uploader diddiff --git a/src/lib/voice/voice-persona.ts b/src/lib/voice/voice-persona.tsindex 4fd670ea..5738290a 100644--- a/src/lib/voice/voice-persona.ts+++ b/src/lib/voice/voice-persona.ts@@ -3,7 +3,7 @@ import { isGroupChat } from '../group-chat'import { resolveChatPersona } from '../chat-persona'/**- * A19 (setimu, Discord 12.11.2026): Voice ignored the persona of the chat.+ * A19 (Discord, 12.11.2026): Voice ignored the persona of the chat.** A voice session keeps its transcript in a conversation of its own, made* fresh at Start. A new conversation starts with the persona OFF (the