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
fix: keep the missing-module names printable when a probe resolved no remedy prose (#4741)
[._.]/ Adam Eivyc5244da2f3ba
diff --git a/server/routes/imageTo3d.test.js b/server/routes/imageTo3d.test.jsindex 63186d7711..86c08d41c3 100644--- a/server/routes/imageTo3d.test.js+++ b/server/routes/imageTo3d.test.js@@ -39,8 +39,9 @@ vi.mock('../services/imageTo3d/targets.js', async (importOriginal) => ({}));vi.mock('../services/imageTo3d/trellis2.js', async (importOriginal) => ({- // Pure formatters (`degradedInstall.js`) come through REAL — the adapter's- // `degraded.detail` is asserted below, so stubbing them would test the stub.+ // The pure half (`resolveDegradedBakeRemedy`, the `TRELLIS2_*` constants) comes through+ // REAL — the adapter's `degraded` projection is asserted below, so stubbing it would+ // test the stub....(await importOriginal()),isTrellis2Installed: vi.fn(() => false),trellis2Root: vi.fn(() => '/tmp/trellis2'),diff --git a/server/services/imageTo3d/degradedInstall.js b/server/services/imageTo3d/degradedInstall.jsindex be08f1c880..9124085f35 100644--- a/server/services/imageTo3d/degradedInstall.js+++ b/server/services/imageTo3d/degradedInstall.js@@ -39,13 +39,16 @@ export function missingModulesLabel(missing) {* (`… models are kept. Missing: o_voxel.`), for the lanes that can only emit one string* and have no second line to put a label on.*+ * A caller whose probe produced no prose still gets the label alone rather than a frame+ * reading `undefined Missing: o_voxel.` — the names are the half worth printing.+ ** @param {string} help the remedy prose (already ends in its own punctuation)* @param {string[]|undefined} missing module names the probe found absent* @returns {string}*/export function appendMissingModules(help, missing) {const label = missingModulesLabel(missing);- return label ? `${help} ${label}.` : help;+ return [help, label && `${label}.`].filter(Boolean).join(' ');}/**diff --git a/server/services/imageTo3d/degradedInstall.test.js b/server/services/imageTo3d/degradedInstall.test.jsindex 62774cc982..43cd28340c 100644--- a/server/services/imageTo3d/degradedInstall.test.js+++ b/server/services/imageTo3d/degradedInstall.test.js@@ -32,6 +32,12 @@ describe('appendMissingModules', () => {expect(appendMissingModules('NATTEN is missing.', [])).toBe('NATTEN is missing.');expect(appendMissingModules('NATTEN is missing.', undefined)).toBe('NATTEN is missing.');});++ it('prints the culprits alone rather than an "undefined" frame when the remedy is absent', () => {+ // A probe can resolve no remedy prose; the module names are still worth printing, and+ // an interpolated `undefined` would render verbatim in the install log.+ expect(appendMissingModules(undefined, ['o_voxel'])).toBe('Missing: o_voxel.');+ });});describe('describeDegradedInstall', () => {diff --git a/server/services/imageTo3d/pixal3dCuda.js b/server/services/imageTo3d/pixal3dCuda.jsindex 4082afbfea..f4da6de821 100644--- a/server/services/imageTo3d/pixal3dCuda.js+++ b/server/services/imageTo3d/pixal3dCuda.js@@ -388,8 +388,8 @@ export const PIXAL3D_NAF_MODULES = ['natten'];* next to its NAF sibling rather than inlined at the registry so both readings of a* half-built install come from one place.*/-export const PIXAL3D_INCOMPLETE_INSTALL_HELP = 'Pixal3D is installed but a required CUDA '- + 'extension did not build, so renders will fail in the mesh exporter. Repair install '+export const PIXAL3D_INCOMPLETE_INSTALL_HELP = 'Pixal3D is installed but not every required '+ + 'CUDA extension built, so renders will fail in the mesh exporter. Repair install '+ 'rebuilds the CUDA extensions; your downloaded models are kept.';export const PIXAL3D_NAF_FALLBACK_HELP = 'Pixal3D is installed, but NATTEN is missing, '