Eliminate xAIGen and LTX; AIGen is the only studio.

Drop the studio split, backup-to-xAIGen link, and LTX engine option. Show all LoRAs on AIGen and remove the Photos show/hide inputs toggle so slots stay visible.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-27 17:55:59 -05:00
co-authored by Cursor
parent 2b603b1d58
commit 08caeb51de
38 changed files with 174 additions and 635 deletions
+1 -28
View File
@@ -386,13 +386,6 @@
:disabled="keepingInputBusy"
@click="saveFocusedAsInput"
>{{ keepingInputBusy ? 'Saving…' : 'Save as input' }}</button>
<button
v-if="focused.kind === 'still' && backupStudioEnabled"
type="button"
class="rounded-full border border-white/10 px-3 py-1.5 text-xs text-zinc-300 hover:text-white"
:disabled="backupBusy"
@click="sendFocusedToBackup"
>{{ backupBusy ? 'Sending…' : 'Send to Backup' }}</button>
<a
v-if="downloadHref"
:href="downloadHref"
@@ -557,7 +550,6 @@ import {
type LibraryTrack
} from '~/utils/libraryBrowse'
import { libraryAfterWipe, libraryMediaUrl, mergeLibraryRows } from '~/shared/studio2/viewer.mjs'
import { isXaigenStudio } from '~/utils/videoModels'
import { clipSettingsRows, stillSettingsRows, trackSettingsRows } from '~/utils/libraryGeneration'
const CARD_MIN = 156
@@ -574,12 +566,7 @@ const filterOptions = [
const runtimeConfig = useRuntimeConfig()
const instanceName = ref(String(runtimeConfig.public.instanceName || 'AIGen'))
const backupStudioEnabled = computed(() => Boolean(runtimeConfig.public.backupStudioEnabled))
const backupBusy = ref(false)
const showPrivacyToggles = computed(() => isXaigenStudio({
studio: runtimeConfig.public.studio,
instanceName: runtimeConfig.public.instanceName || instanceName.value
}))
const showPrivacyToggles = computed(() => false)
const folders = ref<LibraryFolder[]>([])
const clips = ref<LibraryClip[]>([])
const stills = ref<LibraryStill[]>([])
@@ -1194,20 +1181,6 @@ function useInStudio(entry: LibraryEntry) {
}
}
async function sendFocusedToBackup() {
const still = focusedStill.value
if (!still || !backupStudioEnabled.value || backupBusy.value) return
backupBusy.value = true
try {
await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' })
toast('Sent to Backup')
} catch (error: any) {
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
} finally {
backupBusy.value = false
}
}
async function saveFocusedAsInput() {
const still = focusedStill.value
if (!still || keepingInputBusy.value) return
+21 -113
View File
@@ -1,7 +1,7 @@
<template>
<div class="min-h-dvh min-w-0">
<AppHeader
:subtitle="advanced ? (ltxEnabled ? 'MiniMax H3 · LTX-2.3 · Flux.2 Klein' : 'MiniMax H3 · Flux.2 Klein') : 'Create images, video, and music'"
:subtitle="advanced ? 'MiniMax H3 · Flux.2 Klein' : 'Create images, video, and music'"
current="studio"
:queue-count="queueBadgeCount"
@gpu="pollComfyHealth"
@@ -11,7 +11,6 @@
<StudioKindCards
:advanced="advanced"
:current="imageStudio ? 'image' : 'video'"
:ltx-enabled="ltxEnabled"
:video-engine="videoEngine"
:video-start="videoStart"
:image-engine="v2Engine"
@@ -754,7 +753,7 @@
<span>Model</span>
<select v-if="imageStudio" :value="v2Engine" class="w-full rounded-xl border border-white/15 bg-zinc-900 p-3" @change="setV2Engine(($event.target as HTMLSelectElement).value as ImageV2Engine)"><option value="flux">Flux Klein 9B</option><option value="krea">Krea 2 Turbo</option><option value="moss">MOSS-Image</option></select>
<p v-if="imageStudio && v2Engine === 'moss'" class="text-[11px] leading-snug text-zinc-500">Text-to-image only. INT8 SFT, text encoder on CPU, 25 steps, CFG 2.5, shift 5. Starts at 1024×1024.</p>
<select v-else :value="videoEngine" class="w-full rounded-xl border border-white/15 bg-zinc-900 p-3" @change="selectVideoEngine(($event.target as HTMLSelectElement).value as VideoEngineId)"><option value="minimax">MiniMax H3</option><option v-if="ltxEnabled" value="ltx">LTX 2.3</option></select>
<select v-else :value="videoEngine" class="w-full rounded-xl border border-white/15 bg-zinc-900 p-3" @change="selectVideoEngine(($event.target as HTMLSelectElement).value as VideoEngineId)"><option value="minimax">MiniMax H3</option></select>
</label>
<div v-if="studioMode === 'video'" class="max-w-md space-y-2">
<LoraSelect
@@ -1437,15 +1436,6 @@
>
{{ keepingInputBusy ? 'Saving…' : 'Save as input' }}
</button>
<button
v-if="canUseGeneratedStill && backupStudioEnabled"
type="button"
class="inline-flex rounded-2xl border border-amber-300/40 px-4 py-2 text-sm text-amber-100 hover:border-amber-300/70 disabled:cursor-not-allowed disabled:opacity-50"
:disabled="Boolean(backupBusyId)"
@click="sendOutputStillToBackup"
>
{{ backupBusyId ? 'Sending…' : 'Send to Backup' }}
</button>
</div>
<div v-if="extendOpen" id="extend-clip" class="mt-4 space-y-4 rounded-2xl border border-white/10 bg-zinc-950/50 p-4">
<div class="flex items-start justify-between gap-3">
@@ -1649,15 +1639,6 @@
>
{{ usingInputSettingsBusy ? 'Loading settings…' : 'Use as input' }}
</button>
<button
v-if="backupStudioEnabled"
type="button"
class="inline-flex rounded-2xl border border-amber-300/40 px-4 py-2 text-sm text-amber-100 hover:border-amber-300/70 disabled:cursor-not-allowed disabled:opacity-50"
:disabled="Boolean(backupBusyId)"
@click="sendOutputStillToBackup"
>
{{ backupBusyId ? 'Sending…' : 'Send to Backup' }}
</button>
</div>
</div>
</div>
@@ -2041,13 +2022,6 @@
:disabled="keepingInputBusy"
@click="saveStillAsInput(entry.stillGroup.head)"
>Save as input</button>
<button
v-if="backupStudioEnabled"
type="button"
class="text-xs text-amber-300"
:disabled="backupBusyId === entry.stillGroup.head.id"
@click="sendStillToBackup(entry.stillGroup.head)"
>{{ backupBusyId === entry.stillGroup.head.id ? 'Sending…' : 'Send to Backup' }}</button>
<button type="button" class="text-xs text-zinc-400" @click="toggleDetails(entry.key)">
{{ expandedDetails[entry.key] ? 'Hide details' : 'Details' }}
</button>
@@ -2124,13 +2098,6 @@
:disabled="keepingInputBusy"
@click="saveStillAsInput(item)"
>Save as input</button>
<button
v-if="backupStudioEnabled"
type="button"
class="text-xs text-amber-300"
:disabled="backupBusyId === item.id"
@click="sendStillToBackup(item)"
>{{ backupBusyId === item.id ? 'Sending…' : 'Send to Backup' }}</button>
<button type="button" class="text-xs text-zinc-400" @click="toggleDetails(item.id)">
{{ expandedDetails[item.id] ? 'Hide details' : 'Details' }}
</button>
@@ -2399,8 +2366,6 @@ import {
composeVideoWorkflow,
isLtxWorkflow,
isTextToVideo,
isXaigenStudio,
ltxWorkflowEnabled,
minimaxGraphOf,
parseVideoWorkflow,
videoEngineOf,
@@ -2619,8 +2584,6 @@ const dragging = ref(false)
const prompt = ref('')
const promptPre = ref('')
const promptPost = ref('')
const backupBusyId = ref('')
const backupStudioEnabled = computed(() => Boolean(runtimeConfig.public.backupStudioEnabled))
const shotScriptMode = ref(false)
const directorScripts = ref<DirectorScript[]>([])
const directorScriptId = ref('')
@@ -2863,22 +2826,12 @@ const comfyAsleep = ref(false)
const gpuWaking = ref(false)
const gpuWakeError = ref('')
const instanceName = ref(String(runtimeConfig.public.instanceName || 'AIGen'))
const ltxEnabled = computed(() => ltxWorkflowEnabled({
studio: runtimeConfig.public.studio,
instanceName: instanceName.value
}))
const showPrivacyToggles = computed(() => isXaigenStudio({
studio: runtimeConfig.public.studio,
instanceName: instanceName.value
}))
const v2ConceptLoraEnabled = computed(() => isXaigenStudio({
studio: runtimeConfig.public.studio,
instanceName: instanceName.value
}))
const showPrivacyToggles = computed(() => false)
const v2ConceptLoraEnabled = computed(() => true)
function imageV2EngineLoras(stack?: unknown) {
return filterLoraStackForImageEngine(
filterLoraStackForStudio(stack ?? imageV2LoraStack.value, ltxEnabled.value),
filterLoraStackForStudio(stack ?? imageV2LoraStack.value),
v2Engine.value
)
}
@@ -2969,7 +2922,7 @@ const videoWorkflow = computed(() => composeVideoWorkflow(videoEngine.value, vid
const textToVideo = computed(() => isTextToVideo(videoWorkflow.value))
const ltxVideo = computed(() => isLtxWorkflow(videoWorkflow.value))
const videoLoraOptions = computed(() => mergeLoraOptions(
filterLorasForUse(videoLoras.value, ltxVideo.value ? 'ltx' : 'minimax'),
filterLorasForUse(videoLoras.value, 'minimax'),
[
...videoLoraStack.value.map(item => item.name),
...extendLoraStack.value.map(item => item.name),
@@ -4137,13 +4090,8 @@ onMounted(async () => {
videoEngine.value = videoEngineOf(saved)
minimaxGraph.value = minimaxGraphOf(saved) === 'v1' ? 'v2' : minimaxGraphOf(saved)
const engine = localStorage.getItem('aigen-video-engine')
if (engine === 'ltx' || engine === 'minimax') videoEngine.value = engine
if (!ltxEnabled.value && videoEngine.value === 'ltx') {
videoEngine.value = 'minimax'
applyEngineDefaults('minimax')
} else if (videoEngine.value === 'ltx') {
applyEngineDefaults('ltx')
}
if (engine === 'minimax' || engine === 'ltx') videoEngine.value = 'minimax'
applyEngineDefaults('minimax')
} catch { /* ignore */ }
videoLoraStack.value = readStoredLoraStack('aigen-video-lora')
imageLoraStack.value = readStoredLoraStack('aigen-image-lora')
@@ -4288,13 +4236,6 @@ watch(autoplayEnabled, (value) => {
}
})
watch(ltxEnabled, (on) => {
if (!on && videoEngine.value === 'ltx') {
videoEngine.value = 'minimax'
applyEngineDefaults('minimax')
}
})
watch(videoWorkflow, (value) => {
try {
localStorage.setItem('aigen-video-workflow', value)
@@ -4717,7 +4658,7 @@ function currentPresetSnapshot() {
return {
kind: 'imagev2' as const,
loraStack: filterLoraStackForImageEngine(
filterLoraStackForStudio(imageV2LoraStack.value, ltxEnabled.value),
filterLoraStackForStudio(imageV2LoraStack.value),
v2Engine.value
),
settings: {
@@ -4745,7 +4686,7 @@ function currentPresetSnapshot() {
if (studioMode.value === 'edit') {
return {
kind: 'image' as const,
loraStack: filterLoraStackForStudio(imageLoraStack.value, ltxEnabled.value),
loraStack: filterLoraStackForStudio(imageLoraStack.value),
settings: {
prompt: prompt.value,
steps: clampImageSteps(editSteps.value),
@@ -4759,7 +4700,7 @@ function currentPresetSnapshot() {
}
return {
kind: 'video' as const,
loraStack: filterLoraStackForStudio(videoLoraStack.value, ltxEnabled.value),
loraStack: filterLoraStackForStudio(videoLoraStack.value),
settings: {
workflow: videoWorkflow.value,
turbo: turbo.value,
@@ -4775,7 +4716,7 @@ function currentPresetSnapshot() {
}
function applyGenerationPreset(preset: GenerationPreset) {
const stack = filterLoraStackForStudio(preset.loraStack, ltxEnabled.value)
const stack = filterLoraStackForStudio(preset.loraStack)
const skipped = preset.loraStack.length - stack.length
if (preset.kind === 'imagev2') {
const settings = preset.settings as ImageV2PresetSettings
@@ -4855,9 +4796,6 @@ function applyGenerationPreset(preset: GenerationPreset) {
}
const wantedWorkflow = String(settings.workflow || '')
applyVideoWorkflow(wantedWorkflow)
if (!ltxEnabled.value && isLtxWorkflow(parseVideoWorkflow(wantedWorkflow))) {
toast('LTX Pink Cherry is not available on this instance')
}
restoreAdvanced({
turbo: settings.turbo !== false,
aspect: settings.aspect,
@@ -4872,7 +4810,7 @@ function applyGenerationPreset(preset: GenerationPreset) {
videoPresetName.value = preset.name
}
toast(skipped
? `Loaded “${preset.name}”. Skipped ${skipped} xAIGen-only LoRA${skipped === 1 ? '' : 's'}.`
? `Loaded “${preset.name}”. Skipped ${skipped} incompatible LoRA${skipped === 1 ? '' : 's'}.`
: `Loaded “${preset.name}”.`)
console.info('[aigen preset apply]', {
kind: preset.kind,
@@ -5664,7 +5602,7 @@ async function restoreStudioEditJob(payload: {
if (typeof payload.negative === 'string') editNegative.value = payload.negative
editScaleToTotalPixels.value = payload.scaleToTotalPixels === true
if (payload.scaleMegapixels != null) editScaleMegapixels.value = clampImageScaleMegapixels(payload.scaleMegapixels)
imageLoraStack.value = filterLoraStackForStudio(readLoraStack(payload), ltxEnabled.value)
imageLoraStack.value = filterLoraStackForStudio(readLoraStack(payload))
aspect.value = parseImageAspect(payload.aspect)
}
// Always restore Still A when the payload has one — including Generate jobs —
@@ -6586,7 +6524,7 @@ function applyStillSettings(still: LibraryStill) {
editNegative.value = settings.negative || ''
editScaleToTotalPixels.value = settings.scaleToTotalPixels === true
if (settings.scaleMegapixels != null) editScaleMegapixels.value = clampImageScaleMegapixels(settings.scaleMegapixels)
imageLoraStack.value = filterLoraStackForStudio(readLoraStack(settings), ltxEnabled.value)
imageLoraStack.value = filterLoraStackForStudio(readLoraStack(settings))
aspect.value = parseImageAspect(settings.aspect)
}
@@ -6637,28 +6575,6 @@ async function useStillAsInput(still: LibraryStill) {
}
}
async function sendOutputStillToBackup() {
const stillId = lastV2StillId.value || stillIdFromLibraryUrl(editResultUrl.value)
if (!stillId) {
toast('Save this still first, then send it to Backup.')
return
}
await sendStillToBackup({ id: stillId })
}
async function sendStillToBackup(still: Pick<LibraryStill, 'id'>) {
if (!backupStudioEnabled.value || backupBusyId.value) return
backupBusyId.value = still.id
try {
await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' })
toast('Sent to Backup')
} catch (error: any) {
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
} finally {
backupBusyId.value = ''
}
}
async function saveStillAsInput(still: Pick<LibraryStill, 'id'>) {
if (keepingInputBusy.value) return
keepingInputBusy.value = true
@@ -7482,7 +7398,7 @@ async function editImageV2() {
if (extraPasses.length) body.append('passes', JSON.stringify(extraPasses))
body.append('passMode', iterateGenerate ? 'batch' : imagePassMode.value)
const v2Stack = filterLoraStackForImageEngine(
filterLoraStackForStudio(imageV2LoraStack.value, ltxEnabled.value),
filterLoraStackForStudio(imageV2LoraStack.value),
v2Engine.value
)
const wrongEngine = imageV2LoraStack.value.find((item) => {
@@ -7619,18 +7535,13 @@ async function useEditAsInput() {
}
}
function applyEngineDefaults(engine: VideoEngineId) {
if (engine === 'ltx') {
samplerName.value = 'euler'
if (!cfgTouched.value) cfg.value = 3.5
return
}
function applyEngineDefaults(_engine: VideoEngineId) {
if (samplerName.value === 'euler') samplerName.value = 'res_multistep'
if (!cfgTouched.value) cfg.value = turbo.value ? CFG_TURBO : CFG_QUALITY
}
function selectVideoEngine(engine: VideoEngineId) {
if (engine === 'ltx' && !ltxEnabled.value) return
if (engine !== 'minimax') return
if (videoEngine.value === engine) return
cfgTouched.value = false
videoEngine.value = engine
@@ -7638,7 +7549,7 @@ function selectVideoEngine(engine: VideoEngineId) {
}
function applyVideoWorkflow(raw?: string) {
const parsed = coerceVideoWorkflow(raw, ltxEnabled.value)
const parsed = coerceVideoWorkflow(raw)
videoEngine.value = videoEngineOf(parsed)
minimaxGraph.value = minimaxGraphOf(parsed) === 'v1' ? 'v2' : minimaxGraphOf(parsed)
}
@@ -7663,11 +7574,8 @@ async function ensureVideoInputStill() {
}
async function generate() {
if (!ltxEnabled.value && isLtxWorkflow(videoWorkflow.value)) {
videoEngine.value = 'minimax'
applyEngineDefaults('minimax')
toast('LTX Pink Cherry is not available on this instance')
return
if (isLtxWorkflow(videoWorkflow.value)) {
applyVideoWorkflow(videoWorkflow.value)
}
console.info('[aigen generate click]', {
hasFile: Boolean(file.value),