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
address review: truncate raw text before escaping for telegram, include outOfSync/uninitialized in update-all filter
Adam Eivyfd4b2d9052fe
diff --git a/client/src/pages/Submodules.jsx b/client/src/pages/Submodules.jsxindex 82a80a0f39..cda188c9e5 100644--- a/client/src/pages/Submodules.jsx+++ b/client/src/pages/Submodules.jsx@@ -39,7 +39,7 @@ export default function Submodules() {};const handleUpdateAll = async () => {- const outdated = submodules.filter(s => s.behind > 0);+ const outdated = submodules.filter(s => s.behind > 0 || s.outOfSync || !s.initialized);if (outdated.length === 0) {toast.success('All submodules are up to date');return;diff --git a/server/services/telegram.js b/server/services/telegram.jsindex 08b59a690b..84c0a64d73 100644--- a/server/services/telegram.js+++ b/server/services/telegram.js@@ -383,11 +383,12 @@ async function forwardNotification(notification) {if (isMemoryApproval) {const memory = await peekMemory(notification.metadata.memoryId).catch(() => null);const raw = memory?.summary || memory?.content || notification.description || '';- // Telegram messages are capped at 4096 chars; escape first since escaping can expand text- const escaped = escapeHtml(raw);- const MAX_CONTENT = 3500;- const fullContent = escaped.length > MAX_CONTENT ? escaped.slice(0, MAX_CONTENT) + '...' : escaped;- if (fullContent) lines.push(fullContent);+ // Telegram messages are capped at 4096 chars; truncate raw text first to avoid+ // slicing mid-entity after escaping (e.g. & → &am). Use conservative limit+ // since escaping can expand characters (& → &, < → <, etc.)+ const MAX_RAW = 3000;+ const truncated = raw.length > MAX_RAW ? raw.slice(0, MAX_RAW) + '...' : raw;+ if (truncated) lines.push(escapeHtml(truncated));opts.reply_markup = JSON.stringify({inline_keyboard: [[{ text: '✅ Approve', callback_data: `${CALLBACK_APPROVE}:${notification.metadata.memoryId}` },