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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (claude): resolve mflux venv in resumeTrainingRun too
[._.]/ Adam Eivy5c33c149371e
diff --git a/server/services/loraTraining/index.js b/server/services/loraTraining/index.jsindex 69e3d909c7..a23a03a27d 100644--- a/server/services/loraTraining/index.js+++ b/server/services/loraTraining/index.js@@ -293,9 +293,13 @@ export async function resumeTrainingRun(runId, { auto = false } = {}) {});}- // Engine health: mirror startTrainingRun for the run's existing runtime.+ // Engine health: mirror startTrainingRun for the run's existing runtime —+ // including resolving the dedicated ~/.portos/venv-mflux, so a resume (manual+ // OR the stall-watchdog auto-resume) on a dedicated-venv install doesn't+ // falsely fail the availability check and thread a null interpreter into the+ // re-enqueued job.const settings = await getSettings();- const pythonPath = settings?.imageGen?.local?.pythonPath || null;+ const pythonPath = resolveMfluxPython(settings?.imageGen?.local?.pythonPath || null);if (run.runtime === TRAINING_RUNTIMES.FLUX2) {if (!(await isFlux2VenvHealthy())) {throw new ServerError('FLUX.2 training venv is unavailable — run `bash scripts/setup-image-video.sh`', {diff --git a/server/services/loraTraining/resume.test.js b/server/services/loraTraining/resume.test.jsindex ea6ff88df8..f6ab354ab1 100644--- a/server/services/loraTraining/resume.test.js+++ b/server/services/loraTraining/resume.test.js@@ -30,6 +30,7 @@ vi.mock('../settings.js', () => ({ getSettings: vi.fn(async () => ({})) }));vi.mock('../../lib/pythonSetup.js', () => ({isFlux2VenvHealthy: (...a) => isFlux2VenvHealthyMock(...a),resolveFlux2Python: vi.fn(() => '/venv/python'),+ resolveMfluxPython: (p) => p || null,}));vi.mock('../mediaJobQueue/index.js', () => ({enqueueJob: (...a) => enqueueJobMock(...a),