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

address review: emoji warn, wired constant, accurate comment, full error, catch context

Adam Eivydcd2f846832a
diff --git a/autofixer/server.js b/autofixer/server.js
index 194c5601be..00d24c5a4b 100644
--- a/autofixer/server.js
+++ b/autofixer/server.js
@@ -350,6 +350,6 @@ process.on('SIGTERM', () => {
// Start
main().catch(error => {
- console.error('[Autofixer] Fatal error:', error);
+ console.error('[Autofixer] Fatal error:', error?.message || String(error), error?.stack);
process.exit(1);
});
diff --git a/server/services/cos.js b/server/services/cos.js
index 8299a097a7..48dc98e47d 100644
--- a/server/services/cos.js
+++ b/server/services/cos.js
@@ -3029,7 +3029,7 @@ async function init() {
}
}
-// Initialize asynchronously (skip during tests to avoid circular import issues)
+// Initialize asynchronously (skip during tests to avoid circular import issues and side effects)
if (process.env.NODE_ENV !== 'test') {
init();
}
diff --git a/server/services/lmStudioManager.js b/server/services/lmStudioManager.js
index 31a158d4e8..12247f044c 100644
--- a/server/services/lmStudioManager.js
+++ b/server/services/lmStudioManager.js
@@ -7,6 +7,8 @@
import { cosEvents } from './cosEvents.js'
+const AVAILABILITY_CACHE_TTL_MS = 30_000
+
// Default LM Studio configuration
const DEFAULT_CONFIG = {
baseUrl: (process.env.LM_STUDIO_URL || 'http://localhost:1234').replace(/\/+$/, '').replace(/\/v1$/, ''),
@@ -63,7 +65,7 @@ async function checkLMStudioAvailable() {
const now = Date.now()
// Use cached result if recent (within 30 seconds)
- if (lastCheckAt && now - lastCheckAt < 30000 && isAvailable !== null) {
+ if (lastCheckAt && now - lastCheckAt < AVAILABILITY_CACHE_TTL_MS && isAvailable !== null) {
return isAvailable
}
diff --git a/server/services/messageTokenExtractor.js b/server/services/messageTokenExtractor.js
index 4878d2af9b..be0f40258b 100644
--- a/server/services/messageTokenExtractor.js
+++ b/server/services/messageTokenExtractor.js
@@ -150,7 +150,7 @@ async function extractTokenFromLocalStorage(page, resource) {
bestExp = exp;
best = val.secret;
}
- } catch(e) {}
+ } catch(e) { console.warn('📧 localStorage parse error', e.message); }
}
return best;
})()`;
diff --git a/server/services/moltworldWs.js b/server/services/moltworldWs.js
index 5651ffe9b2..46af275f68 100644
--- a/server/services/moltworldWs.js
+++ b/server/services/moltworldWs.js
@@ -116,7 +116,9 @@ function handleMessage(raw) {
status: 'completed',
result: { type: eventType, content: data.message || data.thought || '' },
timestamp: new Date().toISOString()
- }).catch(() => {});
+ }).catch(err => {
+ console.warn(`⚠️ Activity log failed eventType=${eventType}:`, err?.message || String(err));
+ });
}
} else if (eventType === 'nearby') {
moltworldWsEvents.emit('nearby', data);