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(sweep): 17 verklebte Kommentarzeilen wieder umbrechen
purple127b93a8751f
diff --git a/src/api/agents/sub-agent.ts b/src/api/agents/sub-agent.tsindex d82ad147..836ca1b6 100644--- a/src/api/agents/sub-agent.ts+++ b/src/api/agents/sub-agent.ts@@ -638,7 +638,8 @@ export async function defaultSubAgentRunner(messages.push({ role: 'assistant', content: turn.content || '', tool_calls: turn.toolCalls })// Map each result back to its ORIGINATING call by index. executeParallel// preserves input order (results[i] <-> requests[i] <-> turn.toolCalls[i]),- // so zipping by index gives every tool message the correct tool_call_id, // even when the turn fired the same tool twice. The previous find-by-name+ // so zipping by index gives every tool message the correct tool_call_id,+ // even when the turn fired the same tool twice. The previous find-by-name// matched the FIRST call for both duplicates, leaving the second call's id// with no result; strict OpenAI-compatible providers (lu-cloud/DeepInfra,// openai, anthropic) then 400/422'd on the next turn and delegate_taskdiff --git a/src/api/providers/openai-provider.ts b/src/api/providers/openai-provider.tsindex 410249ff..e0c81ba2 100644--- a/src/api/providers/openai-provider.ts+++ b/src/api/providers/openai-provider.ts@@ -779,7 +779,8 @@ export class OpenAIProvider implements ProviderClient {if (options?.temperature !== undefined) body.temperature = options.temperatureif (options?.topP !== undefined) body.top_p = options.topP- // F3: temperature and top_p reached the request, top_k never did, // the sampling popup's slider promised an effect that never happened.+ // F3: temperature and top_p reached the request, top_k never did,+ // the sampling popup's slider promised an effect that never happened.// LU Cloud is excluded on purpose: its proxy protocol genuinely has no// such field (sampling-reaches-the-cloud-body.test.ts), unlike a real// self-hosted llama.cpp/vLLM/KoboldCpp/LM-Studio/built-in-engine server.@@ -904,7 +905,8 @@ export class OpenAIProvider implements ProviderClient {const content = choice.delta?.content || ''- // Yield native reasoning as `thinking` so the panel fills live, // without this the entire reasoning phase of a cloud reasoner is+ // Yield native reasoning as `thinking` so the panel fills live,+ // without this the entire reasoning phase of a cloud reasoner is// silently dropped and the chat sits in dead air (uselu fc55c91).const reasoning = choice.delta?.reasoning_content ?? choice.delta?.reasoning ?? ''if (repetitionStop?.push(content) || reasoningRepetitionStop?.push(reasoning)) {@@ -993,7 +995,8 @@ export class OpenAIProvider implements ProviderClient {if (options?.temperature !== undefined) body.temperature = options.temperatureif (options?.topP !== undefined) body.top_p = options.topP- // F3: temperature and top_p reached the request, top_k never did, // the sampling popup's slider promised an effect that never happened.+ // F3: temperature and top_p reached the request, top_k never did,+ // the sampling popup's slider promised an effect that never happened.// LU Cloud is excluded on purpose: its proxy protocol genuinely has no// such field (sampling-reaches-the-cloud-body.test.ts), unlike a real// self-hosted llama.cpp/vLLM/KoboldCpp/LM-Studio/built-in-engine server.@@ -1729,7 +1732,8 @@ export class OpenAIProvider implements ProviderClient {// LM Studio: model load fails when there's no inference runtime for the// model's format installed. The raw API error reads "No LM Runtime found- // for model format 'gguf'" which doesn't tell a noob what to do, // rewrite it into actionable steps. This commonly happens on Windows+ // for model format 'gguf'" which doesn't tell a noob what to do,+ // rewrite it into actionable steps. This commonly happens on Windows// ARM64 where LM Studio doesn't auto-fetch a runtime, and on any fresh// install where the user installed via LU's in-app install_lmstudio.// The runtime catalogue isn't reachable from `lms` CLI (no `runtime`diff --git a/src/api/providers/types.ts b/src/api/providers/types.tsindex e8b4d24c..99e83f31 100644--- a/src/api/providers/types.ts+++ b/src/api/providers/types.ts@@ -51,7 +51,8 @@ export interface ProviderConfig {disabledByUser?: boolean// Opus-Review Nachbesserung 6 (3.0.1, F3): the pushed-out backend's own// API key, so a takeover does not just stop LEAKING it into the new- // occupant's field (the original F3 fix) but also stops DESTROYING it, // handing the slot back used to come back with no key and a silent 401.+ // occupant's field (the original F3 fix) but also stops DESTROYING it,+ // handing the slot back used to come back with no key and a silent 401.// Same "obfuscated" representation `apiKey` itself carries, an opaque// blob this app never needs to read as text outside providerStore.ts.// Session-only on purpose: providerStore.ts's `partialize` strips this@@ -169,7 +170,8 @@ export interface ChatOptions {temperature?: numbertopP?: number// Ollama/Anthropic support this. The real OpenAI API does not, but F3- // (3.0.1): the OpenAI-COMPATIBLE provider (self-hosted endpoints, // llama.cpp, vLLM, KoboldCpp, LM Studio, the built-in engine) sends it as+ // (3.0.1): the OpenAI-COMPATIBLE provider (self-hosted endpoints,+ // llama.cpp, vLLM, KoboldCpp, LM Studio, the built-in engine) sends it as// an extension field, the same way it already sends top_p.topK?: numbermaxTokens?: numberdiff --git a/src/components/models/ModelRowMarks.tsx b/src/components/models/ModelRowMarks.tsxindex 39699d3c..3d89af51 100644--- a/src/components/models/ModelRowMarks.tsx+++ b/src/components/models/ModelRowMarks.tsx@@ -29,7 +29,8 @@ export function ModelRowMarks({ model }: { model: { flash?: CloudModel['flash'];{model.unfiltered === 'full' && (// K12 (3.0.1): unbeantwortete Discord-Meldung, die Marke war nicht// auffindbar. Sie stand als reiner Fliesstext in derselben Groesse- // wie jede andere Kleinschrift der Zeile, ohne Icon, ohne Gewicht, // im Sammelbild der Liste ging sie unter. Bleibt auf derselben+ // wie jede andere Kleinschrift der Zeile, ohne Icon, ohne Gewicht,+ // im Sammelbild der Liste ging sie unter. Bleibt auf derselben// Stufe der Typo-Leiter (t-micro setzt NUR die Groesse, siehe// index.css), bekommt aber ein Icon und Fettung dazu, beides// Tailwind-Utilities, die t-micro nicht ueberschreibt.diff --git a/src/components/models/__tests__/model-row-marks.test.tsx b/src/components/models/__tests__/model-row-marks.test.tsxindex 6690dd97..1853de69 100644--- a/src/components/models/__tests__/model-row-marks.test.tsx+++ b/src/components/models/__tests__/model-row-marks.test.tsx@@ -33,7 +33,8 @@ describe('ModelRowMarks', () => {expect(screen.getByText('No refusals')).toBeTruthy()})- // K12 (3.0.1): the Discord report was "can't find it", not "it's wrong", // plain text at the smallest size on a crowded row, no icon at all. An+ // K12 (3.0.1): the Discord report was "can't find it", not "it's wrong",+ // plain text at the smallest size on a crowded row, no icon at all. An// icon is the cheapest signal that survives a quick scan of the list; the// text itself and the typography ladder step stay unchanged (see the// comment on the mark in ModelRowMarks.tsx).diff --git a/src/components/settings/ProviderConfig.tsx b/src/components/settings/ProviderConfig.tsxindex f8fd33d6..c8215dec 100644--- a/src/components/settings/ProviderConfig.tsx+++ b/src/components/settings/ProviderConfig.tsx@@ -349,7 +349,8 @@ export function ProviderSettings() {// switching to LM Studio/vLLM clears the built-in flag and re-selecting// Built-in restores it.// F3 (3.0.1, T4 Nebenfund): a real takeover must not leave the- // displaced backend's API key sitting in the shared slot's field, // see takeoverClearsApiKey in lib/openai-slot-handover.ts. Checked+ // displaced backend's API key sitting in the shared slot's field,+ // see takeoverClearsApiKey in lib/openai-slot-handover.ts. Checked// against the same shape slotTakeoverUpdate itself reads below.if (takeoverClearsApiKey(providers.openai, {name: preset.name, baseUrl: preset.baseUrl, isLocal: preset.isLocal, managed: preset.managed,diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex cd8dff87..3c2aab84 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -1424,7 +1424,8 @@ function ResetSection({ tab }: { tab: SettingsTab }) {const resetPermissions = usePermissionStore((s) => s.resetToDefaults)// The arm records the tab it was made on, so "still armed?" is a question// that can be answered while rendering. Switching tabs while armed must- // disarm, otherwise a click armed on General would confirm-fire on Agent, // and armedScopeFor() is that rule (src/lib/reset-arming.ts). It replaces a+ // disarm, otherwise a click armed on General would confirm-fire on Agent,+ // and armedScopeFor() is that rule (src/lib/reset-arming.ts). It replaces a// `useEffect(..., [tab])` that disarmed one render too late.const [arm, setArm] = useState<ResetArm<SettingsTab>>(null)const armed = armedScopeFor(arm, tab)@@ -1991,7 +1992,8 @@ export function SettingsPage() {// The line above is what actually re-runs the wizard: AppShell// gates it on settings.onboardingDone, and that store is// persisted, so it survives the reload below. The backend call- // only clears the marker FILE, which is read in one place, // the NSIS-update recovery in AppShell, and only when the+ // only clears the marker FILE, which is read in one place,+ // the NSIS-update recovery in AppShell, and only when the// store itself was lost.//// Level (a): silent on purpose. The visible action succeedsdiff --git a/src/stores/__tests__/memory-markdown-roundtrip.test.ts b/src/stores/__tests__/memory-markdown-roundtrip.test.tsindex 8e196fca..d4043323 100644--- a/src/stores/__tests__/memory-markdown-roundtrip.test.ts+++ b/src/stores/__tests__/memory-markdown-roundtrip.test.ts@@ -116,7 +116,8 @@ describe('memory markdown round trip: the whole data-loss class (Opus-Review Nacexpect(after.content).toBe(before.content)expect(after.title).toBe(before.title)expect(after.source).toBe(before.source)- // The date round trips to DAY precision only (see isoTag/isoBack), // that is the export format, not a bug this test should flag.+ // The date round trips to DAY precision only (see isoTag/isoBack),+ // that is the export format, not a bug this test should flag.const beforeDay = new Date(before.updatedAt).toISOString().slice(0, 10)const afterDay = new Date(after.updatedAt).toISOString().slice(0, 10)expect(afterDay).toBe(beforeDay)diff --git a/src/stores/memoryStore.ts b/src/stores/memoryStore.tsindex 22cc6157..f2105ae1 100644--- a/src/stores/memoryStore.ts+++ b/src/stores/memoryStore.ts@@ -1070,7 +1070,8 @@ export const useMemoryStore = create<MemoryState>()(md += `## ${typeTitles[type]}\n\n`for (const entry of typeEntries) {const date = isoTag(entry.updatedAt)- // R2-25: escaped so a multi-line entry stays ONE physical line, // see escapeMdContent. The bracket-ending check below still reads+ // R2-25: escaped so a multi-line entry stays ONE physical line,+ // see escapeMdContent. The bracket-ending check below still reads// the RAW content: `\n`-escaping never adds or removes a// trailing `]`, and checking the escaped form would be the same// answer read through an extra step.@@ -1181,7 +1182,8 @@ export const useMemoryStore = create<MemoryState>()(return { added: 0, updated: 0, alreadyPresent: 0 }}// Tolerant shape handling: accept LU's own {entries:[...]} export, a- // bare [...] array, or {memories:[...]} (konata-session 2026-06-07, // imports silently produced 0 entries on any other shape).+ // bare [...] array, or {memories:[...]} (konata-session 2026-06-07,+ // imports silently produced 0 entries on any other shape).const entriesField = prop(raw, 'entries')const memoriesField = prop(raw, 'memories')const arr: unknown[] = Array.isArray(raw) ? rawdiff --git a/src/stores/providerStore.ts b/src/stores/providerStore.tsindex 2e7e3742..b687d46b 100644--- a/src/stores/providerStore.ts+++ b/src/stores/providerStore.ts@@ -96,7 +96,8 @@ const DEFAULT_PROVIDERS: Record<ProviderId, ProviderConfig> = {apiKey: '',isLocal: false,},- // LU Cloud chat (lu-labs.ai inference proxy). apiKey stays empty forever, // auth is the user's Supabase session token, injected per request by+ // LU Cloud chat (lu-labs.ai inference proxy). apiKey stays empty forever,+ // auth is the user's Supabase session token, injected per request by// LuCloudProvider. useCloudAuth flips `enabled` with the account state.'lu-cloud': {id: 'lu-cloud',@@ -346,7 +347,8 @@ export const useProviderStore = create<ProviderState>()(// throws every configured backend away. Harmless today (no blob carries a// numeric version yet), fatal the day this store goes to 2.migrate: keepPersistedState,- // Blobs persisted before the lu-cloud provider existed lack its entry, // backfill every missing provider from defaults so getProvider() can't+ // Blobs persisted before the lu-cloud provider existed lack its entry,+ // backfill every missing provider from defaults so getProvider() can't// hit an undefined config after an update.merge: (persisted: unknown, current: ProviderState): ProviderState => {const p = (persisted ?? {}) as Partial<ProviderState>