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
Merge branch '305/batch-edit-character' into feat/create-sota
purple2c53abb6ac89
diff --cc src/components/create/experimental/Stage.tsxindex 1b3a3559,ce85953d..94ca49c1--- a/src/components/create/experimental/Stage.tsx+++ b/src/components/create/experimental/Stage.tsx@@@ -319,12 -372,11 +373,17 @@@ function SourcePreview({ onOpenMaskEditconst setMask = useCreateStore((s) => s.setMask)const intent = useCreateStore((s) => s.intent())const meta = INTENT_MAP[intent]+ const backend = useCreateStore((s) => s.backend)+ const cloudImageModel = useCreateStore((s) => s.cloudImageModel)+ // A cloud instruction editor (qwen-image-edit, every studio editor) takes no+ // mask: same model and same rule as the Create button in the Composer.+ const noMask = backend === 'cloud' && intent === 'edit' &&+ !editNeedsMask(modelForOp('image', 'edit', cloudImageModel || defaultCloudModel('image')?.id || ''))+ const batchCount = useCreateStore((s) => s.batchSources.length)+ const batchOffered = useBatchOffered()+ // The same run over several images: no mask (it belongs to one image), and+ // the list below replaces "Change image".+ const batchOn = batchOffered && batchCount > 1// Zombie render: an intent switch drops the source in the same store update// that swaps this component out, but the child subscription can fire first.@@@ -347,17 -407,23 +414,24 @@@</button></div><ReferenceStrip />- <div className="flex items-center gap-2 mt-4">- {meta.allowsMask && !noMask && (- <Button variant="secondary" icon={Wand2} onClick={onOpenMaskEditor}>{mask ? 'Edit mask' : 'Paint mask'}</Button>- )}- <ChangeImageButton onChange={(r) => setSource(r)} />- </div>+ {!batchOn && (+ <div className="flex items-center gap-2 mt-4">- {meta.allowsMask && (++ {meta.allowsMask && !noMask && (+ <Button variant="secondary" icon={Wand2} onClick={onOpenMaskEditor}>{mask ? 'Edit mask' : 'Paint mask'}</Button>+ )}+ <ChangeImageButton onChange={(r) => setSource(r)} />+ </div>+ )}+ <BatchStrip /><p className="t-body text-gray-600 mt-3 text-center max-w-sm">- {meta.id === 'removebg' ? 'Hit Create to cut out the subject and export a transparent PNG.'+ {batchOn ? (+ meta.id === 'removebg' ? `Hit Create to cut out all ${batchCount} images.`+ : meta.id === 'upscale' ? `Hit Create to upscale all ${batchCount} images.`+ : `Write your prompt below, then Create. All ${batchCount} images get the same edit.`+ ) : meta.id === 'removebg' ? 'Hit Create to cut out the subject and export a transparent PNG.': meta.id === 'upscale' ? 'Hit Create to upscale the image.': meta.id === 'eraser' ? 'Paint a mask over the object to remove, then hit Create.'+ : noMask ? 'Write the edit prompt below, then Create. This model needs no mask.': meta.allowsMask ? 'Leave the mask empty to restyle the whole image, or paint an area to change just that. Write your prompt below, then Create.': 'Describe the motion below, then Create.'}</p>diff --cc src/stores/createStore.tsindex 8d6b6ece,754aea1a..59b9b3a3--- a/src/stores/createStore.ts+++ b/src/stores/createStore.ts@@@ -916,17 -915,12 +931,19 @@@ export const useCreateStore = create<Cr}})if (changed) set({ cloudStudioOptions: {} })+ // The list of further source images stays only where it can run.+ if (get().batchSources.length && (!get().source || !BATCH_INTENTS.has(intent))) get().setBatchSources([])},toggleNegative: () => set((s) => ({ showNegative: !s.showNegative })),- toggleLora: (name) => set((s) => ({ selectedLoras: s.selectedLoras.some((l) => l.name === name) ? s.selectedLoras.filter((l) => l.name !== name) : [...s.selectedLoras, { name, strength: 0.8 }] })),- setLoraStrengthFor: (name, strength) => set((s) => ({ selectedLoras: s.selectedLoras.map((l) => l.name === name ? { ...l, strength: Math.max(0, Math.min(2, strength)) } : l) })),+ toggleLora: (name) => set((s) => ({ selectedLoras: s.selectedLoras.some((l) => l.name === name) ? s.selectedLoras.filter((l) => l.name !== name) : [...s.selectedLoras, { name, strength: s.loraStrengths[name] ?? defaultLoraStrength(name) }] })),+ setLoraStrengthFor: (name, strength) => set((s) => {+ if (!Number.isFinite(strength)) return {}+ const value = clampLoraStrength(strength)+ return {+ selectedLoras: s.selectedLoras.map((l) => l.name === name ? { ...l, strength: value } : l),+ loraStrengths: { ...s.loraStrengths, [name]: value },+ }+ }),clearLoras: () => set((s) => ({selectedLoras: [],selectedCharacter: s.selectedCharacter?.id.startsWith('local:') ? null : s.selectedCharacter,