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(create): 16:9 in the Composer gives the size Advanced settings gives (B49)
purple109a965fb176
diff --git a/src/components/create/experimental/Composer.tsx b/src/components/create/experimental/Composer.tsxindex a31c03b1..2dce675f 100644--- a/src/components/create/experimental/Composer.tsx+++ b/src/components/create/experimental/Composer.tsx@@ -5,6 +5,7 @@ import { isMlxImageHost, MAC_UPSCALE_FACTORS, type MacUpscaleFactor } from '../.import { laneImageModel, runsAtOwnSampling } from '../../../lib/image-engines'import { MLX_VIDEO_MIN_FRAMES, mlxFramesOnGrid, mlxVideoLaneEntry, mlxVideoMaxFrames, mlxTalking } from '../../../api/mlx-video'import { useMacMemoryGb } from '../../../lib/mac-memory'+import { applyAspect } from '../../../lib/create-resolution'import { useCreateStore, MODEL_TYPE_DEFAULTS, EDIT_MAX_DENOISE, imageQualityLadder, type ImageQuality } from '../../../stores/createStore'import { classifyModel, resolveLocalOpPick } from '../../../api/comfyui'import { editIgnoresStrength } from '../../../lib/edit-references'@@ -790,7 +791,10 @@ function LaneControls() {size="sm"layoutId="aspect"value={aspectKey(width, height)}- onChange={(k) => { const p = aspectPresets(imageModelType)[k as AspectKey]; setSize(p.w, p.h) }}+ // B49 (3.0.9, Discord): the same rule as the ratio buttons in+ // Advanced settings (lib/create-resolution applyAspect), so+ // 16:9 here and 16:9 there give the same size.+ onChange={(k) => { const [rw, rh] = k.split(':').map(Number); const p = applyAspect(width, height, rw, rh); setSize(p.width, p.height) }}options={[{ value: '1:1', label: '1:1', icon: Square },{ value: '3:4', label: '3:4' },@@ -969,22 +973,10 @@ function LabeledControl({ label, children }: { label: string; children: React.Retype AspectKey = '1:1' | '3:4' | '4:3' | '16:9'const RATIO: Record<AspectKey, number> = { '1:1': 1, '3:4': 3 / 4, '4:3': 4 / 3, '16:9': 16 / 9 }-function snap64(n: number): number { return Math.max(64, Math.round(n / 64) * 64) }// Video dims want a multiple of 16 (the VAE/latent grid of the WAN/S2V/VACE// families) — snap the resolution tiers to it so the graph never rejects them.function snap16(n: number): number { return Math.max(128, Math.round(n / 16) * 16) }-function aspectPresets(modelType: string): Record<AspectKey, { w: number; h: number }> {- const def = MODEL_TYPE_DEFAULTS[modelType as keyof typeof MODEL_TYPE_DEFAULTS] ?? MODEL_TYPE_DEFAULTS.sdxl- const baseLong = Math.max(def.width, def.height)- const out = {} as Record<AspectKey, { w: number; h: number }>- for (const k of Object.keys(RATIO) as AspectKey[]) {- const r = RATIO[k]- out[k] = r >= 1 ? { w: baseLong, h: snap64(baseLong / r) } : { w: snap64(baseLong * r), h: baseLong }- }- return out-}-function aspectKey(w: number, h: number): AspectKey {const r = w / hlet best: AspectKey = '1:1'; let bestD = Infinitydiff --git a/src/components/create/experimental/Lightbox.tsx b/src/components/create/experimental/Lightbox.tsxindex 95bfbe80..32c7c04e 100644--- a/src/components/create/experimental/Lightbox.tsx+++ b/src/components/create/experimental/Lightbox.tsx@@ -62,7 +62,7 @@ export function Lightbox({ item, onClose, onSaveCharacter, onNavigate, promptOpeconst scale = item && zoom.id === item.id ? zoom.scale : 1const panX = scale > 1 ? zoom.panX : 0const panY = scale > 1 ? zoom.panY : 0- // B47 (3.0.9, Discord boromirofgeo 30.10.2026): a zoomed picture is moved+ // B47 (3.0.9, Discord 30.10.2026): a zoomed picture is moved// with the mouse button held, as in a photo viewer. The drag goes on outside// the picture, and letting go there does not close the view.const [dragging, setDragging] = useState(false)diff --git a/src/components/create/experimental/__tests__/composer-aspect-gleich-advanced.test.tsx b/src/components/create/experimental/__tests__/composer-aspect-gleich-advanced.test.tsxnew file mode 100644index 00000000..8dd74644--- /dev/null+++ b/src/components/create/experimental/__tests__/composer-aspect-gleich-advanced.test.tsx@@ -0,0 +1,57 @@+// @vitest-environment jsdom+/**+ * B49 (3.0.9, Discord 30.10.2026): 16:9 in the Composer set+ * 1024x576, 16:9 in Advanced settings 1360x768 for the same model. Both now+ * keep the pixel budget the user has set (lib/create-resolution applyAspect).+ */+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'+import { render, cleanup, screen, fireEvent } from '@testing-library/react'++const host = vi.hoisted(() => ({ mac: false }))++vi.mock('../CreateContext', () => ({+ useCreateExp: () => ({+ generate: vi.fn(), cancel: vi.fn(), makeVoice: vi.fn(), quota: null,+ samplerList: [], schedulerList: [], loraList: [], vaeList: [], refreshModelLists: vi.fn(),+ connected: true, modelsLoaded: true, modelLoadError: null, mlxMissing: null,+ installCapability: vi.fn(), installModelBundle: vi.fn(),+ }),+}))+vi.mock('../../../../api/mlx-image', async (orig) => ({+ ...((await orig()) as Record<string, unknown>),+ isMlxImageHost: () => host.mac,+}))+vi.mock('../../../../api/backend', async (orig) => ({+ ...((await orig()) as Record<string, unknown>),+ openExternal: vi.fn(),+}))++import { Composer } from '../Composer'+import { useCreateStore } from '../../../../stores/createStore'+import { applyAspect, ASPECT_RATIOS } from '../../../../lib/create-resolution'++beforeEach(() => {+ useCreateStore.setState({+ backend: 'local', isGenerating: false, error: null, gallery: [], source: null,+ imageModel: 'sd_xl_base_1.0.safetensors', imageModelType: 'sdxl', width: 1024, height: 1024,+ } as never)+ useCreateStore.getState().setIntent('image')+})+afterEach(cleanup)++describe('B49: one 16:9 for the Composer and Advanced settings', () => {+ it('every ratio of the Composer gives the size the button in Advanced gives', () => {+ render(<Composer onOpenAdvanced={() => {}} onOpenWorkflows={() => {}} />)+ for (const label of ['16:9', '4:3', '3:4', '1:1']) {+ useCreateStore.setState({ width: 1024, height: 1024 })+ const r = ASPECT_RATIOS.find((a) => a.label === label)!+ const advanced = applyAspect(1024, 1024, r.w, r.h)+ fireEvent.click(screen.getByRole('radio', { name: label }))+ const s = useCreateStore.getState()+ expect([label, s.width, s.height]).toEqual([label, advanced.width, advanced.height])+ }+ useCreateStore.setState({ width: 1024, height: 1024 })+ fireEvent.click(screen.getByRole('radio', { name: '16:9' }))+ expect([useCreateStore.getState().width, useCreateStore.getState().height]).toEqual([1360, 768])+ })+})diff --git a/src/components/create/experimental/__tests__/galerie-zeigt-die-loras.test.tsx b/src/components/create/experimental/__tests__/galerie-zeigt-die-loras.test.tsxindex 0edc5766..fa2088c1 100644--- a/src/components/create/experimental/__tests__/galerie-zeigt-die-loras.test.tsx+++ b/src/components/create/experimental/__tests__/galerie-zeigt-die-loras.test.tsx@@ -1,6 +1,6 @@// @vitest-environment jsdom/**- * B40 (3.0.9, Discord boromirofgeo 29.10.2026): the gallery and the large view+ * B40 (3.0.9, Discord 29.10.2026): the gallery and the large view* say which LoRAs a picture was made with, and at what strength. The entry* carries them since this change (GalleryItem.loras, written by the local* runs through ranLoras).diff --git a/src/lib/render/lora-lanes.ts b/src/lib/render/lora-lanes.tsindex 7074d09e..f2d5da50 100644--- a/src/lib/render/lora-lanes.ts+++ b/src/lib/render/lora-lanes.ts@@ -1,4 +1,4 @@-// B24 (3.0.9, Discord .molot 28.10.2026): the LoRA picks belong to the task and+// B24 (3.0.9, Discord 28.10.2026): the LoRA picks belong to the task and// the model they were made for. One list for every tab kept a video LoRA// switched on after the change to Image, where it rode along into the run of// another model. Each task + model now keeps its own picks: leaving it putsdiff --git a/src/stores/__tests__/createStore-lora-je-aufgabe-und-modell.test.ts b/src/stores/__tests__/createStore-lora-je-aufgabe-und-modell.test.tsindex 672c6444..70a4e7a9 100644--- a/src/stores/__tests__/createStore-lora-je-aufgabe-und-modell.test.ts+++ b/src/stores/__tests__/createStore-lora-je-aufgabe-und-modell.test.ts@@ -1,5 +1,5 @@/**- * B24 (3.0.9, Discord .molot 28.10.2026): a video LoRA stayed switched on+ * B24 (3.0.9, Discord 28.10.2026): a video LoRA stayed switched on* after the change to Image and rode into the run of another model. The LoRA* picks now belong to the task and the model: leaving puts them aside, coming* back brings them back, a lane never visited starts empty.