Skip to content

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.

fix(create,code): what the second box run found

purple4c0c5d8ee90b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 59fede10..0e1aae0f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -62,11 +62,23 @@ cloud catalogue. It also fixes the bugs reported on GitHub and Discord since
- **Turbo checkpoints start at a few steps.** SD-Turbo, SDXL-Turbo,
Lightning, Hyper-SD and LCM checkpoints start at 4 steps and CFG 1 instead
of the family's 25 steps.
-- **Installed models show their real file format.** A .ckpt such as the
- AnimateDiff motion module was labelled "safetensors"; the card now reads the
- file ending.
+- **Installed models show their real file format.** Every ComfyUI file that
+ was not a .gguf was labelled "safetensors", a .ckpt motion module too; the
+ list now reads the file ending.
- **Local API counts say what they count.** "Requests" is now "Model
requests", since listing the models is not counted.
+- **A render says when it left a LoRA out.** The "Skipping LoRA" line was
+ gone a second later; the result now keeps it under the picture. Character
+ Studio LoRAs say "Z-Image only" before you tick them, and the strength
+ slider shows its number.
+- **A no to a download is not a failure.** Cancel in the "One more file is
+ needed" question now reads "Not started." with the reason, instead of
+ "Generation failed".
+- **One message while ComfyUI starts.** The red "ComfyUI is not running" no
+ longer stands next to "ComfyUI is starting up."
+- **New Chat in Code works like New.** The sidebar button added an empty
+ "Coding Agent" on every click and reset Bypass to Ask; it now reuses an
+ untouched session and keeps your mode.
- **No download offer while ComfyUI is starting.** Right after launch the
Create stage could offer the 6.5 GB starter download while ComfyUI was still
coming up and the models were already on disk. It now waits.
diff --git a/e2e/code-conversation-stays-in-code.spec.ts b/e2e/code-conversation-stays-in-code.spec.ts
index d33d6f74..d614f8e3 100644
--- a/e2e/code-conversation-stays-in-code.spec.ts
+++ b/e2e/code-conversation-stays-in-code.spec.ts
@@ -133,3 +133,38 @@ test('New on an untouched Code session adds no second empty entry', async ({ pag
await newButton.click()
expect(await codeConvs()).toBe(before + 1)
})
+
+test('New Chat in the sidebar follows the same rule as New in Code', async ({ page }) => {
+ // 3.0.4 Gegenprobe 8: the sidebar's New Chat added an empty "Coding Agent"
+ // row on every click and reset Bypass to Ask.
+ await bootCode(page)
+ const state = () => page.evaluate(async () => {
+ const chatPath = '/src/stores/chatStore.ts'
+ const codexPath = '/src/stores/codexStore.ts'
+ const chat = await import(/* @vite-ignore */ chatPath) as typeof import('../src/stores/chatStore')
+ const codex = await import(/* @vite-ignore */ codexPath) as typeof import('../src/stores/codexStore')
+ const { conversations, activeConversationId } = chat.useChatStore.getState()
+ return {
+ count: conversations.filter((c) => c.mode === 'codex').length,
+ mode: codex.useCodexStore.getState().modeByConversation[activeConversationId ?? ''] ?? null,
+ }
+ })
+ await page.evaluate(async () => {
+ const chatPath = '/src/stores/chatStore.ts'
+ const codexPath = '/src/stores/codexStore.ts'
+ const chat = await import(/* @vite-ignore */ chatPath) as typeof import('../src/stores/chatStore')
+ const codex = await import(/* @vite-ignore */ codexPath) as typeof import('../src/stores/codexStore')
+ codex.useCodexStore.getState().chooseCodexMode(chat.useChatStore.getState().activeConversationId!, 'bypass', false)
+ })
+ const sidebarNew = page.getByRole('button', { name: /New Chat/i })
+ const before = (await state()).count
+ await sidebarNew.click()
+ await sidebarNew.click()
+ expect((await state()).count).toBe(before)
+
+ // NEGATIVE CONTROL: with a message in it, New Chat starts a fresh session,
+ // and that one keeps Bypass.
+ await codeVerlauf(page)
+ await sidebarNew.click()
+ expect(await state()).toEqual({ count: before + 1, mode: 'bypass' })
+})
diff --git a/e2e/lora-stack-follows-the-folder.spec.ts b/e2e/lora-stack-follows-the-folder.spec.ts
index a39c3ef1..ef6f72a7 100644
--- a/e2e/lora-stack-follows-the-folder.spec.ts
+++ b/e2e/lora-stack-follows-the-folder.spec.ts
@@ -74,6 +74,9 @@ test('picks whose files are gone leave the stack, the count matches what is tick
// Pick the one that exists, then delete its file and rescan.
await page.getByRole('button', { name: /film_grain_xl/ }).click()
await expect(page.getByText('· 1 active')).toBeVisible()
+ // Gegenprobe 8: the strength reads as a number.
+ await expect(page.getByText('Strength')).toBeVisible()
+ await expect(page.getByText('0.80', { exact: true })).toBeVisible()
await page.evaluate(() => { (window as unknown as { __LORAS__: string[] }).__LORAS__ = [] })
await page.getByRole('button', { name: /Rescan/ }).click()
await expect(page.getByText(/active/)).toHaveCount(0)
@@ -94,10 +97,39 @@ test('Clear turns every LoRA off', async ({ page }) => {
test('a Z-Image character on an SDXL checkpoint says so and is not counted', async ({ page }) => {
await bootWithFakeComfy(page, [STYLE, CHAR], 'juggernautXL.safetensors')
await openStack(page)
- await page.getByRole('button', { name: /char_mira_zimage/ }).click()
const row = page.getByRole('button', { name: /char_mira_zimage/ })
+ // Gegenprobe 8: the row says so before anyone ticks it.
+ await expect(row).toContainText('Z-Image only')
+ await row.click()
await expect(row).toContainText('Z-Image only')
await expect(page.getByText(/active/)).toHaveCount(0)
// Gegenprobe 02.10.: the row showed a strength slider as if it applied.
await expect(row.locator('xpath=..').getByRole('slider')).toHaveCount(0)
})
+
+test('a render that left a LoRA out says so under the result', async ({ page }) => {
+ // Gegenprobe 8 (02.10.): the "Skipping LoRA" progress line was gone a
+ // second later, so the picture looked as if the style had been applied.
+ await page.addInitScript(() => {
+ localStorage.setItem('create-store', JSON.stringify({
+ state: {
+ backend: 'local',
+ gallery: [{
+ id: 'g1', type: 'image', filename: 'apple_k3f9q2_00001_.png', subfolder: '', prompt: 'a red apple', negativePrompt: '',
+ model: 'sd_turbo.safetensors', modelType: 'sd15', seed: 7, steps: 4, cfgScale: 1, sampler: 'euler',
+ scheduler: 'simple', width: 512, height: 512, batchSize: 1, createdAt: Date.now(),
+ runNote: 'Skipping LoRA no longer in models/loras: zz_gegenprobe_style',
+ }],
+ },
+ version: 2,
+ }))
+ })
+ await bootWithFakeComfy(page, [], 'sd_turbo.safetensors')
+ const png = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==', 'base64')
+ await page.route('**/view?**', (route) => route.fulfill({ status: 200, contentType: 'image/png', body: png }))
+ await page.goto('/')
+ await page.getByRole('button', { name: /^Create$/ }).click()
+ await page.getByRole('button', { name: 'Open the gallery' }).click()
+ await page.locator('aside').filter({ hasText: 'Gallery' }).locator('.group').first().locator('button').first().click()
+ await expect(page.getByTestId('run-note')).toHaveText('Skipping LoRA no longer in models/loras: zz_gegenprobe_style')
+})
diff --git a/e2e/no-download-offer-while-comfyui-starts.spec.ts b/e2e/no-download-offer-while-comfyui-starts.spec.ts
index ae456829..73f17258 100644
--- a/e2e/no-download-offer-while-comfyui-starts.spec.ts
+++ b/e2e/no-download-offer-while-comfyui-starts.spec.ts
@@ -31,6 +31,8 @@ test('while ComfyUI is starting the stage offers no download', async ({ page })
await expect(page.getByText('ComfyUI is starting up.')).toBeVisible({ timeout: 15_000 })
await page.waitForTimeout(1500)
await expect(page.getByText('Local image generation needs a one-time download')).toHaveCount(0)
+ // Gegenprobe 8: a red "is not running" stood next to "is starting up".
+ await expect(page.getByText(/ComfyUI is not running/)).toHaveCount(0)
})
// Negative control: nothing running and nothing starting, so the card is the
diff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsx
index 87fdcbac..9e85de05 100644
--- a/src/components/chat/CodexView.tsx
+++ b/src/components/chat/CodexView.tsx
@@ -31,6 +31,7 @@ import { useModelStore } from '../../stores/modelStore'
import { useAnyAgentLoopActive } from '../../stores/agentLoopStore'
import { useUIStore } from '../../stores/uiStore'
import { RecentChats } from './RecentChats'
+import { openNewCodeSession } from '../../lib/code-session'
import { useAgentModeStore } from '../../stores/agentModeStore'
import {
CODEX_WORKDIR_LOCK_TITLE,
@@ -139,7 +140,6 @@ export function CodexView() {
const codexReviewMode = useSettingsStore((s) => s.settings.codexReviewMode)
const userAvatarDataUrl = useSettingsStore((s) => s.settings.userAvatarDataUrl)
const activeModel = useModelStore((s) => s.activeModel)
- const createConversation = useChatStore((s) => s.createConversation)
const codexWorkingDir = useCodexStore((s) => s.workingDirectory)
const clearWorkingDirectory = useCodexStore((s) => s.clearWorkingDirectory)
// A8 (2.6.8): the same Remove sits in the explorer column, but that column
@@ -200,15 +200,7 @@ export function CodexView() {
const startNewSession = () => {
stopCodex()
if (!activeModel) return
- // An untouched session IS a new session. Each click used to add another
- // empty "Coding Agent" to the list (3.0.4 box run: two clicks, two rows).
- const { conversations: convs, activeConversationId: current } = useChatStore.getState()
- const open = convs.find((c) => c.id === current)
- if (open?.mode === 'codex' && open.messages.length === 0
- && !(useCodexStore.getState().threads[open.id]?.events.length)) return
- const convId = createConversation(activeModel, '', 'codex')
- // "New" keeps the Ask/Bypass the user last picked (Gegenprobe 01.10.2026).
- useCodexStore.getState().startConversationMode(convId)
+ openNewCodeSession(activeModel)
}
return (
diff --git a/src/components/create/experimental/CreateExperimental.tsx b/src/components/create/experimental/CreateExperimental.tsx
index cfd55feb..74539171 100644
--- a/src/components/create/experimental/CreateExperimental.tsx
+++ b/src/components/create/experimental/CreateExperimental.tsx
@@ -234,7 +234,10 @@ function CreateExperimentalInner() {
lipsync: lipsyncModelList, motion: motionModelList,
}),
})
- const banner = error ?? (setupCardOwnsStage ? null : modelLoadError)
+ // While ComfyUI starts, "ComfyUI is starting up." is the one voice; the
+ // load error "is not running" said the opposite in red next to it
+ // (3.0.4 Gegenprobe 8).
+ const banner = error ?? (setupCardOwnsStage || comfyStarting ? null : modelLoadError)
// "Edit with mask" on a finished image force-sets the 'edit' intent. On the
// MLX Mac that lane does not exist (no ComfyUI inpaint nodes, and MLX
diff --git a/src/components/create/experimental/OutputView.tsx b/src/components/create/experimental/OutputView.tsx
index 90b5a7d2..b8484521 100644
--- a/src/components/create/experimental/OutputView.tsx
+++ b/src/components/create/experimental/OutputView.tsx
@@ -218,6 +218,9 @@ export function ResultView({ item, onFullscreen, onSendToEditor, onAnimate }: Re
)}
<span className="truncate max-w-[280px]">{prettyModel(item.model)}</span>
</div>
+ {item.runNote && (
+ <div className="mt-1 t-mono text-gray-500" data-testid="run-note">{item.runNote}</div>
+ )}
</div>
</div>
)
diff --git a/src/components/create/experimental/ParamGroups.tsx b/src/components/create/experimental/ParamGroups.tsx
index 70ef7a69..c43ebefb 100644
--- a/src/components/create/experimental/ParamGroups.tsx
+++ b/src/components/create/experimental/ParamGroups.tsx
@@ -258,6 +258,8 @@ export function ParamGroups() {
<div className="t-control text-gray-600">No LoRAs found yet. Drop .safetensors files into ComfyUI&apos;s models/loras folder and hit Rescan. Characters trained in Character Studio land there automatically.</div>
) : (
<div className="space-y-1 max-h-44 overflow-y-auto scrollbar-thin">
+ {/* Gegenprobe 8 (02.10.): "Z-Image only" showed only after a
+ click, and the strength had no number next to it. */}
{loraList.map((name) => {
const active = s.selectedLoras.find((l) => l.name === name)
const fits = loraFitsModel(name, laneType)
@@ -265,11 +267,11 @@ export function ParamGroups() {
<div key={name} className={cn('rounded-md border transition-colors', active ? 'border-white/15 bg-white/[0.06]' : 'border-white/[0.06]')}>
<button onClick={() => s.toggleLora(name)} className="w-full flex items-center justify-between px-2.5 py-1.5 t-control text-left text-gray-300">
<span className="truncate">{name.replace(/\.safetensors$/, '')}</span>
- <span className={cn('t-mono', active && fits ? 'text-emerald-400' : 'text-gray-600')}>{active ? (fits ? 'on' : 'Z-Image only') : 'off'}</span>
+ <span className={cn('t-mono', active && fits ? 'text-emerald-400' : 'text-gray-600')}>{fits ? (active ? 'on' : 'off') : 'Z-Image only'}</span>
</button>
{active && fits && (
<div className="px-2.5 pb-2">
- <Slider min={0} max={2} step={0.05} value={active.strength} onChange={(v) => s.setLoraStrengthFor(name, v)} format={(v) => v.toFixed(2)} />
+ <Slider label="Strength" min={0} max={2} step={0.05} value={active.strength} onChange={(v) => s.setLoraStrengthFor(name, v)} format={(v) => v.toFixed(2)} />
</div>
)}
</div>
diff --git a/src/components/create/experimental/__tests__/ein-zustand-eine-stimme.test.ts b/src/components/create/experimental/__tests__/ein-zustand-eine-stimme.test.ts
index 467a4f2c..950d764d 100644
--- a/src/components/create/experimental/__tests__/ein-zustand-eine-stimme.test.ts
+++ b/src/components/create/experimental/__tests__/ein-zustand-eine-stimme.test.ts
@@ -86,7 +86,13 @@ describe('D-S31: die Regel gibt es genau einmal', () => {
})
it('der Balken haengt an ihr', () => {
- expect(CREATE).toMatch(/setupCardOwnsStage \? null : modelLoadError/)
+ expect(CREATE).toMatch(/setupCardOwnsStage \|\| comfyStarting \? null : modelLoadError/)
+ })
+
+ it('schweigt, waehrend ComfyUI startet (Gegenprobe 8, 02.10.)', () => {
+ // "is not running" in Rot neben "is starting up" sagte zweimal Gegensaetzliches.
+ const b = CREATE.match(/const banner = ([^\n]+)/)
+ expect(b![1]).toContain('comfyStarting ? null')
})
it('echte Laufzeitfehler bleiben unberuehrt', () => {
diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx
index 388eac2d..0044cc96 100644
--- a/src/components/layout/Sidebar.tsx
+++ b/src/components/layout/Sidebar.tsx
@@ -13,6 +13,7 @@ import { workspaceRejectedMessage } from '../../lib/workspace-rejected'
import { CHAT_BASE_SYSTEM_PROMPT } from '../../lib/system-prompt'
import { backendCall, isTauri } from '../../api/backend'
import { useDismissOnEscape } from '../../hooks/useDismissOnEscape'
+import { openNewCodeSession } from '../../lib/code-session'
import {
conversationMatches, sameSidebarRows, toSidebarRow, type SidebarRow,
} from './sidebar-rows'
@@ -166,6 +167,11 @@ export function Sidebar() {
// systemPrompt (so toggling personaEnabled later "just works"
// without re-reading global state), but useChat / useAgentChat
// only apply it when personaEnabled === true.
+ if (chatMode === 'codex') {
+ openNewCodeSession(activeModel)
+ setView('chat')
+ return
+ }
const persona = personasEnabled ? getActivePersona() : null
createConversation(activeModel, persona?.systemPrompt || '', chatMode)
setView('chat')
diff --git a/src/hooks/useCreate.ts b/src/hooks/useCreate.ts
index b150d985..907d72ef 100644
--- a/src/hooks/useCreate.ts
+++ b/src/hooks/useCreate.ts
@@ -56,7 +56,7 @@ import { apiNodes, type ComfyApiGraph, type ComfyExecutionMessage, type ComfyHis
import { restartComfyForNewNodes } from '../api/comfy-restart'
import { installCustomNodes, startModelDownload, getDownloadProgress, modelsNotVisibleInComfy, comfyModelTarget } from '../api/discover'
import { downloadBundleFiles, waitForModelsVisible } from '../lib/bundle-install'
-import { buildWithFixups, type FixupDeps } from '../lib/render-fixups'
+import { buildWithFixups, wasDeclined, type FixupDeps } from '../lib/render-fixups'
import { useDownloadStore } from '../stores/downloadStore'
import { useComfyInstallStore } from '../stores/comfyInstallStore'
import { checkPromptSafety, SAFETY_BLOCK_MESSAGE } from '../lib/render/safety'
@@ -960,12 +960,16 @@ export function useCreate() {
// A deleted file or a Z-Image character on another model is left out
// with a line, instead of ComfyUI refusing the whole graph.
let runLoras = selectedLoras
+ // The progress line is gone a second later, so the result keeps it
+ // too (3.0.4 Gegenprobe 8: a deleted LoRA was left out "silently").
+ let skippedNote: string | undefined
if (selectedLoras.length) {
const listed = await listedLoras().catch(() => null)
const pick = lorasForRun(selectedLoras, listed, imageModelType)
if (listed && pick.missing.length) useCreateStore.getState().keepListedLoras(listed)
const line = skippedLorasLine(pick.missing, pick.otherModel)
if (line) setProgress(0, line)
+ skippedNote = line ?? undefined
runLoras = pick.use
}
let outputWidth = width
@@ -1351,7 +1355,7 @@ export function useCreate() {
modelType: mode === 'image' ? imageModelType : (videoModelsList.find(m => m.name === activeModel)?.type ?? 'wan'),
seed: runSeed,
steps, cfgScale, sampler, scheduler, width: outputWidth, height: outputHeight, batchSize,
- createdAt: Date.now(), builderUsed, intent,
+ createdAt: Date.now(), builderUsed, intent, ...(skippedNote ? { runNote: skippedNote } : {}),
})
}
}
@@ -1442,7 +1446,7 @@ export function useCreate() {
modelType: mode === 'image' ? imageModelType : (videoModelsList.find(m => m.name === activeModel)?.type ?? 'wan'),
seed: runSeed,
steps, cfgScale, sampler, scheduler, width: outputWidth, height: outputHeight, batchSize,
- createdAt: Date.now(), builderUsed,
+ createdAt: Date.now(), builderUsed, ...(skippedNote ? { runNote: skippedNote } : {}),
})
}
}
@@ -1549,7 +1553,7 @@ export function useCreate() {
modelType: mode === 'image' ? imageModelType : (videoModelsList.find(m => m.name === activeModel)?.type ?? 'wan'),
seed: runSeed,
steps, cfgScale, sampler, scheduler, width: outputWidth, height: outputHeight, batchSize,
- createdAt: Date.now(), builderUsed, intent,
+ createdAt: Date.now(), builderUsed, intent, ...(skippedNote ? { runNote: skippedNote } : {}),
})
}
}
@@ -1587,6 +1591,10 @@ export function useCreate() {
}
if (err instanceof Error && err.message === 'Cancelled') {
// User cancelled, not an error
+ } else if (err instanceof Error && wasDeclined(err)) {
+ // A no to the download or update question: nothing failed, the run
+ // never started, and the reason says what it would have needed.
+ useCreateStore.getState().setError(`Not started. ${err.message}`)
} else {
const msg = err instanceof Error ? err.message : String(err)
useCreateStore.getState().setError(`Generation failed: ${msg}`)
diff --git a/src/lib/__tests__/a-deleted-lora-leaves-the-stack.test.ts b/src/lib/__tests__/a-deleted-lora-leaves-the-stack.test.ts
index df47bb99..4d230bf0 100644
--- a/src/lib/__tests__/a-deleted-lora-leaves-the-stack.test.ts
+++ b/src/lib/__tests__/a-deleted-lora-leaves-the-stack.test.ts
@@ -9,6 +9,7 @@
import { describe, it, expect, beforeEach } from 'vitest'
import { lorasForRun, loraFitsModel, skippedLorasLine } from '../lora-stack'
import { useCreateStore } from '../../stores/createStore'
+import { readFileSync } from 'node:fs'
const GONE = 'char_gracechar_e110.safetensors'
const CHAR = 'char_gracechar_zimage.safetensors'
@@ -71,3 +72,14 @@ describe('the stack follows the folder', () => {
expect(useCreateStore.getState().selectedCharacter).toBeNull()
})
})
+
+describe('the result keeps the skip line (Gegenprobe 8, 02.10.)', () => {
+ it('every ComfyUI result written after the LoRA check carries the note', () => {
+ const src = readFileSync('src/hooks/useCreate.ts', 'utf8')
+ const after = src.slice(src.indexOf('let skippedNote'))
+ const adds = after.match(/addToGallery\(\{/g) ?? []
+ const notes = after.match(/\.\.\.\(skippedNote \? \{ runNote: skippedNote \} : \{\}\)/g) ?? []
+ expect(adds.length).toBeGreaterThan(0)
+ expect(notes.length).toBe(adds.length)
+ })
+})
diff --git a/src/lib/__tests__/render-fixups.test.ts b/src/lib/__tests__/render-fixups.test.ts
index 2ec613cf..1818ba1c 100644
--- a/src/lib/__tests__/render-fixups.test.ts
+++ b/src/lib/__tests__/render-fixups.test.ts
@@ -1,5 +1,6 @@
import { describe, it, expect, vi } from 'vitest'
-import { buildWithFixups, downloadPrompt, remoteDownloadPrompt, UPDATE_PROMPT, type FixupDeps } from '../render-fixups'
+import { readFileSync } from 'node:fs'
+import { buildWithFixups, wasDeclined, downloadPrompt, remoteDownloadPrompt, UPDATE_PROMPT, type FixupDeps } from '../render-fixups'
const unavailable = (extra: Record<string, unknown>) => Object.assign(new Error('needs files'), { name: 'WorkflowUnavailableError', ...extra })
const T5 = { downloadFilename: 't5.safetensors', downloadUrl: 'https://huggingface.co/x/t5.safetensors', subfolder: 'text_encoders', sizeGB: 5.16, matchPatterns: [] }
@@ -31,6 +32,17 @@ describe('buildWithFixups', () => {
const d = deps(false)
await expect(buildWithFixups(vi.fn().mockRejectedValue(err), d)).rejects.toBe(err)
expect(d.download).not.toHaveBeenCalled()
+ // Gegenprobe 8: Create says "Not started", not "Generation failed".
+ expect(wasDeclined(err)).toBe(true)
+ })
+
+ it('an error nobody was asked about is not a no', async () => {
+ const plain = new Error('boom')
+ await expect(buildWithFixups(vi.fn().mockRejectedValue(plain), deps())).rejects.toBe(plain)
+ expect(wasDeclined(plain)).toBe(false)
+ const update = unavailable({ needsComfyUpdate: true })
+ await expect(buildWithFixups(vi.fn().mockRejectedValue(update), deps(false))).rejects.toBe(update)
+ expect(wasDeclined(update)).toBe(true)
})
it('never offers the same fix twice, and never touches errors it cannot fix', async () => {
@@ -86,3 +98,12 @@ describe('buildWithFixups', () => {
})
})
})
+
+describe('Create after a no (Gegenprobe 8, 02.10.)', () => {
+ it('says Not started with the reason, not Generation failed', () => {
+ const src = readFileSync('src/hooks/useCreate.ts', 'utf8')
+ const branch = src.slice(src.indexOf('} else if (err instanceof Error && wasDeclined(err)) {'))
+ expect(branch.slice(0, 400)).toContain('setError(`Not started. ${err.message}`)')
+ expect(branch.indexOf('Not started.')).toBeLessThan(branch.indexOf('Generation failed'))
+ })
+})
diff --git a/src/lib/code-session.ts b/src/lib/code-session.ts
new file mode 100644
index 00000000..b789f8ff
--- /dev/null
+++ b/src/lib/code-session.ts
@@ -0,0 +1,18 @@
+// One way to start a Code session, for the New button in the Code area and
+// for New Chat in the sidebar. The sidebar used to create the conversation
+// itself: every click added an empty "Coding Agent" row and reset Bypass to
+// Ask, which the Code button had stopped doing (3.0.4 Gegenprobe 8).
+import { useChatStore } from '../stores/chatStore'
+import { useCodexStore } from '../stores/codexStore'
+
+/** Opens a fresh Code session, or keeps the open one when it is untouched. */
+export function openNewCodeSession(model: string): void {
+ const { conversations, activeConversationId, createConversation } = useChatStore.getState()
+ const open = conversations.find((c) => c.id === activeConversationId)
+ // An untouched session IS a new session.
+ if (open?.mode === 'codex' && open.messages.length === 0
+ && !(useCodexStore.getState().threads[open.id]?.events.length)) return
+ const convId = createConversation(model, '', 'codex')
+ // "New" keeps the Ask/Bypass the user last picked (Gegenprobe 01.10.2026).
+ useCodexStore.getState().startConversationMode(convId)
+}
diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.ts
index 20f46894..e321cab1 100644
--- a/src/lib/release-notes.ts
+++ b/src/lib/release-notes.ts
@@ -156,7 +156,7 @@ export const RELEASE_NOTES: ReleaseNote[] = [
},
{
title: 'Fixes from GitHub and Discord.',
- detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it. A newer image or video model with a missing encoder or VAE names that file and offers the download, instead of ending in "Value not in list". A LoRA deleted from the loras folder leaves the stack, a run only sends LoRAs ComfyUI lists, and Clear turns the stack off. The Code agent runs tool calls a cloud model writes into its answer or sends under the name "function", instead of stopping on them. A downloaded render is always the one you picked, and Download in the gallery strip opens the Save dialog on Windows. Create no longer offers the starter download while ComfyUI is still starting, and Turbo or Lightning checkpoints start at 4 steps. The Code area has an input box even before the first code conversation, and an installed .ckpt model no longer shows as safetensors.',
+ detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it. A newer image or video model with a missing encoder or VAE names that file and offers the download, instead of ending in "Value not in list". A LoRA deleted from the loras folder leaves the stack, a run only sends LoRAs ComfyUI lists, and Clear turns the stack off. The Code agent runs tool calls a cloud model writes into its answer or sends under the name "function", instead of stopping on them. A downloaded render is always the one you picked, and Download in the gallery strip opens the Save dialog on Windows. Create no longer offers the starter download while ComfyUI is still starting, and Turbo or Lightning checkpoints start at 4 steps. The Code area has an input box even before the first code conversation, and an installed .ckpt model no longer shows as safetensors. A render that left a LoRA out says so under the picture, a Cancel in the download question reads Not started instead of Generation failed, and New Chat in Code no longer adds an empty session.',
},
{
title: 'Writing a long file no longer ends the run.',
diff --git a/src/lib/render-fixups.ts b/src/lib/render-fixups.ts
index f2a76bcf..c67ac4f3 100644
--- a/src/lib/render-fixups.ts
+++ b/src/lib/render-fixups.ts
@@ -91,6 +91,18 @@ export const UPDATE_PROMPT: FixupPrompt = {
confirm: 'Update ComfyUI and render',
}
+/** The original reason, marked as the user's own no, so Create can say
+ * "Not started" instead of "Generation failed" (3.0.4 Gegenprobe 8: a
+ * deliberate Cancel in the download question read as a failure). */
+function declined(err: unknown): unknown {
+ if (err instanceof Error) Object.assign(err, { declined: true })
+ return err
+}
+
+export function wasDeclined(err: unknown): boolean {
+ return err instanceof Error && (err as { declined?: boolean }).declined === true
+}
+
/** A build that can be retried after its missing pieces are fixed. The same
* fix is never offered twice: a second identical failure is reported. */
export async function buildWithFixups<T>(build: () => Promise<T>, deps: FixupDeps, maxRounds = 3): Promise<T> {
@@ -106,7 +118,7 @@ export async function buildWithFixups<T>(build: () => Promise<T>, deps: FixupDep
if (remote) throw new Error(remoteUpdateMessage(remote))
if (done.has('update')) throw err
done.add('update')
- if (!(await deps.ask(UPDATE_PROMPT))) throw err
+ if (!(await deps.ask(UPDATE_PROMPT))) throw declined(err)
await deps.updateComfy()
} else {
const files = (e.missing ?? []).filter(
@@ -115,7 +127,7 @@ export async function buildWithFixups<T>(build: () => Promise<T>, deps: FixupDep
const key = files.map((f) => f.downloadFilename).sort().join('|')
if (done.has(key)) throw err
done.add(key)
- if (!(await deps.ask(remote ? remoteDownloadPrompt(files, remote) : downloadPrompt(files)))) throw err
+ if (!(await deps.ask(remote ? remoteDownloadPrompt(files, remote) : downloadPrompt(files)))) throw declined(err)
await deps.download(files)
// On another machine nothing can render with them until they are
// copied over, so the run ends here and says what to copy where.
diff --git a/src/stores/createStore.ts b/src/stores/createStore.ts
index 1f2b08bf..3b159856 100644
--- a/src/stores/createStore.ts
+++ b/src/stores/createStore.ts
@@ -204,6 +204,9 @@ export interface GalleryItem {
batchSize: number
createdAt: number
builderUsed?: 'dynamic' | 'legacy' | 'custom'
+ /** What the run left out of the request, e.g. "Skipping LoRA no longer in
+ * models/loras: style". Shown under the result. */
+ runNote?: string
resolvedVAE?: string
resolvedCLIP?: string
/** Self-contained media URL for backends that don't serve files over