Skip to content

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.

fix(style): remove em/en dashes from this session's own comments and tests

purplef03aea87052c
diff --git a/scripts/check-cloud-sales.mjs b/scripts/check-cloud-sales.mjs
index 692f7ea0..e4b821e3 100644
--- a/scripts/check-cloud-sales.mjs
+++ b/scripts/check-cloud-sales.mjs
@@ -915,8 +915,8 @@ const desktopMediaSource = ts.createSourceFile(
// only captures string/numeric literals, so it cannot see `edit: true`
// (a boolean) or `ops: ['edit']` (an array) at all. Reading each object
// literal's own full text (not a single source LINE) is what makes this safe
-// against entries that spread id/label/edit/ops across several lines —
-// flux-dev is written that way in both files.
+// against entries that spread id/label/edit/ops across several lines,
+// which is how flux-dev is written in both files.
function editCapableIds(sourceFile) {
const out = new Map()
function visit(node) {
diff --git a/src-tauri/src/commands/agent.rs b/src-tauri/src/commands/agent.rs
index 81ef5421..0a1a1fbd 100644
--- a/src-tauri/src/commands/agent.rs
+++ b/src-tauri/src/commands/agent.rs
@@ -385,8 +385,8 @@ mod path_tests {
}
/// R2-44: `execute_code` used to take no run id, so Stop had nothing to cancel
-/// once the interpreter had started — same hole `shell_execute_cancel` closed
-/// for the shell tool (see the comment there). This is the same fix, on its
+/// once the interpreter had started, the same hole `shell_execute_cancel`
+/// closed for the shell tool (see the comment there). This is the same fix, on its
/// own registry: code execution is always foreground here, no background
/// tasks, so it needs neither the task-list nor the stale-entry sweep the
/// shell registry carries.
@@ -430,7 +430,7 @@ fn code_mark_cancelled(call_id: &str) -> Option<u32> {
eintrag.pid
}
-/// Abmelden beim Verlassen, an EINER Stelle — dieselbe Begruendung wie
+/// Abmelden beim Verlassen, an EINER Stelle, dieselbe Begruendung wie
/// `ShellSlot` in shell.rs: `execute_code_blocking` kehrt an mehreren Stellen
/// zurueck, eine Aufraeumzeile an jeder davon bliebe irgendwann an einer nicht
/// mehr stehen.
@@ -592,7 +592,7 @@ pub(crate) fn execute_code_blocking(
state: &State<'_, AppState>,
) -> Result<serde_json::Value, String> {
let timeout_ms = timeout.unwrap_or(30000);
- // R2-44: registered BEFORE spawn, same race the shell registry documents —
+ // R2-44: registered BEFORE spawn, same race the shell registry documents,
// a cancel can arrive before the process exists at all.
let slot = CodeSlot::new(callId.as_deref());
diff --git a/src/api/providers/retry.ts b/src/api/providers/retry.ts
index 55d37ee7..14c6576e 100644
--- a/src/api/providers/retry.ts
+++ b/src/api/providers/retry.ts
@@ -80,7 +80,7 @@ async function isPermanent429(res: Response): Promise<boolean> {
* already sat out its own four-minute hard deadline (see the server's
* `abortedResponse` in app/api/inference/v1/chat/completions/route.ts).
* Retrying reruns the same request against the same deadline and produces
- * the identical timeout every time — this is the 504 twin of
+ * the identical timeout every time. This is the 504 twin of
* `isPermanent429` above, not a transient gateway hiccup a second attempt
* could fix.
*/
diff --git a/src/components/create/experimental/__tests__/intent-label-parity.test.ts b/src/components/create/experimental/__tests__/intent-label-parity.test.ts
index 803e7ebf..3da638b1 100644
--- a/src/components/create/experimental/__tests__/intent-label-parity.test.ts
+++ b/src/components/create/experimental/__tests__/intent-label-parity.test.ts
@@ -1,8 +1,8 @@
/**
- * R5-67 — intents.ts had drifted from Web's labels for the shared intents.
+ * R5-67: intents.ts had drifted from Web's labels for the shared intents.
* Web is authoritative for "Enhance" (the upscale intent); Desktop keeps its
* own longer "Edit / Image to Image" label for 'edit' on purpose (GH D#86,
- * see the comment on that entry) — that one is NOT supposed to match Web.
+ * see the comment on that entry), that one is NOT supposed to match Web.
* Web's separate 'video_upscale' intent is a feature decision for David, not
* a label fix, and stays out of both this test and this repo's INTENTS.
*
@@ -56,7 +56,7 @@ describe('R5-67: shared intents keep the same label/short as Web', () => {
expect(INTENT_MAP.edit.short).toBe(web?.short)
})
- it('intent ids are unchanged by the rename — a saved gallery/createStore state must not strand', () => {
+ it('intent ids are unchanged by the rename, so a saved gallery/createStore state must not strand', () => {
expect(INTENT_MAP.upscale.label).toBeDefined()
expect(Object.keys(INTENT_MAP)).toContain('upscale')
expect(Object.keys(INTENT_MAP)).not.toContain('enhance')
diff --git a/src/components/create/experimental/__tests__/mask-gate.test.ts b/src/components/create/experimental/__tests__/mask-gate.test.ts
index 7313e189..74061343 100644
--- a/src/components/create/experimental/__tests__/mask-gate.test.ts
+++ b/src/components/create/experimental/__tests__/mask-gate.test.ts
@@ -1,5 +1,5 @@
/**
- * R5-66 — before this fix, `Composer.tsx`'s `canGenerate` never looked at
+ * R5-66: before this fix, `Composer.tsx`'s `canGenerate` never looked at
* `useCreateStore.mask` at all: a cloud edit or an eraser run with no mask
* painted was submitted anyway and came back as a server error, instead of
* the Create button simply staying off. `needsMaskFor` (maskGate.ts) is the
diff --git a/src/components/create/experimental/intents.ts b/src/components/create/experimental/intents.ts
index 7b080c97..67554f1c 100644
--- a/src/components/create/experimental/intents.ts
+++ b/src/components/create/experimental/intents.ts
@@ -64,7 +64,7 @@ export const INTENTS: IntentMeta[] = [
{
// R5-67: label/short renamed to match apps/web/components/create/
// experimental/intents.ts ("Enhance Image" / "Enhance"). The id stays
- // 'upscale' on purpose — a saved gallery result or a stored createStore
+ // 'upscale' on purpose, a saved gallery result or a stored createStore
// state references intents by id, and renaming that too would strand
// them. Web's separate 'video_upscale' intent is a feature decision for
// David (does the Desktop get video upscaling at all), not a text fix,
diff --git a/src/components/create/experimental/maskGate.ts b/src/components/create/experimental/maskGate.ts
index fa956837..d6708cbc 100644
--- a/src/components/create/experimental/maskGate.ts
+++ b/src/components/create/experimental/maskGate.ts
@@ -1,4 +1,4 @@
-// R5-66 — whether the current lane needs a painted mask before Create can run.
+// R5-66: whether the current lane needs a painted mask before Create can run.
// Pure and testable on its own, same pattern as stageGate.ts / laneHint.ts.
//
// Web gates 'edit' on `meta.needsMask` unconditionally (its edit intent has
@@ -15,7 +15,7 @@ export function needsMaskFor(
intent: CreateIntent,
backend: CreateBackend,
/** Whether the model the run will actually use is maskless (undefined = no
- * catalog entry found, treated as NOT maskless — the safer default). */
+ * catalog entry found, treated as NOT maskless, the safer default). */
runModelMaskless: boolean | undefined,
): boolean {
if (intent === 'eraser') return true
diff --git a/src/components/layout/__tests__/drei-gruende-drei-titel.test.tsx b/src/components/layout/__tests__/drei-gruende-drei-titel.test.tsx
index b7dd2015..aaa857e9 100644
--- a/src/components/layout/__tests__/drei-gruende-drei-titel.test.tsx
+++ b/src/components/layout/__tests__/drei-gruende-drei-titel.test.tsx
@@ -1,6 +1,6 @@
// @vitest-environment jsdom
/**
- * R5-51 — signalCreditsExhausted() and the dialog it opens used to know only
+ * R5-51: signalCreditsExhausted() and the dialog it opens used to know only
* one reason ('credits'). The cloud Create hooks already distinguished three
* server codes (credits_exhausted, video_budget_exhausted, trainings_exhausted,
* see throttleMessage in useCloudCreate.ts) but only the first one opened the
diff --git a/src/components/onboarding/ComfyStep.tsx b/src/components/onboarding/ComfyStep.tsx
index 0cf74531..7fa00d5e 100644
--- a/src/components/onboarding/ComfyStep.tsx
+++ b/src/components/onboarding/ComfyStep.tsx
@@ -144,8 +144,8 @@ export function ComfyStep({ skin, fleet, step, setStep }: ComfyStepProps) {
if (legacy.complete !== false) setComfyReady(true)
return
}
- // aq: both scans reason from disk paths and still found nothing —
- // one last knock on the configured port before calling it not
+ // aq: both scans reason from disk paths and still found nothing,
+ // so one last knock on the configured port before calling it not
// found, in case ComfyUI is already running from a place neither
// scan looks (a hand-launched venv, a network path, ...).
const running = await probeRunningComfyPort(localFetch, comfyuiUrl('/internal/folder_paths'))
diff --git a/src/components/onboarding/ModelsStep.tsx b/src/components/onboarding/ModelsStep.tsx
index 17b88bc1..2971b384 100644
--- a/src/components/onboarding/ModelsStep.tsx
+++ b/src/components/onboarding/ModelsStep.tsx
@@ -259,7 +259,7 @@ export function ModelsStep({ skin, scan, fleet, step, setStep, pulledModels, set
// with its stated requirements; they never imply that the model will fit.
//
// R2-51: `getSystemVRAM` asks the RUNNING ComfyUI's own /system_stats, so
- // the advisory only ever appeared once ComfyUI itself was up — on this very
+ // the advisory only ever appeared once ComfyUI itself was up, and on this very
// step, before ComfyUI has necessarily been started, that is most of the
// time. `getMaxVramGb` (lib/hardware.ts) asks the Rust `detect_gpus` probe
// instead (nvidia-smi/rocm-smi/lspci/wmic), which works with no engine
diff --git a/src/components/onboarding/__tests__/comfy-port-probe.test.ts b/src/components/onboarding/__tests__/comfy-port-probe.test.ts
index 8765d3a3..d7f0127e 100644
--- a/src/components/onboarding/__tests__/comfy-port-probe.test.ts
+++ b/src/components/onboarding/__tests__/comfy-port-probe.test.ts
@@ -1,5 +1,5 @@
/**
- * aq (3.0.1) — `detect_all_comfyui_installs` and the legacy `find_comfyui`
+ * aq (3.0.1): `detect_all_comfyui_installs` and the legacy `find_comfyui`
* both reason from disk paths and can both come back empty even while
* ComfyUI is genuinely running (a hand-launched venv, a network path,
* anything the scan heuristics do not look at). `probeRunningComfyPort` is
diff --git a/src/components/onboarding/__tests__/vram-advisory-prefers-rust-probe.test.ts b/src/components/onboarding/__tests__/vram-advisory-prefers-rust-probe.test.ts
index c4965a29..db05ee99 100644
--- a/src/components/onboarding/__tests__/vram-advisory-prefers-rust-probe.test.ts
+++ b/src/components/onboarding/__tests__/vram-advisory-prefers-rust-probe.test.ts
@@ -1,8 +1,8 @@
/**
- * R2-51 — the VRAM advisory on ModelsStep used to ask ONLY the running
+ * R2-51: the VRAM advisory on ModelsStep used to ask ONLY the running
* ComfyUI's own /system_stats (`getSystemVRAM`, api/comfyui.ts). On this very
* step, before ComfyUI has necessarily been started, that meant the memory
- * warning next to an oversized model was silent almost all the time — not
+ * warning next to an oversized model was silent almost all the time, not
* because the machine had enough VRAM, but because nothing had asked yet.
*
* `getMaxVramGb` (lib/hardware.ts) asks the Rust `detect_gpus` probe
@@ -49,7 +49,7 @@ describe('R2-51: ModelsStep prefers the Rust GPU probe over ComfyUI for the VRAM
const block = src.slice(at, src.indexOf('}, [])', at) + 10)
expect(block).toContain('.catch(() => {')
// Two independent fallback paths: the `v === 0` branch inside `.then`,
- // and the `.catch` for a thrown/rejected probe — both must call
+ // and the `.catch` for a thrown/rejected probe, both must call
// getSystemVRAM, or a rejected detect_gpus call would leave the
// advisory permanently null even though ComfyUI could still answer.
const comfyCalls = block.split('getSystemVRAM()').length - 1
@@ -57,7 +57,7 @@ describe('R2-51: ModelsStep prefers the Rust GPU probe over ComfyUI for the VRAM
})
})
-describe('R2-51: NEGATIVE CONTROL — getMaxVramGb genuinely needs no ComfyUI', () => {
+describe('R2-51: NEGATIVE CONTROL, getMaxVramGb genuinely needs no ComfyUI', () => {
it('is documented to fail soft to 0 rather than throw when detect_gpus is unavailable', async () => {
// Exercises the real function (no engine, no Tauri) to prove the claim
// in ModelsStep's new comment: a probe failure here is silent, not a
diff --git a/src/components/onboarding/comfyPortProbe.ts b/src/components/onboarding/comfyPortProbe.ts
index 259de8d2..3d8b86f9 100644
--- a/src/components/onboarding/comfyPortProbe.ts
+++ b/src/components/onboarding/comfyPortProbe.ts
@@ -1,4 +1,4 @@
-// aq (3.0.1) — `detect_all_comfyui_installs` walks known install locations on
+// aq (3.0.1): `detect_all_comfyui_installs` walks known install locations on
// disk; it finds nothing when ComfyUI lives somewhere the scan never looks
// (a custom venv launched by hand, a network drive, a path the scan's
// heuristics miss) even though the user already has it running. The legacy
@@ -9,7 +9,7 @@
// `/internal/folder_paths` (the same endpoint `comfy_folders::folders_of`
// reads on the Rust side for a running-instance probe) directly from the
// renderer, the same way the rest of this file already talks to a live
-// ComfyUI once it knows where one is. No new Rust command needed — `fetchFn`
+// ComfyUI once it knows where one is. No new Rust command needed, `fetchFn`
// is `localFetch` in production, which already proxies localhost requests
// through Tauri where the webview's own fetch cannot reach them.
//
diff --git a/src/components/settings/__tests__/content-policy-wording-parity.test.ts b/src/components/settings/__tests__/content-policy-wording-parity.test.ts
index c159dab2..f653d341 100644
--- a/src/components/settings/__tests__/content-policy-wording-parity.test.ts
+++ b/src/components/settings/__tests__/content-policy-wording-parity.test.ts
@@ -1,5 +1,5 @@
/**
- * R5-4, R5-5, R5-6 — ContentPolicySettings.tsx had drifted from the Web
+ * R5-4, R5-5, R5-6: ContentPolicySettings.tsx had drifted from the Web
* wording in three spots: the "strict" and "off" hints (R5-5, R5-6) and the
* footnote about what the setting covers (R5-4). One wording is better than
* two for the two hints that mean the same thing on both sides; the footnote
diff --git a/src/hooks/__tests__/flash-timeout-stops-the-loop.test.ts b/src/hooks/__tests__/flash-timeout-stops-the-loop.test.ts
index 09768d8b..b157e461 100644
--- a/src/hooks/__tests__/flash-timeout-stops-the-loop.test.ts
+++ b/src/hooks/__tests__/flash-timeout-stops-the-loop.test.ts
@@ -1,9 +1,9 @@
/**
- * R5-53 — a 504 with code 'flash_timeout' means the free-tier request already
+ * R5-53: a 504 with code 'flash_timeout' means the free-tier request already
* sat out its own four-minute server-side deadline; retrying it repeats that
* same wait. Before this fix `isTerminalModelError` did not recognise the
* code (a 504 falls outside "status >= 400 && status < 500"), so the
- * connRetries ladder in useAgentChat.ts retried it up to three times —
+ * connRetries ladder in useAgentChat.ts retried it up to three times,
* twelve silent minutes before the run gave up with a generic message.
*
* Source-level, matching loop-stops-on-terminal.test.ts: what has to hold is
@@ -52,7 +52,7 @@ describe('R5-53: isTerminalModelError treats flash_timeout like credits_exhauste
})
it('NEGATIVE CONTROL: a plain 504 (no code) is not named in the terminal guard', () => {
- // The terminal check is code-based, not status-based, for this one — a
+ // The terminal check is code-based, not status-based, for this one, so a
// bare 504 must keep falling through to the transient path below it.
const guardLine = httpStatus.slice(
httpStatus.indexOf('export function isTerminalModelError'),
diff --git a/src/hooks/__tests__/throttled-run-waits-it-out.test.ts b/src/hooks/__tests__/throttled-run-waits-it-out.test.ts
index 58b89746..8f1e3663 100644
--- a/src/hooks/__tests__/throttled-run-waits-it-out.test.ts
+++ b/src/hooks/__tests__/throttled-run-waits-it-out.test.ts
@@ -69,7 +69,7 @@ describe('and giving up says when to come back', () => {
it('a throttle does not kill a /loop, unlike an empty wallet', () => {
// R5-53 added the flash_timeout branch right after this one, which DOES
- // set loopHalt (a flash timeout is final, unlike a throttle) — so the end
+ // set loopHalt (a flash timeout is final, unlike a throttle), so the end
// anchor is that branch's own start, not the next NAMED branch further
// down, or this slice would swallow flash_timeout's loopHalt too and
// read as a false regression here.
diff --git a/src/lib/credits-exhausted.ts b/src/lib/credits-exhausted.ts
index 0919d154..73146d9f 100644
--- a/src/lib/credits-exhausted.ts
+++ b/src/lib/credits-exhausted.ts
@@ -9,7 +9,7 @@ import { CLOUD_BASE } from '../api/cloud/config'
export const CREDITS_EXHAUSTED_EVENT = 'lu:credits-exhausted'
-/** Which cap said no — drives the dialog title and copy. 'credits' = the
+/** Which cap said no, drives the dialog title and copy. 'credits' = the
* shared pool, 'video_budget' = the monthly video sub-budget (top-ups
* bypass it), 'trainings' = no included run remains and the top-up wallet
* cannot cover the selected training. Matches apps/web/lib/credits-
diff --git a/src/lib/http-status.ts b/src/lib/http-status.ts
index 6aa87058..87d936d5 100644
--- a/src/lib/http-status.ts
+++ b/src/lib/http-status.ts
@@ -103,7 +103,7 @@ export function isTerminalModelError(err: unknown): boolean {
// "status >= 400 && status < 500" (false) and read as a plain gateway
// hiccup worth retrying. The free-tier request had already sat out its own
// four-minute hard deadline (see the server's route), so each of the three
- // attempts in the connRetries ladder repeated the same four-minute wait —
+ // attempts in the connRetries ladder repeated the same four-minute wait,
// twelve silent minutes before the run gave up, same shape as the
// `credits_exhausted` bug this line is modelled on.
if (e?.code === 'credits_exhausted' || e?.code === 'signed_out' || e?.code === 'flash_timeout') return true
diff --git a/src/lib/render/__tests__/adult-tier-parity.test.ts b/src/lib/render/__tests__/adult-tier-parity.test.ts
index a71bd3db..bec41d2b 100644
--- a/src/lib/render/__tests__/adult-tier-parity.test.ts
+++ b/src/lib/render/__tests__/adult-tier-parity.test.ts
@@ -1,5 +1,5 @@
/**
- * R5-9 — safety.ts was two copies that no longer agreed. Web had grown
+ * R5-9: safety.ts was two copies that no longer agreed. Web had grown
* `collapseSpacing` (a stricter letter-spacing fold than Desktop's
* `spacedRuns`) plus a cloud-tier adult gate (`ADULT_SOFT_TERMS` /
* `ADULT_HARD_TERMS`, `AdultPolicy`); Desktop had neither, so the same prompt
@@ -10,7 +10,7 @@
* Desktop's `checkPromptSafety`. The same 24 probes (verbatim) also run
* against Web's `apps/web/lib/render/__tests__/safety.test.ts`; both must
* reach the same verdict for each one. The CSAM floor on the server is
- * unchanged by this file — it only brings the client pre-check on Desktop
+ * unchanged by this file, it only brings the client pre-check on Desktop
* up to what Web already does.
*
* Run: npx vitest run src/lib/render/__tests__/adult-tier-parity.test.ts
@@ -63,7 +63,7 @@ describe('R5-9: the 24-probe table matches Web verdict for verdict', () => {
})
})
-describe('R5-9: NEGATIVE CONTROL — the two named phrases stay free on every tier', () => {
+describe('R5-9: NEGATIVE CONTROL, the two named phrases stay free on every tier', () => {
it('torpedo launch is never blocked, on any tier or policy', () => {
for (const opts of [
{},
@@ -118,14 +118,14 @@ describe('R5-9: the cloud-tier adult gate now matches Web', () => {
})
})
- it('CSAM always wins over adult-cloud — reason and alert semantics stay CSAM', () => {
+ it('CSAM always wins over adult-cloud, reason and alert semantics stay CSAM', () => {
const v = checkPromptSafety('a nude child', { tier: 'cloud' })
expect(v.blocked).toBe(true)
expect(v.reason).toBe('minor+sexual')
expect(checkPromptSafety('child porn', { tier: 'cloud' }).reason).toBe('csam')
})
- it('does NOT block soft adult words on their own — narrower than SEXUAL_TERMS', () => {
+ it('does NOT block soft adult words on their own, narrower than SEXUAL_TERMS', () => {
expect(checkPromptSafety('sexy adult model, lingerie photoshoot', { tier: 'cloud' }).blocked).toBe(false)
expect(checkPromptSafety('seductive vampire, gothic portrait', { tier: 'cloud' }).blocked).toBe(false)
})
@@ -142,7 +142,7 @@ describe('R5-9: the cloud-tier adult gate now matches Web', () => {
it('NEGATIVE CONTROL: without a cloud tier, the adult gate never fires at all', () => {
// Desktop's current callers (useCreate.ts, useCloudCreate.ts) never pass
- // tier: 'cloud' yet — this is the guard that a future caller opting in
+ // tier: 'cloud' yet, this is the guard that a future caller opting in
// is a deliberate change, not a silent default flip.
expect(checkPromptSafety('hardcore porn scene').blocked).toBe(false)
expect(checkPromptSafety('hardcore porn scene', { policy: 'strict' }).blocked).toBe(false)