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: align client file size limit with server, pass sessionId to invokeTool
[._.]/ Adam Eivyaf8df38e2054
diff --git a/client/src/pages/OpenClaw.jsx b/client/src/pages/OpenClaw.jsxindex 0f200eef78..f35a2bfe11 100644--- a/client/src/pages/OpenClaw.jsx+++ b/client/src/pages/OpenClaw.jsx@@ -281,8 +281,10 @@ export default function OpenClaw() {useEffect(() => () => abortControllerRef.current?.abort(), []);const MAX_ATTACHMENTS = 8;- // Matches server-side ATTACHMENT_BASE64_MAX_CHARS (13,333,333 chars ≈ 10,000,000 raw bytes)- const MAX_ATTACHMENT_FILE_SIZE = 10_000_000; // 10MB per file (metric, not binary)+ // Matches server-side ATTACHMENT_BASE64_MAX_CHARS (13,333,333 chars). Base64 expands raw bytes+ // by 4/3, so 13,333,333 chars ≈ 9,999,999 raw bytes after block-rounding. Use that as the limit+ // so a file that passes client validation is guaranteed to pass server validation too.+ const MAX_ATTACHMENT_FILE_SIZE = 9_999_999; // effective per-file server limit in raw bytes// Matches server-side ATTACHMENTS_TOTAL_BASE64_MAX_CHARS (50,000,000 chars ≈ 37.5MB raw)const MAX_ATTACHMENTS_TOTAL_BASE64_CHARS = 50_000_000;diff --git a/server/integrations/openclaw/api.js b/server/integrations/openclaw/api.jsindex 8d59c7b9d7..77f769287f 100644--- a/server/integrations/openclaw/api.js+++ b/server/integrations/openclaw/api.js@@ -391,7 +391,7 @@ export async function getSessionMessages(sessionId, { limit = 50 } = {}) {sessionKey: sessionId,limit,includeTools: false- });+ }, sessionId);const messages = (payload?.messages || []).map((message, index) => normalizeMessage(message, index)).filter(message => message.content || message.role || message.createdAt);