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(review): remove em/en-dashes from comments and test names
purple22baebc56d41
diff --git a/dev-server/__tests__/find-comfyui-k8.test.ts b/dev-server/__tests__/find-comfyui-k8.test.tsindex 0ec67ebf..9f4f286c 100644--- a/dev-server/__tests__/find-comfyui-k8.test.ts+++ b/dev-server/__tests__/find-comfyui-k8.test.ts@@ -1,14 +1,14 @@/*** K8 (GH #134, eloieloie): `detect_all_comfyui_installs` / `find_comfyui`- * had no dev-server route at all — `find_comfyui` was even mapped in+ * had no dev-server route at all. `find_comfyui` was even mapped in* endpointMap (src/api/backend.ts) already, pointing at a path* `dev-server/comfy.ts` never registered. ComfyStep.tsx's auto-detect tried* both, got a 404 (an HTML page, not JSON) from each, and settled on- * `{ found: false }` — onboarding stayed stuck on "Install ComfyUI" even+ * `{ found: false }`, so onboarding stayed stuck on "Install ComfyUI" even* with ComfyUI installed and running on :8188. Independent of --host/LAN.** Real filesystem (a throwaway COMFYUI_PATH), real handler- * (registerComfyControlRoutes — the function dev-server/index.ts calls),+ * (registerComfyControlRoutes, the function dev-server/index.ts calls),* real HTTP. `isComfyRunning()` is stubbed at the network boundary* (`fetch`) since "is a real ComfyUI answering on :8188" is not this test's* concern.diff --git a/dev-server/__tests__/mlx-media-endpoint-coverage.test.ts b/dev-server/__tests__/mlx-media-endpoint-coverage.test.tsindex 7a246cf7..125c5e10 100644--- a/dev-server/__tests__/mlx-media-endpoint-coverage.test.ts+++ b/dev-server/__tests__/mlx-media-endpoint-coverage.test.ts@@ -2,7 +2,7 @@* K7 (GH #135, eloieloie): "Unknown backend command: install_mlx_diffusion"* in `npm run dev` without Tauri. Root cause: the MLX image/video Rust* module (`commands::media_cmds`) had no dev-server route, and unlike- * Remote Access (remote-stubs.ts) no frontend pre-guard either — every+ * Remote Access (remote-stubs.ts) no frontend pre-guard either, so every* `invokeMedia('...')` call in src/api/mlx-image.ts / mlx-video.ts is* unconditionally reached the moment MlxMediaSettings renders on a Mac.*@@ -19,10 +19,10 @@* Deliberately NOT a check of all ~190 registered commands: most of them* (window management, OAuth loopback, keychain, native file dialogs, ...)* are legitimately Tauri-only and are never reached via backendCall/- * invokeMedia from the browser dev surface at all — asserting endpointMap+ * invokeMedia from the browser dev surface at all; asserting endpointMap* coverage for those would mean inventing dev-mode behavior for features* that were never broken in the first place. "Reachable" is measured, not- * assumed — the whole point of this posten was not to guess.+ * assumed: the whole point of this posten was not to guess.** Run: npx vitest run dev-server/__tests__/mlx-media-endpoint-coverage.test.ts*/@@ -38,7 +38,7 @@ const REPO_ROOT = join(HERE, '..', '..')function rustCommands(): Set<string> {const mainRs = readFileSync(join(REPO_ROOT, 'src-tauri', 'src', 'main.rs'), 'utf-8')const m = mainRs.match(/\.invoke_handler\(tauri::generate_handler!\[([\s\S]*?)\n\s*\]\)/)- if (!m) throw new Error('Could not find tauri::generate_handler![...] block in main.rs — has the invoke_handler setup moved?')+ if (!m) throw new Error('Could not find tauri::generate_handler![...] block in main.rs. Has the invoke_handler setup moved?')const names = new Set<string>()for (let line of m[1].split('\n')) {line = line.split('//')[0].trim().replace(/,$/, '')@@ -70,13 +70,13 @@ function reachableCommands(): Set<string> {return names}-/** endpointMap keys, read out of backend.ts rather than imported — the dev+/** endpointMap keys, read out of backend.ts rather than imported: the dev* branch of backendCall() only builds that object at call time, and this* test wants the literal keys, not a live network round trip. */function endpointMapKeys(): Set<string> {const backendTs = readFileSync(join(REPO_ROOT, 'src', 'api', 'backend.ts'), 'utf-8')const m = backendTs.match(/const endpointMap: Record<string, \{ path: string; method\?: string \}> = \{([\s\S]*?)\n\s*\};/)- if (!m) throw new Error('Could not find endpointMap in backend.ts — has it moved or been renamed?')+ if (!m) throw new Error('Could not find endpointMap in backend.ts. Has it moved or been renamed?')const keys = new Set<string>()for (const match of m[1].matchAll(/^\s*([a-zA-Z_][a-zA-Z0-9_]*):\s*\{/gm)) keys.add(match[1])return keys@@ -110,7 +110,7 @@ describe('endpointMap covers every backendCall/invokeMedia site the frontend can})// K7 asked for a systematic check against ALL registered commands, which is- // exactly what reachableCommands()/rustCommands() do — but "the frontend+ // exactly what reachableCommands()/rustCommands() do. But "the frontend// has a literal call site" is not the same claim as "this is broken in dev// mode": most of these are legitimately Tauri-only (keychain, native file// dialogs, OAuth loopback, window management, background shell tasks) and@@ -118,17 +118,17 @@ describe('endpointMap covers every backendCall/invokeMedia site the frontend can// that this text-level scan cannot see, so they were never reachable from// `npm run dev` the way install_mlx_diffusion was. Fixing K7 meant// confirming and closing the MLX/video gap (the module the bug report- // named, and its siblings — see the test above), not inventing dev-mode+ // named, and its siblings, see the test above), not inventing dev-mode// behavior for ~90 unrelated commands never reported broken.//// This list is the exact remaining measured gap as of this fix (K7,- // 2026-09-18) — kept explicit, not silently ignored, so a maintainer can+ // 2026-09-18), kept explicit, not silently ignored, so a maintainer can// pick individual ones off it later (David/orchestrator to prioritize; a// few look like real drift worth a closer look on their own, e.g.// local_api_status/restart_remote_server/revoke_remote_memory landed in// main.rs after remote-stubs.ts's list was last updated). The test still- // fails the moment ANY command outside this list — including a brand new- // one — is called from the frontend without an endpointMap entry.+ // fails the moment ANY command outside this list, including a brand new+ // one, is called from the frontend without an endpointMap entry.const PRE_EXISTING_UNMAPPED_GAPS = new Set(['backup_rag_chunks', 'backup_stores', 'bundled_embed_status', 'bundled_engine_status','cancel_character_training', 'cancel_comfyui_install', 'character_trainer_status',@@ -160,6 +160,6 @@ describe('endpointMap covers every backendCall/invokeMedia site the frontend canit('the pre-existing exemption list has no stale entries (command removed, or since mapped)', () => {const stale = [...PRE_EXISTING_UNMAPPED_GAPS].filter((cmd) => !reachable.has(cmd) || !rust.has(cmd) || mapped.has(cmd)).sort()- expect(stale, `These no longer need the exemption — remove from PRE_EXISTING_UNMAPPED_GAPS: ${stale.join(', ')}`).toEqual([])+ expect(stale, `These no longer need the exemption, remove from PRE_EXISTING_UNMAPPED_GAPS: ${stale.join(', ')}`).toEqual([])})})diff --git a/dev-server/comfy.ts b/dev-server/comfy.tsindex 2cbea477..02d5be0d 100644--- a/dev-server/comfy.ts+++ b/dev-server/comfy.ts@@ -74,13 +74,13 @@ export function isComfyRunning(): Promise<boolean> {/*** K8 (GH #134, eloieloie): dev-mode proxy for the Rust side's- * `is_comfyui_install_complete` (process.rs) — same QUESTION ("can this+ * `is_comfyui_install_complete` (process.rs): same QUESTION ("can this* install actually run, or is it a half-cloned carcass"), a simpler answer.* The real check walks candidate python prefixes looking for an installed* torch; that is desktop/Tauri-only logic this dev server has no reason to* duplicate. A running ComfyUI is definitionally complete, and short of* that, an already-built venv/.venv next to main.py is the same signal the- * dev launcher itself already keys off of (see getComfyPython above) — good+ * dev launcher itself already keys off of (see getComfyPython above), good* enough for onboarding's dev-mode auto-detect not to get stuck on "Install* ComfyUI" when ComfyUI is right there and already running (the actual bug).*/@@ -239,11 +239,11 @@ export function registerComfyControlRoutes(routes: RouteMount, comfy: ComfyLaunc})// K8 (GH #134): `find_comfyui` is mapped in endpointMap (src/api/backend.ts)- // but had NO route here at all — onboarding's ComfyStep.tsx auto-detect+ // but had NO route here at all, so onboarding's ComfyStep.tsx auto-detect// 404'd on both this AND its primary `detect_all_comfyui_installs` call// (also added below), fell through its own catch-all, and got stuck// showing "Install ComfyUI" even with ComfyUI already running on :8188.- // Independent of LAN/--host — this was broken under plain `npm run dev`.+ // Independent of LAN/--host: this was broken under plain `npm run dev`.routes.use('/local-api/find-comfyui', async (_req, res) => {const comfyPath = findComfyUI()res.writeHead(200, { 'Content-Type': 'application/json' })@@ -259,7 +259,7 @@ export function registerComfyControlRoutes(routes: RouteMount, comfy: ComfyLaunc// K8: the primary auto-detect path ComfyStep.tsx tries first. The dev// server can only ever scan up to ONE install (findComfyUI has no// multi-install enumeration, unlike the Rust scan it mirrors), so this- // answers with 0 or 1 entries — the same shape the picker UI already+ // answers with 0 or 1 entries, the same shape the picker UI already// handles as "no disambiguation needed", not a lie about capability.routes.use('/local-api/detect-all-comfyui-installs', async (_req, res) => {const comfyPath = findComfyUI()diff --git a/dev-server/guard.ts b/dev-server/guard.tsindex 724ef4ce..841dd4ba 100644--- a/dev-server/guard.ts+++ b/dev-server/guard.ts@@ -20,19 +20,19 @@ import { postContentTypeAllowed, postContentTypeError } from '../src/lib/local-a/*** K8 (GH #134, eloieloie, `npm run dev --host`): a deliberate LAN-exposed dev* server rejected its OWN onboarding write requests with "403 Forbidden:- * Invalid Origin (CSRF Protection)" — the page loaded from the machine's LAN+ * Invalid Origin (CSRF Protection)": the page loaded from the machine's LAN* IP (e.g. `http://192.168.1.23:5273`), which is neither `tauri://localhost`* nor the loopback regex below, so every request from it hit the same wall* as a real cross-origin attacker.** `getLanOrigins`, when given, is called PER REQUEST (not once at guard* creation) and must return only origins the SERVER itself resolved it is- * bound to (see dev-server/index.ts — Vite's own `resolvedUrls.network`,+ * bound to (see dev-server/index.ts: Vite's own `resolvedUrls.network`,* read after listen()), never anything derived from a request header. That* is the whole DNS-rebinding lesson above, applied here too: `--host` widens* what the guard accepts, but the widening still comes from the server's own* configuration, not from what a caller claims. Omitted (or empty) when- * `--host` was not passed — the default stays loopback-and-Tauri-only.+ * `--host` was not passed: the default stays loopback-and-Tauri-only.*/export function createLocalApiGuard(port: number,@@ -105,7 +105,7 @@ export function createLocalApiGuard(// der Ablehnung: „Invalid Origin" allein sagt nicht, was erwartet war.const allowedOrigins = ['tauri://localhost', 'http://tauri.localhost'];const isLoopback = /^https?:\/\/(localhost|127\.0\.0\.1)(:\d+)?$/.test(origin);- // K8: the server's own LAN origin(s) — see the doc comment on+ // K8: the server's own LAN origin(s), see the doc comment on// getLanOrigins above. Read fresh on every request; [] when --host// is not active, so a plain `npm run dev` behaves exactly as before.const lanOrigins = getLanOrigins ? getLanOrigins() : [];diff --git a/dev-server/mlx-media-stubs.ts b/dev-server/mlx-media-stubs.tsindex cd9585e0..a226b61c 100644--- a/dev-server/mlx-media-stubs.ts+++ b/dev-server/mlx-media-stubs.ts@@ -5,24 +5,24 @@ import type { RouteMount } from './routes'* K7 (GH #135, eloieloie, `npm run dev` without Tauri): "Unknown backend* command: install_mlx_diffusion". The MLX image/video pipeline* (`src-tauri/src/commands/media_cmds.rs`) is an in-process Mac-only Rust- * module — a Python sidecar Rust spawns directly — with no dev-server+ * module, a Python sidecar Rust spawns directly, with no dev-server* equivalent, and unlike Remote Access (see remote-stubs.ts) it had NEITHER* a pre-guard in the frontend NOR a backstop stub here. Every call the* MLX/video Settings panel makes on mount (`mlxStatus`, `getVideoStatus`,* `listMlxImageModels`, `listVideoModels`) is unconditionally reached the- * moment that panel renders on a Mac running the plain Vite dev server —+ * moment that panel renders on a Mac running the plain Vite dev server,* confirmed by grepping every `invokeMedia('...')` call site in* src/api/mlx-image.ts and src/api/mlx-video.ts against endpointMap in* backend.ts, the same systematic check K7 asked for.** Same shape as remote-stubs.ts: one honest HTTP 501 + JSON body per* command, so `backendCall` throws a clear actionable Error instead of- * "Unknown backend command: X". The frontend already tolerates this —+ * "Unknown backend command: X". The frontend already tolerates this:* status/list calls are wrapped in `.catch(() => null | [])` in* MlxMediaSettings' `refresh()`, and the install/generate/delete actions* run inside a try/catch that surfaces `e.message` directly as the on-screen* error, which is exactly why a plain string message (not a bespoke shape- * per command) is enough here — same reasoning as install_tts in whisper.ts.+ * per command) is enough here, same reasoning as install_tts in whisper.ts.** `install_mlx_diffusion` / `install_mlx_diffusion_status` and* `video_install_mlx` / `video_install_mlx_status` share one path each,diff --git a/src/api/__tests__/comfyui-models.test.ts b/src/api/__tests__/comfyui-models.test.tsindex 79143a0f..fd5c6e0d 100644--- a/src/api/__tests__/comfyui-models.test.ts+++ b/src/api/__tests__/comfyui-models.test.ts@@ -166,7 +166,7 @@ describe('MODEL_TYPE_DEFAULTS', () => {// ─── COMPONENT_REGISTRY ───describe('COMPONENT_REGISTRY', () => {- // K9/component-registry consolidation: krea2 and wan22 are included here —+ // K9/component-registry consolidation: krea2 and wan22 are included here,// wan22 was the drift the two duplicate registries had already accumulated// (present in discover.ts's copy, missing from comfyui.ts's) before they// were merged into one file (component-registry.ts); a loop like this onediff --git a/src/api/__tests__/dynamic-workflow-strategy.test.ts b/src/api/__tests__/dynamic-workflow-strategy.test.tsindex c7372907..ef3fa67a 100644--- a/src/api/__tests__/dynamic-workflow-strategy.test.ts+++ b/src/api/__tests__/dynamic-workflow-strategy.test.ts@@ -210,7 +210,7 @@ describe('dynamic-workflow — determineStrategy', () => {// K9: an unrecognized architecture with UNET+CLIP+VAE but no checkpoint// loader used to fall through to 'unet_flux' on the unstated assumption- // that any UNET-only file is a FLUX model — silently applying FLUX's CLIP+ // that any UNET-only file is a FLUX model, silently applying FLUX's CLIP// type and VAE match patterns to a model that might not be FLUX at all.// It must now say honestly that it would not guess, never fall back.it('unrecognized architecture (UNET+CLIP+VAE, no checkpoint loader) -> unavailable, never a guessed unet_flux', () => {diff --git a/src/api/__tests__/local-op-workflows.test.ts b/src/api/__tests__/local-op-workflows.test.tsindex 7475557a..3a871096 100644--- a/src/api/__tests__/local-op-workflows.test.ts+++ b/src/api/__tests__/local-op-workflows.test.ts@@ -17,7 +17,7 @@ import type { ComfyApiGraph, ComfyApiNode } from '../../types/comfy-graph'// K2: buildS2VWorkflow/buildMotionWorkflow now resolve CLIP/VAE/audio-encoder// against ComfyUI's live enum (findMatchingCLIP/findMatchingVAE/// findMatchingAudioEncoder) instead of writing hardcoded filenames straight-// into the loader nodes — same fix Bug C already applied to the FLUX/video+// into the loader nodes, same fix Bug C already applied to the FLUX/video// lanes. Mock the live-fetch boundary only; classifyModel/galleryTypeForFile/// resolveLocalOpPick stay real.vi.mock('../comfyui', async (importOriginal) => {diff --git a/src/api/backend.ts b/src/api/backend.tsindex 08d92026..4b421878 100644--- a/src/api/backend.ts+++ b/src/api/backend.ts@@ -458,7 +458,7 @@ export async function backendCall<T = unknown>(comfyui_last_output: { path: "/local-api/comfyui-last-output" },find_comfyui: { path: "/local-api/find-comfyui" },// K8 (GH #134): the primary auto-detect ComfyStep.tsx calls before- // falling back to find_comfyui above — see dev-server/comfy.ts for why+ // falling back to find_comfyui above, see dev-server/comfy.ts for why// both were needed, not just one.detect_all_comfyui_installs: { path: "/local-api/detect-all-comfyui-installs" },set_comfyui_path: { path: "/local-api/set-comfyui-path", method: "POST" },diff --git a/src/api/component-registry.ts b/src/api/component-registry.tsindex 2c7a1ef9..ef5c3fb1 100644--- a/src/api/component-registry.ts+++ b/src/api/component-registry.ts@@ -1,18 +1,18 @@// ─── Component Registry: What each model type needs to work ───//-// K9 (GH #136, atobo — Krea 2 classification): this table used to be typed+// K9 (GH #136, atobo, Krea 2 classification): this table used to be typed// out TWICE, once in comfyui.ts (matchPatterns/downloadFilename/clipType,// read by findMatchingVAE/findMatchingCLIP and the workflow builders) and// once in discover.ts (patterns/downloadName/downloadUrl/subfolder, read by// the component-completion download path and the catalogAddresses live-URL-// gate). Adding a new model type meant remembering to update both — Krea 2-// only reached one of them, which is exactly the kind of gap that let #136-// happen in the first place. Same shape as the Audit W-T2 fix that pulled-// the bundle catalog out of comfyui.ts/discover.ts into model-bundles.ts:-// shared data lives in its own file that both import, so there is exactly-// one place to update and neither module has to reach into the other-// (comfyui.ts ↔ discover.ts staying acyclic is deliberate — see the Audit-// W-T2 comment at the top of comfyui.ts).+// gate). Adding a new model type meant remembering to update both, and+// Krea 2 only reached one of them, which is exactly the kind of gap that let+// #136 happen in the first place. Same shape as the Audit W-T2 fix that+// pulled the bundle catalog out of comfyui.ts/discover.ts into+// model-bundles.ts: shared data lives in its own file that both import, so+// there is exactly one place to update and neither module has to reach into+// the other (comfyui.ts and discover.ts staying acyclic is deliberate, see+// the Audit W-T2 comment at the top of comfyui.ts)./** One component (VAE or text encoder) a model type needs. */export interface ComponentSpec {@@ -22,7 +22,7 @@ export interface ComponentSpec {downloadFilename: string/** Direct download address, when one is known and verified reachable* (checked by `hf-catalog-addresses.live.test.ts`). Absent means "the app- * cannot offer a one-click download for this component" — findMatchingVAE+ * cannot offer a one-click download for this component": findMatchingVAE* / findMatchingCLIP still tell the user which file to get and where the* Model Manager looks for it, they just cannot fetch it automatically. */downloadUrl?: string@@ -60,7 +60,7 @@ export const COMPONENT_REGISTRY: Record<string, ComponentRequirements> = {},// Krea 2 (K9, GH #136): companion VAE/CLIP filenames are not standardized// across CivitAI finetune authors (qwen_image_vae vs wan_2.1_vae;- // qwen3vl_4b_int8_convrot vs qwen3vl_4b_fp8_scaled — see the issue). No+ // qwen3vl_4b_int8_convrot vs qwen3vl_4b_fp8_scaled, see the issue). No// verified direct-download address exists yet, so downloadUrl stays unset// rather than guessing one: findMatchingVAE/findMatchingCLIP still name// the exact file to fetch manually via the Model Manager.diff --git a/src/api/discover.ts b/src/api/discover.tsindex 6ef0959e..2f206eef 100644--- a/src/api/discover.ts+++ b/src/api/discover.ts@@ -792,8 +792,8 @@ export async function installBundleComplete(bundle: ModelBundle): Promise<void>//// K9 (GH #136): this table used to be declared here a second time, with a// different field naming (patterns/downloadName vs comfyui.ts's-// matchPatterns/downloadFilename) but the same per-model-type content — a-// copy that both had to be remembered on every new architecture. Canonical+// matchPatterns/downloadFilename) but the same per-model-type content, a+// duplicate that both had to be remembered on every new architecture. Canonical// data now lives in component-registry.ts; re-exported here so existing// imports of `COMPONENT_REGISTRY` / `ComponentSpec` / `ComponentRequirements`// from './discover' keep working unchanged.diff --git a/src/components/create/experimental/CreateExperimental.tsx b/src/components/create/experimental/CreateExperimental.tsxindex 52409b2d..de800b04 100644--- a/src/components/create/experimental/CreateExperimental.tsx+++ b/src/components/create/experimental/CreateExperimental.tsx@@ -213,7 +213,7 @@ function CreateExperimentalInner() {// C1: "Animate this image" on a finished result (web parity, createStore's// animateFrom / OutputView.tsx). setIntent('animate') already keeps the// current source in place (see createStore.ts's 'animate' case, which- // deliberately skips ...dropAll) — but a fresh t2i result was never adopted+ // deliberately skips ...dropAll), but a fresh t2i result was never adopted// as `source` in the first place, so setSource still has to run after it,// exactly like editResultWithMask does for 'edit'. No mask step needed here.const animateResult = useCallback(async (item: GalleryItem) => {diff --git a/src/components/create/experimental/ModelChip.tsx b/src/components/create/experimental/ModelChip.tsxindex 753d4e68..f650e70b 100644--- a/src/components/create/experimental/ModelChip.tsx+++ b/src/components/create/experimental/ModelChip.tsx@@ -11,10 +11,10 @@ const CLOUD_BADGE = { label: 'Cloud', color: 'bg-violet-500/15 text-violet-500 d// C2: the "No refusals" mark on models the provider ships with its own// filter off (CloudModel.adult, web parity: apps/web/components/create/// experimental/ModelChip.tsx). The mark says what the MODEL can do and-// decides nothing itself — while the account's content policy still filters-// (anything but 'off'), it stays pale: the account setting is the boundary,-// not the model. No adult vocabulary here, this surface sits on the payment-// domain.+// decides nothing itself: while the account's content policy still filters+// (anything but 'off'), it stays pale, since the account setting is the+// boundary, not the model. No adult vocabulary here, this surface sits on+// the payment domain.const NO_REFUSALS_COLOR = {filtering: 'text-gray-500 dark:text-gray-600',open: 'text-purple-600 dark:text-purple-300',@@ -94,7 +94,7 @@ function CloudModelChip() {label: m.label,sublabel: modelCostHint(m, op, op === 'music' ? musicDuration : undefined),// adult models keep the standard Cloud badge everywhere EXCEPT the row- // itself, where "No refusals" is strictly more informative — matches web.+ // itself, where "No refusals" is strictly more informative, matching web.badge: m.adult? { label: 'No refusals', color: contentPolicy === 'off' ? NO_REFUSALS_COLOR.open : NO_REFUSALS_COLOR.filtering }: CLOUD_BADGE,diff --git a/src/components/create/experimental/__tests__/animate-button-on-result.test.tsx b/src/components/create/experimental/__tests__/animate-button-on-result.test.tsxindex 47313516..c58c063c 100644--- a/src/components/create/experimental/__tests__/animate-button-on-result.test.tsx+++ b/src/components/create/experimental/__tests__/animate-button-on-result.test.tsx@@ -3,14 +3,14 @@* C1 (Desktop Create parity, web reference:* apps/web/components/create/experimental/OutputView.tsx +* createStore.animateFrom in lu-300-web): a finished image's result view had- * no "Animate this image" affordance on Desktop — Edit-with-mask, Download+ * no "Animate this image" affordance on Desktop: Edit-with-mask, Download* and Fullscreen were the only hover actions. Desktop's own createStore* already carries a correct `case 'animate':` in setIntent() (keeps- * `source` — no ...dropAll) and a working setSource(), so the missing piece+ * `source`, no ...dropAll) and a working setSource(), so the missing piece* was purely the button + its onClick wiring through ResultView.** This test is scoped to ResultView itself (OutputView.tsx), the component- * that actually renders the hover toolbar — it is the smallest unit where+ * that actually renders the hover toolbar: it is the smallest unit where* "the button exists, is gated like Edit, and calls back" is observable* without standing up the whole CreateExperimental store wiring.*@@ -57,7 +57,7 @@ describe('ResultView "Animate this image" action', () => {expect(onAnimate).toHaveBeenCalledTimes(1)})- it('is absent when the caller omits onAnimate (Animate lane unavailable — MLX Mac / locked intent)', () => {+ it('is absent when the caller omits onAnimate (Animate lane unavailable: MLX Mac / locked intent)', () => {render(<ResultView item={makeItem()} onFullscreen={() => {}} />)expect(screen.queryByTitle('Animate this image')).toBeNull()})diff --git a/src/components/create/experimental/__tests__/no-refusals-badge.test.tsx b/src/components/create/experimental/__tests__/no-refusals-badge.test.tsxindex 957341b2..8922f6a4 100644--- a/src/components/create/experimental/__tests__/no-refusals-badge.test.tsx+++ b/src/components/create/experimental/__tests__/no-refusals-badge.test.tsx@@ -3,13 +3,13 @@* C2 (Desktop Create parity, web reference: apps/web/components/create/* experimental/ModelChip.tsx). Two pieces:*- * 1. `adult` on the Desktop CloudModel type (src/lib/render/cloud-models.ts)- * — previously absent entirely, so every "Spicy" seed model looked+ * 1. `adult` on the Desktop CloudModel type (src/lib/render/cloud-models.ts),+ * previously absent entirely, so every "Spicy" seed model looked* identical to a filtered one. A live /api/jobs/catalog payload without* the field (older server, pre web-fix) must read as "not adult", never- * throw or crash the picker — it's a plain optional boolean.+ * throw or crash the picker: it's a plain optional boolean.* 2. The "No refusals" badge in ModelChip's CloudModelChip, pale while the- * account's content policy still filters and vivid when it's 'off' —+ * account's content policy still filters and vivid when it's 'off',* same rule as web, adapted to Desktop's own useContentPolicy hook* (src/hooks/useContentPolicy.ts) instead of web's use-content-policy.*@@ -46,7 +46,7 @@ describe('CloudModel.adult (seed data)', () => {describe('ModelChip "No refusals" badge', () => {const setup = (modelId: string) => {// videoSubMode 'i2v' derives the 'animate' intent (deriveIntent in- // createStore.ts) — the picker whose model filter (i2v !== false) actually+ // createStore.ts): the picker whose model filter (i2v !== false) actually// keeps the i2v-only "Spicy" seed models in list, unlike the plain 'video'// (t2v) intent which filters them straight back out.useCreateStore.setState({diff --git a/src/components/create/experimental/badges.ts b/src/components/create/experimental/badges.tsindex 4b524833..a8a31b1c 100644--- a/src/components/create/experimental/badges.ts+++ b/src/components/create/experimental/badges.ts@@ -25,7 +25,7 @@ export const TYPE_BADGE: Record<ModelType, { label: string; color: string }> = {flux2: { label: 'FLUX 2', color: 'bg-purple-500/15 text-purple-300' },// K9 (GH #136): every bright tone above is taken by a different family, and// amber/yellow are the two the comment above rules out (they read as a- // warning, not a badge — see the cogvideo history). zinc is the one+ // warning, not a badge, see the cogvideo history). zinc is the one// neutral family still free (slate/stone already carry ernie_image/cogvideo).krea2: { label: 'Krea 2', color: 'bg-zinc-500/15 text-zinc-300' },zimage: { label: 'Z-Image', color: 'bg-rose-500/15 text-rose-300' },diff --git a/src/components/settings/ContentPolicySettings.tsx b/src/components/settings/ContentPolicySettings.tsxindex 14a436a5..708ac5da 100644--- a/src/components/settings/ContentPolicySettings.tsx+++ b/src/components/settings/ContentPolicySettings.tsx@@ -68,7 +68,7 @@ export function ContentPolicySettings() {const saved = await setContentPolicy(next, ageConfirmed)setPolicy(saved)// C2: the ModelChip badge reads a separate shared cache (useContentPolicy)- // so it does not fire its own GET per mount — push the fresh value in+ // so it does not fire its own GET per mount, push the fresh value in// immediately instead of leaving it to catch up on the next reload.primeContentPolicyCache(saved)/*diff --git a/src/hooks/useContentPolicy.ts b/src/hooks/useContentPolicy.tsindex 12545721..4543c52d 100644--- a/src/hooks/useContentPolicy.ts+++ b/src/hooks/useContentPolicy.ts@@ -5,7 +5,7 @@ import { getContentPolicy, type ContentPolicy } from '../api/cloud/jobs'* C2: the account's content policy, fetched once and shared across every* surface that only needs it for DISPLAY (today: ModelChip's "No refusals"* mark). Mirrors uselu apps/web/lib/render/use-content-policy.ts so the same- * rule reads the same way on both sides — a small module-level cache plus a+ * rule reads the same way on both sides: a small module-level cache plus a* listener set, instead of every mounted ModelChip firing its own GET.** Read-only. The server re-checks the real policy on every render job@@ -22,7 +22,7 @@ async function loadContentPolicy(): Promise<ContentPolicy> {inflight = getContentPolicy().then((s) => {// A concurrent write (ContentPolicySettings' save()) may already have- // primed the cache while this GET was in flight — that newer value+ // primed the cache while this GET was in flight, and that newer value// wins, this response must not overwrite it.if (cached) return cachedcached = s.policydiff --git a/src/lib/render/cloud-models.ts b/src/lib/render/cloud-models.tsindex a0dd5624..1d0f6999 100644--- a/src/lib/render/cloud-models.ts+++ b/src/lib/render/cloud-models.ts@@ -21,7 +21,7 @@ export interface CloudModel {/** C2: the provider ships this endpoint with its own filter off, so it* produces adult output when the account's content policy allows it (server* migration 0042, uselu apps/web/lib/render/cloud-models.ts). Drives the- * "No refusals" picker mark (ModelChip.tsx) and grants nothing on its own —+ * "No refusals" picker mark (ModelChip.tsx) and grants nothing on its own:* the server re-checks the account's policy on every job, this field is* display only. Optional and defaults to falsy: the live catalog* (GET /api/jobs/catalog) only started emitting it once the web-side fix