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
simplify: trim redundant predicate + verbose comment from review fixes
[._.]/ Adam Eivyedf50accdde8
diff --git a/server/services/messageEvaluator.js b/server/services/messageEvaluator.jsindex 97fe2baa86..caf4befda7 100644--- a/server/services/messageEvaluator.js+++ b/server/services/messageEvaluator.js@@ -85,10 +85,7 @@ function parseEvalResponse(text, messageIds) {// callers benefit from also apply here. Without it, a Codex banner before// the JSON or a stray trailing comma throws SyntaxError instead of// surfacing the cleaner "Failed to parse AI evaluation response" upstream.- const { value: parsed } = extractJson(text, {- blockType: 'array',- shapePredicate: Array.isArray,- });+ const { value: parsed } = extractJson(text, { blockType: 'array' });if (!Array.isArray(parsed)) return null;// Index by message ID, only keep valid entriesdiff --git a/server/services/voice/proactiveSpeech.js b/server/services/voice/proactiveSpeech.jsindex eac63a709f..436cb7289b 100644--- a/server/services/voice/proactiveSpeech.js+++ b/server/services/voice/proactiveSpeech.js@@ -117,12 +117,8 @@ export const speakProactive = async ({ io, text, priority = 'normal', source = '}const { wav, latencyMs } = await synthesize(trimmed);- // Register this proactive line in every connected socket's echo buffer so- // the next user turn picks it up as TTS echo if the laptop mic catches the- // playback — without this, the bot's own voice would round-trip back into- // the LLM as user input. Per-turn TTS already does the equivalent via- // `state.recentTts`; proactive speech has no socket context, so it goes- // through the module-scope registry instead.+ // Mirror the per-turn `state.recentTts` write so a proactive line bleeding+ // from speakers back into the mic gets dropped as echo on the next turn.rememberTtsForAllSockets(trimmed);// `voice:speak` is the proactive-speech channel — distinct from per-turn// `voice:tts:audio` so the client can render a different visual cue