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(feat/309-trainer-styles): into integ/309
purpleb4d12bdd4e1e
diff --cc src/components/create/experimental/SpecialIntentControls.tsxindex 5c4be600,f4a9150e..aecef76d--- a/src/components/create/experimental/SpecialIntentControls.tsx+++ b/src/components/create/experimental/SpecialIntentControls.tsx@@@ -681,10 -721,10 +724,11 @@@ function LocalTrainControls()<inputvalue={triggerWord}onChange={(e) => setTriggerWord(e.target.value)}- placeholder="Trigger word, e.g. davechar"+ placeholder={trainKind === 'style' ? STYLE_NAME_PLACEHOLDER : 'Trigger word, e.g. davechar'}+ aria-label={trainKind === 'style' ? 'Style name' : 'Trigger word'}className="t-control w-44 px-2.5 h-[var(--control-h-sm)] rounded-md bg-white/[0.03] border border-white/[0.06] text-gray-200 placeholder-gray-600 focus:outline-none focus:border-white/15"/>+ <TriggerWordNote /><Segmentedsize="sm"layoutId="train-steps"@@@ -805,10 -848,10 +852,11 @@@ function MacTrainControls()<inputvalue={triggerWord}onChange={(e) => setTriggerWord(e.target.value)}- placeholder="Trigger word, e.g. davechar"+ placeholder={trainKind === 'style' ? STYLE_NAME_PLACEHOLDER : 'Trigger word, e.g. davechar'}+ aria-label={trainKind === 'style' ? 'Style name' : 'Trigger word'}className="t-control w-44 px-2.5 h-[var(--control-h-sm)] rounded-md bg-white/[0.03] border border-white/[0.06] text-gray-200 placeholder-gray-600 focus:outline-none focus:border-white/15"/>+ <TriggerWordNote /><Segmentedsize="sm"layoutId="train-steps"diff --cc src/hooks/useCreate.tsindex 5a90f7d6,0484bde3..733b118f--- a/src/hooks/useCreate.ts+++ b/src/hooks/useCreate.ts@@@ -95,9 -95,8 +95,10 @@@ import} from '../api/trainer'import { getMacTrainStatus, macTrainMissing } from '../api/mlx-train'import { buildTrainCaption } from '../lib/train-captions'+import { trainTriggerWord } from '../lib/train-trigger'+import { characterThisWouldReplace, useTrainReplaceStore } from '../stores/trainReplaceStore'+ import { buildStyleCaption, missingNameLine, trainedLine, trainedLoraFile } from '../lib/train-kind'-import { useCreateStore, EDIT_MAX_DENOISE, characterImageRun, deriveIntent, type CreateState } from '../stores/createStore'+import { useCreateStore, EDIT_MAX_DENOISE, characterImageRun, deriveIntent, type CreateState, type GalleryItem } from '../stores/createStore'import { useWorkflowStore } from '../stores/workflowStore'import { useSettingsStore } from '../stores/settingsStore'import { renderStallLimitMs, renderStallMessage } from '../lib/tool-timeout'@@@ -572,12 -555,13 +573,16 @@@ export function useCreate()// below go there by themselves (api/trainer.ts); what differs is how the// memory is handed over.const mac = isMlxImageHost()+ // 3.0.9 P8: a style / concept run shares the whole path; it differs in+ // the captions, the file name and where it lands (lib/train-kind.ts).+ // The field holds the character's trigger word or the style's name.+ // C7: the same word Rust names the LoRA file after, so captions, file+ // name and the Use shelf's prompt token are one word (lib/train-trigger.ts).+ // Also catches a persisted "Jörg" saved before the field cleaned it.+ const kind = state.trainKind- const trigger = state.triggerWord.trim()+ const trigger = trainTriggerWord(state.triggerWord)if (!trigger) {- setError('Pick a trigger word first, e.g. davechar. It becomes the token that summons your character.')+ setError(missingNameLine(kind))return}// Blobs are runtime-only — after an app restart the thumbnails would