Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

chore(deps): update dependencies, pin js-yaml, enforce binary lint policy

Adam Eivycc959bf61826
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 95d727469a..787d916b0f 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -115,6 +115,8 @@
## Changed
+- **Social-platform icons updated.** lucide-react v1 removed its brand glyphs (GitHub, Instagram, Facebook, LinkedIn, X, YouTube), so the Digital Twin accounts list and the GitHub dev-tools link now use generic line icons in their place.
+
- **Refreshed the seeded Claude Bedrock provider defaults to current model ids.** The shipped `claude-code-bedrock` (CLI) and `claude-code-tui-bedrock` (TUI) provider entries in the seed config now default to the current Claude on Bedrock model set — `us.anthropic.claude-haiku-4-5` (light), `us.anthropic.claude-sonnet-4-6` (medium), and `global.anthropic.claude-opus-4-8[1m]` (default/heavy), with `global.anthropic.claude-opus-4-8` also listed — replacing the stale `claude-opus-4-6` / dated-snapshot ids. Both stay `enabled: false` (opt-in) and ship with an empty `AWS_BEARER_TOKEN_BEDROCK`; the CLI entry also gains the `secretEnvVars` marker so the token is treated as a secret. (`data.reference/providers.json`)
- **Updated the bundled `slashdo` submodule from v3.14.0 → v3.15.0.** (`lib/slashdo`)
@@ -163,6 +165,9 @@
## Fixed
+- **The element-symbol quiz no longer reshuffles on every keystroke.** The Elements practice quiz rebuilt its question deck with a fresh random shuffle on every render, so typing an answer reshuffled the deck and swapped the current question out from under you. The deck is now built once per item and stays put while you answer.
+- **CyberCity lightning flashes no longer teleport.** The lightning flash light re-rolled its position on every render, making the flash jump around the scene; its origin is now chosen once.
+
- **[issue-1449] Fixed a flaky VoicePicker test whose `waitFor` guards never actually waited.** Five tests in `VoicePicker.test.jsx` guarded the async voice load with `await waitFor(() => document.querySelector('option[value="kokoro:af_bella"]'))` — but `waitFor` only retries while its callback *throws*, and returning `null` (option not yet rendered) isn't a throw, so it resolved on the first tick and the subsequent `user.selectOptions` could run before `listPipelineTtsVoices` populated the `<option>`s (`Value "kokoro:af_bella" not found in options` in CI). Every non-asserting guard now uses the asserting form (`expect(...).toBeInTheDocument()`), matching the one sibling test that was already correct, so the suite stops losing the load race on slow runners. (`client/src/components/voice/VoicePicker.test.jsx`, #1449)
- **The CyberCity exploration avatar now faces its direction of travel instead of moonwalking.** The runner is modeled facing +Z (visor, chest core, boot toes) while the player rig's forward convention is −Z, so `root.rotation.y = rig.facing` pointed the model's face 180° opposite to its movement — it walked away from the camera while facing it, and at drop-in faced *away* from the city center despite the "facing downtown" spawn intent. The rig math is internally consistent on the −Z convention, so the fix is a single +π yaw offset where the model meets the rig in `PlayerAvatar.jsx`. (`client/src/components/city/PlayerAvatar.jsx`)
@@ -245,3 +250,5 @@
- Removed a stray `.changelogs/` (plural) directory created by an earlier commit alongside the real `.changelog/` (singular); its lone entry was already superseded in the canonical changelog. (`.changelogs/`)
- Updated the bundled slashdo submodule from v3.15.0 to v3.16.0. (`lib/slashdo`)
+- Bumped dependencies to current releases: `pg`, `sharp`, `vitest` + `@vitest/coverage-v8`, `tailwindcss` + `@tailwindcss/postcss`, `react-router-dom`, `recharts`, `jsdom`, `rollup-plugin-visualizer`, `eslint-plugin-react-hooks` (v7), and `lucide-react` (v1). Pinned `js-yaml` to `4.2.0` via package `overrides` to resolve a moderate quadratic-complexity (ReDoS) advisory it carries transitively through `pm2`. `eslint`/`@eslint/js` are held at 9.x because `eslint-plugin-react` has no eslint-10-compatible release yet. (`package.json`, `server/package.json`, `client/package.json`)
+- Reworked the client ESLint policy to be strictly binary — every rule is `error` or `off`, never `warn` (a warning nobody acts on is just noise that hides real errors). `no-unused-vars` is now enforced (and existing violations cleared); the React-Compiler rule set newly enabled by `eslint-plugin-react-hooks` v7 is disabled (PortOS doesn't run the React Compiler, and those rules flag intentional idioms en masse), as is `exhaustive-deps`; `rules-of-hooks` stays enforced. Now-dead inline `eslint-disable` directives were removed. (`client/eslint.config.js`)
diff --git a/client/eslint.config.js b/client/eslint.config.js
index 3898a48f30..5236cd717b 100644
--- a/client/eslint.config.js
+++ b/client/eslint.config.js
@@ -91,7 +91,10 @@ export default [
'react/no-unknown-property': 'off',
'react/no-unescaped-entities': 'off',
'react/jsx-no-comment-textnodes': 'off',
- 'no-unused-vars': ['warn', {
+ // Lint policy: every rule is either 'error' (enforced) or 'off' (gone). We do
+ // not use 'warn' — a warning is a rule nobody acts on, i.e. noise that hides
+ // real errors. If we don't want to enforce a rule, we disable it outright.
+ 'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
@@ -99,7 +102,23 @@ export default [
'no-undef': 'error',
'no-useless-escape': 'error',
'react-hooks/rules-of-hooks': 'error',
- 'react-hooks/exhaustive-deps': 'warn',
+ // exhaustive-deps is dominated by the deliberate run-once-on-mount pattern across
+ // this codebase; rather than enforce-and-suppress it everywhere we turn it off and
+ // manage effect dependencies by review. rules-of-hooks (above) stays enforced.
+ 'react-hooks/exhaustive-deps': 'off',
+ // eslint-plugin-react-hooks v7's `recommended` preset newly enables the React
+ // Compiler rule set. PortOS does not run the React Compiler, and these rules
+ // flag intentional, correct idioms across the codebase (async-loader effects,
+ // the mirror-prop-into-ref pattern for animation/async callbacks, and THREE.js
+ // useFrame mutations). We disable the compiler-specific rules rather than scatter
+ // hundreds of inline suppressions. Revisit if/when PortOS adopts the React Compiler.
+ 'react-hooks/set-state-in-effect': 'off',
+ 'react-hooks/refs': 'off',
+ 'react-hooks/purity': 'off',
+ 'react-hooks/immutability': 'off',
+ 'react-hooks/preserve-manual-memoization': 'off',
+ 'react-hooks/static-components': 'off',
+ 'react-hooks/globals': 'off',
},
},
];
diff --git a/client/package.json b/client/package.json
index 5b6963e96a..f89fb1a090 100644
--- a/client/package.json
+++ b/client/package.json
@@ -21,30 +21,30 @@
"@xterm/addon-fit": "0.11.0",
"@xterm/addon-web-links": "0.12.0",
"@xterm/xterm": "6.0.0",
- "lucide-react": "0.562.0",
+ "lucide-react": "1.21.0",
"react": "19.2.7",
"react-dom": "19.2.7",
- "react-router-dom": "7.16.0",
- "recharts": "3.7.0",
+ "react-router-dom": "7.18.0",
+ "recharts": "3.8.1",
"socket.io-client": "4.8.3",
"three": "0.184.0",
"three-fenestra": "^0.3.0"
},
"devDependencies": {
"@eslint/js": "9.39.4",
- "@tailwindcss/postcss": "4.2.1",
+ "@tailwindcss/postcss": "4.3.1",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.2",
"@testing-library/user-event": "14.6.1",
"@vitejs/plugin-react": "6.0.2",
"eslint": "9.39.4",
"eslint-plugin-react": "7.37.5",
- "eslint-plugin-react-hooks": "5.2.0",
- "jsdom": "26.1.0",
- "rollup-plugin-visualizer": "6.0.11",
- "tailwindcss": "4.2.1",
+ "eslint-plugin-react-hooks": "7.1.1",
+ "jsdom": "29.1.1",
+ "rollup-plugin-visualizer": "7.0.1",
+ "tailwindcss": "4.3.1",
"vite": "8.0.16",
- "vitest": "4.1.8"
+ "vitest": "4.1.9"
},
"overrides": {
"brace-expansion": "5.0.5",
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 96b3d38f54..f785e2b1ba 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -55,7 +55,6 @@ import {
LayoutDashboard,
Lightbulb,
GitBranch,
- Github,
Link2,
Database,
Shield,
@@ -227,7 +226,7 @@ const navItems = [
{ to: '/data', label: 'Data', icon: HardDrive },
{ to: '/devtools/datadog', label: 'DataDog', icon: Dog },
{ to: '/feature-agents', label: 'Feature Agents', icon: Wand2 },
- { to: '/devtools/github', label: 'GitHub', icon: Github },
+ { to: '/devtools/github', label: 'GitHub', icon: GitBranch },
{ to: '/devtools/history', label: 'History', icon: History },
{ to: '/devtools/image-clean', label: 'Image Cleaner', icon: Eraser },
{ to: '/instances', label: 'Instances', icon: Network },
diff --git a/client/src/components/TagPicker.test.jsx b/client/src/components/TagPicker.test.jsx
index f1c77f6c46..05cb380c43 100644
--- a/client/src/components/TagPicker.test.jsx
+++ b/client/src/components/TagPicker.test.jsx
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
-import { render, screen, fireEvent, waitFor } from '@testing-library/react';
+import { render, screen, fireEvent } from '@testing-library/react';
vi.mock('../services/apiCatalog', () => ({
listCatalogTags: vi.fn(),
diff --git a/client/src/components/agents/tabs/OverviewTab.jsx b/client/src/components/agents/tabs/OverviewTab.jsx
index 3bcf5b7329..66e397e06f 100644
--- a/client/src/components/agents/tabs/OverviewTab.jsx
+++ b/client/src/components/agents/tabs/OverviewTab.jsx
@@ -66,7 +66,6 @@ export default function OverviewTab({ agentId, agent, onAgentUpdate }) {
if (!formData) return;
setTopicsText(formData.personality.topics.join(', '));
setQuirksText(formData.personality.quirks.join(', '));
- // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed on serialized arrays to avoid clobbering in-progress text edits
}, [topicsKey, quirksKey]);
const fetchAccounts = useCallback(async () => {
diff --git a/client/src/components/apps/ReferenceReposPanel.jsx b/client/src/components/apps/ReferenceReposPanel.jsx
index 89e81784b2..eb1aa20e89 100644
--- a/client/src/components/apps/ReferenceReposPanel.jsx
+++ b/client/src/components/apps/ReferenceReposPanel.jsx
@@ -234,7 +234,7 @@ function RefRow({ reference, snapshot, checking, editingNotes, onCheck, onMarkRe
const [notesDraft, setNotesDraft] = useState(reference.notes || '');
useEffect(() => {
if (editingNotes) setNotesDraft(reference.notes || '');
- }, [editingNotes]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [editingNotes]);
const lastReviewedShort = reference.lastReviewedSha ? reference.lastReviewedSha.slice(0, 8) : null;
const lastCheckedAgo = reference.lastCheckedAt ? new Date(reference.lastCheckedAt).toLocaleString() : 'never';
diff --git a/client/src/components/brain/tabs/BrainGraph.jsx b/client/src/components/brain/tabs/BrainGraph.jsx
index 40b8998036..0548755824 100644
--- a/client/src/components/brain/tabs/BrainGraph.jsx
+++ b/client/src/components/brain/tabs/BrainGraph.jsx
@@ -207,7 +207,6 @@ export default function BrainGraph() {
const g = buildGraph(filteredData.nodes, filteredData.edges);
graphRef.current = g;
return g;
- // eslint-disable-next-line react-hooks/exhaustive-deps -- layoutKey intentionally triggers rebuild on re-layout
}, [filteredData, layoutKey]);
const adjacentIds = useMemo(() => {
diff --git a/client/src/components/brain/tabs/DailyLogTab.jsx b/client/src/components/brain/tabs/DailyLogTab.jsx
index 1b60e44cad..0e3c911983 100644
--- a/client/src/components/brain/tabs/DailyLogTab.jsx
+++ b/client/src/components/brain/tabs/DailyLogTab.jsx
@@ -134,7 +134,6 @@ export default function DailyLogTab() {
}).catch(() => null);
return () => { cancelled = true; };
// Only on mount — we intentionally don't re-run when date changes.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => {
diff --git a/client/src/components/brain/tabs/NotesTab.jsx b/client/src/components/brain/tabs/NotesTab.jsx
index 6f6bf5d108..0dd82399f8 100644
--- a/client/src/components/brain/tabs/NotesTab.jsx
+++ b/client/src/components/brain/tabs/NotesTab.jsx
@@ -24,7 +24,7 @@ import InlineConfirmRow from '../../ui/InlineConfirmRow';
import FolderPicker from '../../FolderPicker';
import { timeAgo, formatBytes } from '../../../utils/formatters';
-export default function NotesTab({ onRefresh }) {
+export default function NotesTab() {
// Vault state
const [vaults, setVaults] = useState([]);
const [selectedVaultId, setSelectedVaultId] = useState(null);
@@ -49,11 +49,11 @@ export default function NotesTab({ onRefresh }) {
// Search state
const [searchQuery, setSearchQuery] = useState('');
const [searchResults, setSearchResults] = useState(null);
- const [searching, setSearching] = useState(false);
+ const [, setSearching] = useState(false);
// Filter state
const [folderFilter, setFolderFilter] = useState('');
- const [folders, setFolders] = useState([]);
+ const [, setFolders] = useState([]);
const [expandedFolders, setExpandedFolders] = useState(new Set());
const [tags, setTags] = useState([]);
const [showTags, setShowTags] = useState(false);
@@ -135,16 +135,6 @@ export default function NotesTab({ onRefresh }) {
}
};
- const handleRemoveVault = async (id) => {
- await api.deleteNotesVault(id).catch(() => null);
- toast.success('Vault removed');
- setVaults(prev => prev.filter(v => v.id !== id));
- if (selectedVaultId === id) {
- setSelectedVaultId(vaults.find(v => v.id !== id)?.id || null);
- }
- setConfirmDelete(null);
- };
-
const handleSelectNote = async (notePath) => {
setLoadingNote(true);
setEditing(false);
@@ -840,7 +830,6 @@ function MarkdownPreview({ content, onLinkClick }) {
const elements = [];
let inCodeBlock = false;
let codeLines = [];
- let codeLanguage = '';
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
@@ -857,7 +846,6 @@ function MarkdownPreview({ content, onLinkClick }) {
inCodeBlock = false;
} else {
inCodeBlock = true;
- codeLanguage = line.trim().slice(3);
}
continue;
}
diff --git a/client/src/components/city/CityDepthOfField.jsx b/client/src/components/city/CityDepthOfField.jsx
index d11d8fc02c..4254cede9a 100644
--- a/client/src/components/city/CityDepthOfField.jsx
+++ b/client/src/components/city/CityDepthOfField.jsx
@@ -45,7 +45,6 @@ export default function CityDepthOfField({ presetId, enabled = true, composerRef
return { composer: comp, bokehPass: bokeh };
// gl/scene/camera are stable for the lifetime of this mount; presetId is applied via the
// effect below so changing it doesn't rebuild the whole composer.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [gl, scene, camera]);
// Expose the composer so the capture path (CityPhotoCamera) renders the DoF frame too, instead
diff --git a/client/src/components/city/CityLandscape.jsx b/client/src/components/city/CityLandscape.jsx
index 823a8c2e61..7cd104a64e 100644
--- a/client/src/components/city/CityLandscape.jsx
+++ b/client/src/components/city/CityLandscape.jsx
@@ -78,7 +78,7 @@ function TerrainPlane({ dayMix, accent }) {
// accent intentionally NOT a dep — a theme switch updates the uniform in
// place (effect below) rather than recompiling the GLSL program. Matches the
// imperative-uniform pattern in CitySky / CityBillboards / CityVolumetricLights.
- }), [dayMix]); // eslint-disable-line react-hooks/exhaustive-deps
+ }), [dayMix]);
// Push the accent into the existing material on theme change — no rebuild.
useEffect(() => { material.uniforms.uAccent.value.set(accent); }, [material, accent]);
diff --git a/client/src/components/city/CityWeather.jsx b/client/src/components/city/CityWeather.jsx
index 374b145082..cb196fb1ca 100644
--- a/client/src/components/city/CityWeather.jsx
+++ b/client/src/components/city/CityWeather.jsx
@@ -37,6 +37,9 @@ const RAIN_FRAG = `
function LightningFlash({ active, playSfx }) {
const lightRef = useRef();
const flashState = useRef({ nextFlash: 0, intensity: 0, flickerCount: 0 });
+ // Pick the flash origin once — inlining Math.random() in the JSX below re-rolls the
+ // light position on every render, teleporting the lightning flash around the scene.
+ const flashPosition = useMemo(() => [Math.random() * 40 - 20, 30, Math.random() * 40 - 20], []);
useFrame(({ clock }) => {
if (!lightRef.current || !active) {
@@ -70,7 +73,7 @@ function LightningFlash({ active, playSfx }) {
return (
<pointLight
ref={lightRef}
- position={[Math.random() * 40 - 20, 30, Math.random() * 40 - 20]}
+ position={flashPosition}
color="#b4d4ff"
intensity={0}
distance={100}
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsx
index 1fe91a586c..83b4bc3cd9 100644
--- a/client/src/components/cos/TaskAddForm.jsx
+++ b/client/src/components/cos/TaskAddForm.jsx
@@ -95,7 +95,6 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fa
setCreateJiraTicket(!!selectedApp?.jira?.enabled);
setUseWorktree(defaultUseWorktree);
setOpenPR(defaultOpenPR);
- // eslint-disable-next-line react-hooks/exhaustive-deps -- selectedApp intentionally omitted; appDefaultsSig encodes every field the effect reads, so depending on the object reference would re-fire on identical-content polling refreshes and stomp manual toggles
}, [appDefaultsSig]);
// Get models for selected provider
diff --git a/client/src/components/cos/tabs/MemoryGraph.jsx b/client/src/components/cos/tabs/MemoryGraph.jsx
index 0af41a3ba8..4d10d73eeb 100644
--- a/client/src/components/cos/tabs/MemoryGraph.jsx
+++ b/client/src/components/cos/tabs/MemoryGraph.jsx
@@ -131,7 +131,6 @@ export default function MemoryGraph() {
const g = buildGraph(graphData.nodes, graphData.edges);
graphRef.current = g;
return g;
- // eslint-disable-next-line react-hooks/exhaustive-deps -- layoutKey intentionally triggers rebuild on re-layout
}, [graphData, layoutKey]);
const adjacentIds = useMemo(() => {
diff --git a/client/src/components/cos/tabs/schedule/GlobalConfigControls.jsx b/client/src/components/cos/tabs/schedule/GlobalConfigControls.jsx
index 6534176266..0f2077945b 100644
--- a/client/src/components/cos/tabs/schedule/GlobalConfigControls.jsx
+++ b/client/src/components/cos/tabs/schedule/GlobalConfigControls.jsx
@@ -327,7 +327,7 @@ export default function GlobalConfigControls({ taskType, config, onUpdate, onTri
disabled={updating}
onChange={({ reviewers, stopMode, reviewerApplies }) => {
// Drop the legacy single `reviewer` key so storage converges on `reviewers`.
- const { reviewer, ...rest } = config.taskMetadata || {};
+ const { reviewer: _reviewer, ...rest } = config.taskMetadata || {};
onUpdate(taskType, {
taskMetadata: { ...rest, reviewers, reviewStopMode: stopMode, reviewerApplies }
});
diff --git a/client/src/components/dashboard/DashboardGrid.jsx b/client/src/components/dashboard/DashboardGrid.jsx
index cd52f9f97e..96414368b9 100644
--- a/client/src/components/dashboard/DashboardGrid.jsx
+++ b/client/src/components/dashboard/DashboardGrid.jsx
@@ -247,7 +247,6 @@ export default function DashboardGrid({ items, editable, onChange, renderItem })
};
// dragGhost in the deps array re-installs the listeners only when the
// gesture starts/ends — pointermove updates dragRef.current directly.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [dragGhost ? 'active' : 'idle', items, onChange, containerWidth]);
// Single render tree across mobile and desktop — only the className/style
diff --git a/client/src/components/dashboard/LayoutEditor.jsx b/client/src/components/dashboard/LayoutEditor.jsx
index 42d2b69232..de042b991b 100644
--- a/client/src/components/dashboard/LayoutEditor.jsx
+++ b/client/src/components/dashboard/LayoutEditor.jsx
@@ -53,7 +53,6 @@ export default function LayoutEditor({ layouts, activeLayoutId, limits, onClose,
setMode('idle');
setDupName('');
setPendingSwitchId(null);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [editingId, layouts]);
// Guard layout switches when there are unsaved edits: instead of silently
diff --git a/client/src/components/digital-twin/ListEnrichment.jsx b/client/src/components/digital-twin/ListEnrichment.jsx
index 92d7e71691..13a6a8afbf 100644
--- a/client/src/components/digital-twin/ListEnrichment.jsx
+++ b/client/src/components/digital-twin/ListEnrichment.jsx
@@ -62,7 +62,7 @@ export default function ListEnrichment({
setItems([mkItem()]);
}
setLoadingItems(false);
- }, [categoryId]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [categoryId]);
useEffect(() => {
loadExistingItems();
diff --git a/client/src/components/digital-twin/tabs/AccountsTab.jsx b/client/src/components/digital-twin/tabs/AccountsTab.jsx
index 9361fd1847..bf6cecfc1d 100644
--- a/client/src/components/digital-twin/tabs/AccountsTab.jsx
+++ b/client/src/components/digital-twin/tabs/AccountsTab.jsx
@@ -1,11 +1,11 @@
import { useState, useEffect } from 'react';
import {
- Github,
- Instagram,
- Facebook,
- Linkedin,
- Twitter,
- Youtube,
+ GitBranch,
+ Camera,
+ Users,
+ Briefcase,
+ Bird,
+ Play,
Music,
MessageCircle,
Cloud,
@@ -30,12 +30,12 @@ import { useConfirmDelete } from '../../../hooks/useConfirmDelete';
// Platform icon mapping
const PLATFORM_ICONS = {
- github: Github,
- instagram: Instagram,
- facebook: Facebook,
- linkedin: Linkedin,
- x: Twitter,
- youtube: Youtube,
+ github: GitBranch,
+ instagram: Camera,
+ facebook: Users,
+ linkedin: Briefcase,
+ x: Bird,
+ youtube: Play,
tiktok: Music,
reddit: MessageCircle,
bluesky: Cloud,
diff --git a/client/src/components/loraTraining/CaptionModelPicker.jsx b/client/src/components/loraTraining/CaptionModelPicker.jsx
index 976ec02c77..74ec394e51 100644
--- a/client/src/components/loraTraining/CaptionModelPicker.jsx
+++ b/client/src/components/loraTraining/CaptionModelPicker.jsx
@@ -51,7 +51,6 @@ export default function CaptionModelPicker({ onChange }) {
});
return () => { alive = false; };
// onChange is a stable setter from the parent; intentionally run once.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleChange = async (next) => {
diff --git a/client/src/components/meatspace/post/ElementsSong.jsx b/client/src/components/meatspace/post/ElementsSong.jsx
index 8e1b36485e..5286782652 100644
--- a/client/src/components/meatspace/post/ElementsSong.jsx
+++ b/client/src/components/meatspace/post/ElementsSong.jsx
@@ -476,23 +476,27 @@ function LearnMode({ item, onBack, onComplete }) {
function ElementFlashMode({ item, mastery, onBack, onComplete }) {
const elementMap = item.content?.elementMap || {};
- const allElements = Object.entries(elementMap);
-
- // Prioritize weak elements
- const sorted = [...allElements].sort((a, b) => {
- const mA = mastery.elements?.[a[0]];
- const mB = mastery.elements?.[b[0]];
- const pctA = mA?.attempts > 0 ? mA.correct / mA.attempts : 0;
- const pctB = mB?.attempts > 0 ? mB.correct / mB.attempts : 0;
- return pctA - pctB;
- });
-
- const questions = sorted.slice(0, 15).sort(() => Math.random() - 0.5).map(([symbol, info]) => {
- const askSymbol = Math.random() > 0.5;
- return askSymbol
- ? { prompt: info.name, expected: symbol, element: symbol, label: 'What symbol?' }
- : { prompt: `${symbol} (${info.atomicNumber})`, expected: info.name, element: symbol, label: 'What element?' };
- });
+
+ // Build the quiz once per item/mastery — without memoization the Math.random()
+ // shuffle below re-runs on every render (e.g. each keystroke), reshuffling the
+ // deck and swapping the current question mid-answer.
+ const questions = useMemo(() => {
+ const allElements = Object.entries(elementMap);
+ // Prioritize weak elements
+ const sorted = [...allElements].sort((a, b) => {
+ const mA = mastery.elements?.[a[0]];
+ const mB = mastery.elements?.[b[0]];
+ const pctA = mA?.attempts > 0 ? mA.correct / mA.attempts : 0;
+ const pctB = mB?.attempts > 0 ? mB.correct / mB.attempts : 0;
+ return pctA - pctB;
+ });
+ return sorted.slice(0, 15).sort(() => Math.random() - 0.5).map(([symbol, info]) => {
+ const askSymbol = Math.random() > 0.5;
+ return askSymbol
+ ? { prompt: info.name, expected: symbol, element: symbol, label: 'What symbol?' }
+ : { prompt: `${symbol} (${info.atomicNumber})`, expected: info.name, element: symbol, label: 'What element?' };
+ });
+ }, [elementMap, mastery]);
const [idx, setIdx] = useState(0);
const [answer, setAnswer] = useState('');
diff --git a/client/src/components/media/CollectionPickerShell.jsx b/client/src/components/media/CollectionPickerShell.jsx
index f8cc441f20..8cb15fbedb 100644
--- a/client/src/components/media/CollectionPickerShell.jsx
+++ b/client/src/components/media/CollectionPickerShell.jsx
@@ -105,7 +105,6 @@ export default function CollectionPickerShell({
},
);
return () => { cancelled = true; };
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [open, collectionsProp]);
const filtered = useMemo(() => {
diff --git a/client/src/components/pipeline/manuscript/AnnotatedManuscriptSection.jsx b/client/src/components/pipeline/manuscript/AnnotatedManuscriptSection.jsx
index d7b18dd8d3..a5d6bb5c78 100644
--- a/client/src/components/pipeline/manuscript/AnnotatedManuscriptSection.jsx
+++ b/client/src/components/pipeline/manuscript/AnnotatedManuscriptSection.jsx
@@ -33,7 +33,7 @@ export default function AnnotatedManuscriptSection({
// that actually owns the open comment scrolls.
useEffect(() => {
if (openComment) cardRef.current?.scrollIntoView?.({ behavior: 'smooth', block: 'center' });
- }, [openComment?.id]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [openComment?.id]);
// Esc closes the open note — parity with the Live popover.
useEscapeKey(openComment, onCloseComment);
diff --git a/client/src/components/pipeline/stages/AudioStage.jsx b/client/src/components/pipeline/stages/AudioStage.jsx
index 6b1f47ffad..577ca24a55 100644
--- a/client/src/components/pipeline/stages/AudioStage.jsx
+++ b/client/src/components/pipeline/stages/AudioStage.jsx
@@ -170,7 +170,6 @@ export default function AudioStage({ issue, onStageUpdate }) {
// Drop a pending re-derive confirm when leaving generated mode so it can't
// resurface unprompted on return.
else setConfirmRederive(false);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [audioMode]);
// Fetch the generators list (once) without opening the music Generate panel —
diff --git a/client/src/components/pipeline/stages/EpisodeVideoStage.jsx b/client/src/components/pipeline/stages/EpisodeVideoStage.jsx
index e861e6f8ad..cde6e01724 100644
--- a/client/src/components/pipeline/stages/EpisodeVideoStage.jsx
+++ b/client/src/components/pipeline/stages/EpisodeVideoStage.jsx
@@ -82,7 +82,7 @@ function RenderControls({ aspectRatio, setAspectRatio, quality, setQuality, mode
);
}
-export default function EpisodeVideoStage({ issue, series, onStageUpdate }) {
+export default function EpisodeVideoStage({ issue, onStageUpdate }) {
const stage = issue.stages?.episodeVideo || {};
const cdProjectId = stage.cdProjectId || null;
const storyboardScenes = issue.stages?.storyboards?.scenes || [];
diff --git a/client/src/components/pipeline/stages/StageHistoryModal.jsx b/client/src/components/pipeline/stages/StageHistoryModal.jsx
index d0a8240c62..9611ad211b 100644
--- a/client/src/components/pipeline/stages/StageHistoryModal.jsx
+++ b/client/src/components/pipeline/stages/StageHistoryModal.jsx
@@ -34,7 +34,6 @@ export default function StageHistoryModal({
useEffect(() => {
if (open && runHistory.length > 0) setSelectedRunId(runHistory[0].runId);
else if (!open) setSelectedRunId(null);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [open]);
const selected = runHistory.find((e) => e.runId === selectedRunId) || null;
diff --git a/client/src/components/pipeline/stages/StageHistoryModal.test.jsx b/client/src/components/pipeline/stages/StageHistoryModal.test.jsx
index 7759757e62..cd7ae30d60 100644
--- a/client/src/components/pipeline/stages/StageHistoryModal.test.jsx
+++ b/client/src/components/pipeline/stages/StageHistoryModal.test.jsx
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
-import { render, screen, within } from '@testing-library/react';
+import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
vi.mock('../../../services/api', () => ({
diff --git a/client/src/components/settings/LocalLlmTab.jsx b/client/src/components/settings/LocalLlmTab.jsx
index 216d1bfc99..e70a3a1285 100644
--- a/client/src/components/settings/LocalLlmTab.jsx
+++ b/client/src/components/settings/LocalLlmTab.jsx
@@ -4,7 +4,7 @@ import { Cpu, Box, ArrowRightLeft, Download, Trash2, RefreshCw, Search, Plus, Ex
import toast from '../ui/Toast';
import ConfirmButtonPair from '../ui/ConfirmButtonPair';
import BrailleSpinner from '../BrailleSpinner';
-import { formatBytes, formatContextLength, timeAgo, parseSizeGb, recommendedRamGb } from '../../utils/formatters';
+import { formatBytes, formatContextLength, timeAgo, recommendedRamGb } from '../../utils/formatters';
import { localLlmTargetKey } from '../../lib/localLlmTargetKey';
import {
getLocalLlmStatus, getLocalLlmCatalog, getLocalLlmHuggingFaceSearch, installLocalLlmModel,
diff --git a/client/src/components/sharing/ShareToButton.jsx b/client/src/components/sharing/ShareToButton.jsx
index 07fdadfe8d..ca94421aa4 100644
--- a/client/src/components/sharing/ShareToButton.jsx
+++ b/client/src/components/sharing/ShareToButton.jsx
@@ -94,7 +94,6 @@ export default function ShareToButton({ kind, ids, items, label = 'Share', compa
useEffect(() => {
if (open) refresh();
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [open]);
useLayoutEffect(() => {
diff --git a/client/src/components/sharing/SyncToPeerButton.jsx b/client/src/components/sharing/SyncToPeerButton.jsx
index 699b0bcb64..7d44488e81 100644
--- a/client/src/components/sharing/SyncToPeerButton.jsx
+++ b/client/src/components/sharing/SyncToPeerButton.jsx
@@ -100,7 +100,6 @@ export default function SyncToPeerButton({
useEffect(() => {
if (open) refresh();
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [open]);
// Anchor the portaled menu to the trigger while open, and keep it pinned as
diff --git a/client/src/components/songs/PitchTuner.jsx b/client/src/components/songs/PitchTuner.jsx
index b5a063e80c..94de53c72f 100644
--- a/client/src/components/songs/PitchTuner.jsx
+++ b/client/src/components/songs/PitchTuner.jsx
@@ -108,7 +108,6 @@ export default function PitchTuner({ stream = null, a4 = 440 }) {
// teardownTracker and the constant a4), so the only live trigger here is
// `stream` changing — and every branch reads the current standaloneOn. The
// standalone start/stop paths own their own attach/teardown directly.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [stream, attach, teardownTracker]);
// Stop standalone tuning: tear down the tracker AND close the mic we opened.
diff --git a/client/src/components/songs/RoundStack.jsx b/client/src/components/songs/RoundStack.jsx
index 35a04f886b..711112a7a5 100644
--- a/client/src/components/songs/RoundStack.jsx
+++ b/client/src/components/songs/RoundStack.jsx
@@ -52,7 +52,7 @@ export default function RoundStack({ songs = [] }) {
}))),
// `songs` intentionally excluded — takesKey is its content signature, so an
// equivalent-but-new songs array doesn't churn `takes`.
- [takesKey], // eslint-disable-line react-hooks/exhaustive-deps
+ [takesKey],
);
const audibleCount = useMemo(() => takes.filter((t) => !t.muted).length, [takes]);
diff --git a/client/src/components/songs/ScoreSheet.test.jsx b/client/src/components/songs/ScoreSheet.test.jsx
index e0a2e4fda2..d6fa57a966 100644
--- a/client/src/components/songs/ScoreSheet.test.jsx
+++ b/client/src/components/songs/ScoreSheet.test.jsx
@@ -33,7 +33,6 @@ describe('ScoreSheet renderer', () => {
});
it('draws full five-line staves (a multiple of five staff lines)', () => {
- const html = renderToStaticMarkup(<ScoreSheet text={FIVE_HUNDRED_MILES} />);
// Staff lines are the horizontal <line>s spanning the page; barlines are
// vertical. Count rows by staff lines / 5 — must be a whole number ≥ 1.
const html2 = renderToStaticMarkup(<ScoreSheet text={'| C4q | C4q |'} />);
diff --git a/client/src/components/songs/SongRecordings.jsx b/client/src/components/songs/SongRecordings.jsx
index f8db008d36..2d1aed5a76 100644
--- a/client/src/components/songs/SongRecordings.jsx
+++ b/client/src/components/songs/SongRecordings.jsx
@@ -80,7 +80,6 @@ export default function SongRecordings({ recordings = [], layers = [], onChange,
useEffect(() => {
if (liveStream && hasMusic && !matchRunning && startMatch()) armedThisTakeRef.current = true;
// start is stable; react only to stream/hasMusic (the arm trigger).
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [liveStream, hasMusic]);
// A persisted take selected for review — repaints its saved grades onto the
diff --git a/client/src/components/songs/SongTraining.jsx b/client/src/components/songs/SongTraining.jsx
index bb6c8a2192..f3ff03f9d2 100644
--- a/client/src/components/songs/SongTraining.jsx
+++ b/client/src/components/songs/SongTraining.jsx
@@ -117,7 +117,6 @@ export default function SongTraining({
useEffect(() => {
if (stream && !running && hasMusic && activeScope.score) start();
// start is stable from the hook; only react to the stream arriving.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [stream]);
// When a run finishes NATURALLY and we're not looping, close the mic and drop
diff --git a/client/src/components/universe/EntryThumbSlot.jsx b/client/src/components/universe/EntryThumbSlot.jsx
index c0b51cc5ec..b5b331a886 100644
--- a/client/src/components/universe/EntryThumbSlot.jsx
+++ b/client/src/components/universe/EntryThumbSlot.jsx
@@ -20,7 +20,7 @@
* save pending, etc.) so the button shape is still visible but inert.
*/
import { useState, useEffect } from 'react';
-import { Sparkles, Loader2, Star } from 'lucide-react';
+import { Sparkles, Star } from 'lucide-react';
import MediaJobThumb from '../pipeline/MediaJobThumb';
export default function EntryThumbSlot({
diff --git a/client/src/components/writers-room/AnalysisHistory.jsx b/client/src/components/writers-room/AnalysisHistory.jsx
index eee48f99a8..03b8fc2f91 100644
--- a/client/src/components/writers-room/AnalysisHistory.jsx
+++ b/client/src/components/writers-room/AnalysisHistory.jsx
@@ -40,7 +40,6 @@ export default function AnalysisHistory({ work, activeHash, onApplyFormat }) {
setExpanded(null);
setDetails({});
refresh();
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [work.id]);
const expand = async (analysis) => {
diff --git a/client/src/components/writers-room/StoryboardPanel.jsx b/client/src/components/writers-room/StoryboardPanel.jsx
index 2adbf52017..e618559143 100644
--- a/client/src/components/writers-room/StoryboardPanel.jsx
+++ b/client/src/components/writers-room/StoryboardPanel.jsx
@@ -224,7 +224,6 @@ export default function StoryboardPanel({
if (runningKind === 'script') setTab(TAB.BOARDS);
// setTab intentionally omitted — caller may not memoize it, and the
// effect should only fire on runningKind transitions.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [runningKind]);
const persistCfg = useCallback(async (next) => {
@@ -251,7 +250,6 @@ export default function StoryboardPanel({
// We intentionally key on latestScript identity rather than scenes (which
// is recreated each render) — array identity changes coincide with the
// analysis snapshot changing.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [latestScript]);
// Surface everything the Phase 5 live render preview needs to render the
@@ -269,7 +267,6 @@ export default function StoryboardPanel({
imageCfg,
imageStyle,
});
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [latestScript, charByKey, placeByKey, imageCfg, imageStyle]);
// Expose an imperative "merge a freshly-attached sceneImages map" up to
diff --git a/client/src/hooks/useCityPlayback.test.jsx b/client/src/hooks/useCityPlayback.test.jsx
index 8c09625561..5c9d55301f 100644
--- a/client/src/hooks/useCityPlayback.test.jsx
+++ b/client/src/hooks/useCityPlayback.test.jsx
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
-import { renderHook, act, waitFor } from '@testing-library/react';
+import { renderHook, act } from '@testing-library/react';
const getCitySnapshots = vi.fn();
vi.mock('../services/apiCity.js', () => ({
diff --git a/client/src/hooks/useColorMatch.test.jsx b/client/src/hooks/useColorMatch.test.jsx
index 4a8368221c..91b4e8e034 100644
--- a/client/src/hooks/useColorMatch.test.jsx
+++ b/client/src/hooks/useColorMatch.test.jsx
@@ -9,7 +9,7 @@ import { parseScore } from '../lib/scoreNotation.js';
const trackerStop = vi.fn();
const analyserClose = vi.fn();
const metronomeStop = vi.fn();
-let lastMetronome = null;
+let _lastMetronome = null;
vi.mock('../lib/audioRecorder.js', () => ({
createStreamAnalyser: vi.fn(() => ({ analyser: { fftSize: 2048 }, context: { currentTime: 0, sampleRate: 44100 }, close: analyserClose })),
@@ -23,7 +23,7 @@ vi.mock('../lib/metronome.js', async (importActual) => {
return {
...actual,
createMetronome: vi.fn((opts) => {
- lastMetronome = opts;
+ _lastMetronome = opts;
// Resolve start() but never fire onCountInComplete — we only exercise the
// arm/stop bookkeeping, not the rAF grading loop.
return { start: vi.fn(() => Promise.resolve()), stop: metronomeStop };
@@ -42,7 +42,7 @@ describe('useColorMatch — start()/stop() contract (#1092)', () => {
trackerStop.mockClear();
analyserClose.mockClear();
metronomeStop.mockClear();
- lastMetronome = null;
+ _lastMetronome = null;
});
it('start() returns false with no stream', () => {
diff --git a/client/src/hooks/useInstallStream.js b/client/src/hooks/useInstallStream.js
index 596902d73e..01c81091fb 100644
--- a/client/src/hooks/useInstallStream.js
+++ b/client/src/hooks/useInstallStream.js
@@ -168,7 +168,6 @@ export function useInstallStream(url, {
closeThis();
};
// onComplete intentionally excluded — it lives in onCompleteRef.
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [url, enabled, maxLogLines, flushMs]);
// Auto-scroll on every new line. behavior:'auto' (instant) avoids queueing
diff --git a/client/src/hooks/useOpenClawStream.js b/client/src/hooks/useOpenClawStream.js
index d03050a6d2..7c988afce9 100644
--- a/client/src/hooks/useOpenClawStream.js
+++ b/client/src/hooks/useOpenClawStream.js
@@ -89,7 +89,7 @@ export function useOpenClawStream({ selectedSessionId, attachments, setAttachmen
extraInstructions: context.extraInstructions
}).filter(([, value]) => String(value || '').trim())
);
- const payloadAttachments = attachments.map(({ id, size, previewUrl, ...attachment }) => attachment);
+ const payloadAttachments = attachments.map(({ id: _id, size: _size, previewUrl: _previewUrl, ...attachment }) => attachment);
setSending(true);
setActivityLabel('Connecting…');
@@ -101,7 +101,7 @@ export function useOpenClawStream({ selectedSessionId, attachments, setAttachmen
content: message || 'Please inspect the attached context and respond.',
createdAt: new Date().toISOString(),
status: 'completed',
- attachments: attachments.map(({ id, data, previewUrl, ...attachment }) => ({ id, ...attachment }))
+ attachments: attachments.map(({ id, data: _data, previewUrl: _previewUrl, ...attachment }) => ({ id, ...attachment }))
};
setMessages(current => [...current, userMessage, {
diff --git a/client/src/hooks/usePopoverPosition.js b/client/src/hooks/usePopoverPosition.js
index 708a713e96..e0e75108f2 100644
--- a/client/src/hooks/usePopoverPosition.js
+++ b/client/src/hooks/usePopoverPosition.js
@@ -113,7 +113,6 @@ export default function usePopoverPosition({
return;
}
reposition();
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [open, reposition, ...contentDeps]);
useEffect(() => {
diff --git a/client/src/lib/metronome.js b/client/src/lib/metronome.js
index b9b2db46d4..b6e15e9b54 100644
--- a/client/src/lib/metronome.js
+++ b/client/src/lib/metronome.js
@@ -107,7 +107,7 @@ export const beatDescriptor = (idx, { beatsPerBar = DEFAULT_BEATS_PER_BAR, count
export function createMetronome({
bpm = DEFAULT_BPM,
beatsPerBar = DEFAULT_BEATS_PER_BAR,
- beatValue = 4,
+ beatValue: _beatValue = 4,
countInBars = 0,
accentBeat = 1,
onBeat = null,
diff --git a/client/src/pages/CatalogIngest.jsx b/client/src/pages/CatalogIngest.jsx
index 59cf67caad..40c431dfe6 100644
--- a/client/src/pages/CatalogIngest.jsx
+++ b/client/src/pages/CatalogIngest.jsx
@@ -317,7 +317,6 @@ export default function CatalogIngest() {
const c = arr[i];
const name = (c.name || '').trim();
if (!name) continue;
- // eslint-disable-next-line no-unused-vars
const { id: _id, type: _type, name: _name, tags: _tags, payload: nestedPayload, description, ...rest } = c;
const payload = { ...rest, ...(nestedPayload && typeof nestedPayload === 'object' ? nestedPayload : {}) };
if (description !== undefined) payload.description = description;
diff --git a/client/src/pages/CreativeDirector.jsx b/client/src/pages/CreativeDirector.jsx
index 99a7521b1d..d04ad2d262 100644
--- a/client/src/pages/CreativeDirector.jsx
+++ b/client/src/pages/CreativeDirector.jsx
@@ -62,7 +62,6 @@ export default function CreativeDirector() {
const preferred = (m || []).find((entry) => !entry.deprecated) || (m || [])[0];
if (preferred && !form.modelId) setForm((f) => ({ ...f, modelId: preferred.id }));
}).catch(() => {});
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [fetchProjects]);
const handleCreate = async (e) => {
diff --git a/client/src/pages/ImageGen.jsx b/client/src/pages/ImageGen.jsx
index cc2360028f..c8925a2434 100644
--- a/client/src/pages/ImageGen.jsx
+++ b/client/src/pages/ImageGen.jsx
@@ -367,7 +367,6 @@ export default function ImageGen() {
}).catch(() => {});
}).catch(() => {});
return () => eventSourceRef.current?.close();
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Re-probe status whenever the effective backend changes — flipping the
@@ -413,7 +412,6 @@ export default function ImageGen() {
setPrompt((p) => appendTriggerWords(p, match.triggerWords));
}
setSearchParams((prev) => { const next = new URLSearchParams(prev); next.delete('lora'); return next; }, { replace: true });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [searchParams, availableLoras]);
// Inbound params from Media History / Send-to-i2i (?prompt=…&modelId=…&seed=…
@@ -448,7 +446,6 @@ export default function ImageGen() {
n.delete('initImageFile');
return n;
}, { replace: true });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// Strip EXIF orientation by re-encoding the image with rotation baked into
diff --git a/client/src/pages/LocalLlmPlayground.jsx b/client/src/pages/LocalLlmPlayground.jsx
index 1a38aa37ac..c205472874 100644
--- a/client/src/pages/LocalLlmPlayground.jsx
+++ b/client/src/pages/LocalLlmPlayground.jsx
@@ -6,7 +6,7 @@ import PlaygroundOutput from '../components/localLlm/PlaygroundOutput';
import toast from '../components/ui/Toast';
import { copyToClipboard } from '../lib/clipboard';
import { localLlmTargetKey } from '../lib/localLlmTargetKey';
-import { formatBytes, parseSizeGb, recommendedRamGb } from '../utils/formatters';
+import { formatBytes, recommendedRamGb } from '../utils/formatters';
import { compareLocalLlmModels, getLocalLlmCatalog, getLocalLlmStatus, streamLocalLlmTest } from '../services/api';
const BACKEND_LABEL = { ollama: 'Ollama', lmstudio: 'LM Studio' };
diff --git a/client/src/pages/LoraDatasetDetail.jsx b/client/src/pages/LoraDatasetDetail.jsx
index fcfdd46fd3..1c9ce318e1 100644
--- a/client/src/pages/LoraDatasetDetail.jsx
+++ b/client/src/pages/LoraDatasetDetail.jsx
@@ -287,7 +287,6 @@ export default function LoraDatasetDetail() {
setSubject(entries.find((entry) => entry.id === dataset.character.entryId) || null);
})
.catch(() => {});
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [dataset?.character?.universeId, dataset?.character?.entryKind, dataset?.character?.entryId]);
// Object/place variation axes (Lighting/Settings) live as server-side
@@ -308,7 +307,6 @@ export default function LoraDatasetDetail() {
.then((axes) => { if (!cancelled) setVariationAxes(axes); })
.catch(() => { if (!cancelled) setVariationAxes(null); });
return () => { cancelled = true; };
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [datasetId, dataset?.character?.entryKind]);
// Readiness is derived from the live local images (not the server's snapshot
diff --git a/client/src/pages/MediaCollectionDetail.jsx b/client/src/pages/MediaCollectionDetail.jsx
index 853dbfccb1..b66443b2d7 100644
--- a/client/src/pages/MediaCollectionDetail.jsx
+++ b/client/src/pages/MediaCollectionDetail.jsx
@@ -1,5 +1,5 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
-import { useParams, Link, useNavigate } from 'react-router-dom';
+import { useParams, Link } from 'react-router-dom';
import { ArrowLeft, CheckSquare, Copy, DatabaseZap, FolderInput, Inbox, Lock, Pencil, Star, StarOff, Trash2, X } from 'lucide-react';
import ShareToButton from '../components/sharing/ShareToButton';
import toast from '../components/ui/Toast';
@@ -45,7 +45,6 @@ const hydrate = (collection, imagesByName, videosById) => {
export default function MediaCollectionDetail() {
const { id } = useParams();
const isUnsorted = id === UNSORTED_ID;
- const navigate = useNavigate();
const [collection, setCollection] = useState(null);
// Full collections list — fetched once for the bulk move/copy picker so it
// doesn't pay a per-mount listMediaCollections() round-trip when opened.
diff --git a/client/src/pages/MediaHistory.jsx b/client/src/pages/MediaHistory.jsx
index 8b3f3b58c9..ad39c3c011 100644
--- a/client/src/pages/MediaHistory.jsx
+++ b/client/src/pages/MediaHistory.jsx
@@ -5,7 +5,7 @@
*/
import { useState, useEffect, useCallback, useMemo } from 'react';
-import { Link, useNavigate } from 'react-router-dom';
+import { Link } from 'react-router-dom';
import { Combine, Image as ImageIcon, Film, Search, X } from 'lucide-react';
import toast from '../components/ui/Toast';
import MediaCard from '../components/media/MediaCard';
@@ -30,7 +30,6 @@ const FILTERS = [
];
export default function MediaHistory() {
- const navigate = useNavigate();
const [items, setItems] = useState([]);
const [loading, setLoading] = useState(true);
const [filter, setFilter] = useState('all');
diff --git a/client/src/pages/PipelineEditorialChecks.jsx b/client/src/pages/PipelineEditorialChecks.jsx
index 5b328f199e..8e632069e5 100644
--- a/client/src/pages/PipelineEditorialChecks.jsx
+++ b/client/src/pages/PipelineEditorialChecks.jsx
@@ -124,7 +124,6 @@ export default function PipelineEditorialChecks() {
if (type === 'complete') { loadFindings(seriesId); toast.success('Editorial checks complete'); }
else if (type === 'canceled') toast.success('Editorial checks canceled');
else toast.error(runLatest.error || 'Editorial checks failed');
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [runActive, runClosed, runLatest, seriesId]);
// Recovery: the stream died WITHOUT a terminal frame — don't strand the UI;
@@ -135,7 +134,6 @@ export default function PipelineEditorialChecks() {
if (t === 'complete' || t === 'canceled' || t === 'error') return; // handled above
setRunActive(false);
loadFindings(seriesId);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [runActive, runClosed, runLatest, seriesId]);
// ---- Catalog mutations (reactive local updates; the API owns the toast).
diff --git a/client/src/pages/PipelineManuscriptEditor.jsx b/client/src/pages/PipelineManuscriptEditor.jsx
index b0419b02e3..547048d913 100644
--- a/client/src/pages/PipelineManuscriptEditor.jsx
+++ b/client/src/pages/PipelineManuscriptEditor.jsx
@@ -161,7 +161,7 @@ export default function PipelineManuscriptEditor() {
// Keyed on seriesId only — `navigate`'s identity changes when the issue-tab
// URL changes, and including it would re-run this initial load (clobbering a
// format switch with a stale default-format refetch).
- }, [seriesId]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [seriesId]);
useEffect(() => {
let canceled = false;
@@ -186,7 +186,6 @@ export default function PipelineManuscriptEditor() {
const next = new URLSearchParams(searchParams);
next.delete('comment');
setSearchParams(next, { replace: true });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [loading, comments, searchParams]);
const overrideProvider = providers.find((p) => p.id === overrideProviderId) || null;
@@ -293,7 +292,6 @@ export default function PipelineManuscriptEditor() {
if (type === 'complete') reloadReviewAfterRun(reviewLatest);
else if (type === 'canceled') toast.success('Editorial review canceled');
else toast.error(reviewLatest.error || 'Editorial review failed');
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [reviewActive, reviewClosed, reviewLatest, seriesId]);
// Recovery: the stream died WITHOUT a terminal frame (attach 404, dropped
@@ -306,7 +304,6 @@ export default function PipelineManuscriptEditor() {
if (t === 'complete' || t === 'canceled' || t === 'error') return; // handled above
setReviewActive(false);
reloadReviewAfterRun(null, { recovered: true });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [reviewActive, reviewClosed, reviewLatest, seriesId]);
const startGenerateEditsReview = async (mode) => {
diff --git a/client/src/pages/Sharing.jsx b/client/src/pages/Sharing.jsx
index 40e9709166..2743b97887 100644
--- a/client/src/pages/Sharing.jsx
+++ b/client/src/pages/Sharing.jsx
@@ -88,7 +88,7 @@ export default function Sharing() {
function SharingBuckets() {
const [buckets, setBuckets] = useState([]);
- const [localSchemaVersion, setLocalSchemaVersion] = useState(null);
+ const [, setLocalSchemaVersion] = useState(null);
const [loading, setLoading] = useState(true);
const [selectedId, setSelectedId] = useState(null);
const [showAdd, setShowAdd] = useState(false);
diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsx
index 85527d9e1c..880889e0d5 100644
--- a/client/src/pages/Shell.jsx
+++ b/client/src/pages/Shell.jsx
@@ -135,7 +135,7 @@ export default function Shell() {
} else {
initialOptsRef.current = {};
}
- }, []); // eslint-disable-line react-hooks/exhaustive-deps
+ }, []);
// Fetch app folders from the managed apps list
useEffect(() => {
diff --git a/client/src/pages/SongEditor.jsx b/client/src/pages/SongEditor.jsx
index d38a66445a..0655c0d462 100644
--- a/client/src/pages/SongEditor.jsx
+++ b/client/src/pages/SongEditor.jsx
@@ -909,7 +909,7 @@ function LayeredSheetMusic({ tabs }) {
// swatches so every surface agrees on which color is which voice.
const colorByKey = useMemo(
() => new Map(tabs.map((t, i) => [t.key, layerColor(i)])),
- [tabsKey], // eslint-disable-line react-hooks/exhaustive-deps
+ [tabsKey],
);
// Default: every part checked, so Play gives the full stack out of the box.
// Reconcile across tab-set changes — keep checks for parts that still exist,
@@ -921,7 +921,7 @@ function LayeredSheetMusic({ tabs }) {
if (next.size === 0) tabs.forEach((t) => next.add(t.key));
return next;
});
- }, [tabsKey]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [tabsKey]);
const melodyScore = tabs[0].score;
const tempoFromMelody = useMemo(() => {
@@ -998,7 +998,7 @@ function LayeredSheetMusic({ tabs }) {
// plus the shared per-layer color.
const pianoParts = useMemo(
() => tabs.filter((t) => selected.has(t.key)).map((t) => ({ id: t.key, label: t.label, color: colorByKey.get(t.key), score: t.score })),
- [tabs, selectionKey, colorByKey], // eslint-disable-line react-hooks/exhaustive-deps
+ [tabs, selectionKey, colorByKey],
);
const transportBtn = 'flex items-center gap-1 rounded-md border border-port-border bg-port-card px-2 py-1 text-white hover:border-port-accent transition-colors disabled:opacity-40 disabled:hover:border-port-border';
diff --git a/client/src/pages/UniverseBuilder.jsx b/client/src/pages/UniverseBuilder.jsx
index 414a2f59fc..d84f6b270f 100644
--- a/client/src/pages/UniverseBuilder.jsx
+++ b/client/src/pages/UniverseBuilder.jsx
@@ -1623,7 +1623,6 @@ export default function UniverseBuilder() {
const next = new URLSearchParams(searchParams);
next.delete('tab');
setSearchParams(next, { replace: true });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [requestedTab, hasOtherBuckets]);
// Drop a stale `?bucket=` if the bucket no longer exists under the current
diff --git a/client/src/pages/Uploads.jsx b/client/src/pages/Uploads.jsx
index 7a46023af2..cbc855a689 100644
--- a/client/src/pages/Uploads.jsx
+++ b/client/src/pages/Uploads.jsx
@@ -2,7 +2,6 @@ import { useState, useEffect, useCallback, useRef } from 'react';
import { Upload, Trash2, Download, FileText, Image, File, FolderOpen, RefreshCw } from 'lucide-react';
import { useConfirmDelete } from '../hooks/useConfirmDelete';
import ConfirmButtonPair from '../components/ui/ConfirmButtonPair';
-import InlineConfirmRow from '../components/ui/InlineConfirmRow';
import toast from '../components/ui/Toast';
import BrailleSpinner from '../components/BrailleSpinner';
import * as api from '../services/api';
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index c7dd726818..98c6f6e20a 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -60,7 +60,7 @@ import {
listVideoHistory, deleteVideoHistoryItem, setVideoHidden, extractLastFrame,
upscaleVideo,
listImageGallery,
- getSettings, patchSettingsSlice,
+ patchSettingsSlice,
getActiveVideoJob,
listLorasFull,
} from '../services/api';
@@ -282,7 +282,6 @@ export default function VideoGen() {
stripKeys.forEach((k) => n.delete(k));
return n;
}, { replace: true });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const [history, setHistory] = useState([]);
@@ -376,7 +375,6 @@ export default function VideoGen() {
}
}
setSearchParams((prev) => { const next = new URLSearchParams(prev); next.delete('lora'); return next; }, { replace: true });
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [availableLoras, models]);
const { visibleHistory, hiddenHistory } = useMemo(() => ({
@@ -678,7 +676,6 @@ export default function VideoGen() {
const isCurrent = () => myToken === runTokenRef.current;
attachJobEvents(job.jobId, { isCurrent, withToast: false });
}).catch(() => {});
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleSavePythonPath = useCallback(async (path) => {
@@ -1279,7 +1276,6 @@ export default function VideoGen() {
// unmount during the 1.5s BUSY backoff would fire setRunningQueueId on
// a torn-down component (React warning + leaked state).
return () => { if (busyRetryTimer) clearTimeout(busyRetryTimer); };
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [queue, generating, runningQueueId]);
const handleCancel = async () => {
diff --git a/package-lock.json b/package-lock.json
index 6eee29845e..d23c95b5c6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -685,10 +685,20 @@
}
},
"node_modules/js-yaml": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
- "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz",
+ "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==",
"dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
diff --git a/package.json b/package.json
index 05a606b2aa..e1f2f184bc 100644
--- a/package.json
+++ b/package.json
@@ -44,6 +44,7 @@
"basic-ftp": "6.0.1",
"follow-redirects": "1.16.0",
"brace-expansion": "5.0.5",
+ "js-yaml": "4.2.0",
"socket.io-parser": "4.2.6",
"protobufjs": "7.5.9",
"@protobufjs/utf8": "1.1.1",
diff --git a/server/package.json b/server/package.json
index 3693eb916a..325885cafd 100644
--- a/server/package.json
+++ b/server/package.json
@@ -22,17 +22,17 @@
"kokoro-js": "1.2.1",
"node-pty": "1.2.0-beta.10",
"pdf-lib": "^1.17.1",
- "pg": "8.19.0",
+ "pg": "8.22.0",
"pm2": "7.0.1",
"sax": "^1.6.0",
- "sharp": "0.34.5",
+ "sharp": "0.35.2",
"socket.io": "4.8.3",
"socket.io-client": "4.8.3",
"zod": "^4.4.3"
},
"devDependencies": {
- "@vitest/coverage-v8": "4.1.8",
- "vitest": "4.1.8"
+ "@vitest/coverage-v8": "4.1.9",
+ "vitest": "4.1.9"
},
"overrides": {
"path-to-regexp": "8.4.2",
@@ -40,6 +40,7 @@
"basic-ftp": "6.0.1",
"follow-redirects": "1.16.0",
"brace-expansion": "5.0.6",
+ "js-yaml": "4.2.0",
"qs": "6.15.2",
"socket.io-parser": "4.2.6",
"protobufjs": "7.5.9",