From 9b0e5ff4877bfa1626f011bc52717092242639a9 Mon Sep 17 00:00:00 2001 From: Jeffrey Alan Scudder Date: Tue, 31 Mar 2026 18:01:13 +0000 Subject: [PATCH] silence console noise: kidlisp 404 for non-lisp pieces, module-loader blob/circular warnings Co-Authored-By: Claude Opus 4.6 (1M context) --- system/public/aesthetic.computer/lib/kidlisp.mjs | 7 ++++--- system/public/aesthetic.computer/module-loader.mjs | 4 ++-- 2 file(s) changed, 6 insertion(s)(+), 5 deletion(s)(-) diff --git a/system/public/aesthetic.computer/lib/kidlisp.mjs b/system/public/aesthetic.computer/lib/kidlisp.mjs --- a/system/public/aesthetic.computer/lib/kidlisp.mjs +++ b/system/public/aesthetic.computer/lib/kidlisp.mjs @@ -15144,11 +15144,12 @@ resolve(null); } }); } else { - console.error(`❌ Failed to load cached code: ${nanoidCode} - HTTP ${response.status}: ${response.statusText} from ${url}`); + if (response.status !== 404) { + console.error(`❌ Failed to load cached code: ${nanoidCode} - HTTP ${response.status}: ${response.statusText} from ${url}`); + } resolve(null); } }).catch(error => { - console.error(`❌ Network error loading cached code: ${nanoidCode} from ${url}`, error); resolve(null); }); } @@ -15174,7 +15175,7 @@ } // Fallback to production aesthetic.computer domain const productionUrl = `https://aesthetic.computer/api/store-kidlisp?code=${nanoidCode}`; - console.log(`🔄 Local dev server failed, trying production fallback: ${productionUrl}`); + // Silent fallback — 404 on local just means it's not a kidlisp piece const productionSource = await tryFetch(productionUrl, true); return productionSource; diff --git a/system/public/aesthetic.computer/module-loader.mjs b/system/public/aesthetic.computer/module-loader.mjs --- a/system/public/aesthetic.computer/module-loader.mjs +++ b/system/public/aesthetic.computer/module-loader.mjs @@ -302,7 +302,7 @@ // If any HTTP fallbacks were needed, the blob approach won't work reliably // Clean up the broken blob URLs we created - they have un-rewritten imports if (hasHttpFallback) { - console.warn(`📦 Bundle ${msg.entry} has circular deps, cleaning up ${newBlobUrls.length} blob URLs`); + // Circular deps — clean up blob URLs silently and fall back to HTTP for (const modPath of newBlobUrls) { const url = this.blobUrls.get(modPath); if (url) URL.revokeObjectURL(url); @@ -396,7 +396,7 @@ // Don't set hadFallback - this is expected behavior return null; } // Static import missing - this is a problem (missing dep in bundle) - console.warn(`📦 Missing blob URL: ${modulePath} imports "${importPath}" -> resolved: "${resolved}"`); + // Silent — missing blob URLs fall back to HTTP import hadFallback = true; return null; // Don't rewrite - leave original path }; -- tangled.sh