diff --git a/system/public/aesthetic.computer/lib/kidlisp.mjs b/system/public/aesthetic.computer/lib/kidlisp.mjs index 40e4fb80d..8405db2d6 100644 --- a/system/public/aesthetic.computer/lib/kidlisp.mjs +++ b/system/public/aesthetic.computer/lib/kidlisp.mjs @@ -15144,11 +15144,12 @@ async function fetchCachedCode(nanoidCode, api = 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 @@ async function fetchCachedCode(nanoidCode, api = null) { // 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 index a886b977f..46e2352bf 100644 --- a/system/public/aesthetic.computer/module-loader.mjs +++ b/system/public/aesthetic.computer/module-loader.mjs @@ -302,7 +302,7 @@ class ModuleLoader { // 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 @@ class ModuleLoader { 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 };