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): the local gate checked fewer fields than the cloud one
David691bc7a8beb5
diff --git a/src/hooks/useCreate.ts b/src/hooks/useCreate.tsindex b4c877f3..ef167c0d 100644--- a/src/hooks/useCreate.ts+++ b/src/hooks/useCreate.ts@@ -346,9 +346,14 @@ export function useCreate() {const generateInner = useCallback(async () => {const state = useCreateStore.getState()- // AI-CSAM gate — applies before any backend is touched.+ // AI-CSAM gate — applies before any backend is touched. On this path there+ // is no server gate behind it: a local render goes straight to ComfyUI/MLX+ // on the user's own machine. triggerWord is in here because local character+ // training runs through this same function a few lines down, and the cloud+ // gate already treats that field as prompt-bearing (useCloudCreate.ts).+ // musicLyrics is not: music is a hosted-only op and cannot reach this path.{- const verdict = checkPromptSafety(`${state.prompt} ${state.negativePrompt}`)+ const verdict = checkPromptSafety(`${state.prompt} ${state.negativePrompt} ${state.triggerWord}`)if (verdict.blocked) {state.setError(SAFETY_BLOCK_MESSAGE)return