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: move ?? comment to authScheme only, clarify attachment size error message
[._.]/ Adam Eivy3d565a6a934c
diff --git a/client/src/pages/OpenClaw.jsx b/client/src/pages/OpenClaw.jsxindex fb6478dc61..9bffb046ae 100644--- a/client/src/pages/OpenClaw.jsx+++ b/client/src/pages/OpenClaw.jsx@@ -327,7 +327,7 @@ export default function OpenClaw() {if (existingBase64Chars + newBase64Chars > MAX_ATTACHMENTS_TOTAL_BASE64_CHARS) {next.forEach(a => { if (a.previewUrl) URL.revokeObjectURL(a.previewUrl); });const totalMB = Math.round((existingBase64Chars + newBase64Chars) * 0.75 / (1024 * 1024));- setMessagesError(`Combined attachments (~${totalMB}MB) exceed the 50MB total limit.`);+ setMessagesError(`Combined attachments exceed the 50MB encoded total limit (~${totalMB}MB decoded).`);return;}diff --git a/server/integrations/openclaw/api.js b/server/integrations/openclaw/api.jsindex cdc2be565a..33b4085e98 100644--- a/server/integrations/openclaw/api.js+++ b/server/integrations/openclaw/api.js@@ -142,9 +142,9 @@ async function loadConfig() {configured,baseUrl: finalBaseUrl,authToken: pickFirst(process.env.OPENCLAW_AUTH_TOKEN, fileConfig.authToken, ''),- // Use ?? instead of pickFirst so empty strings ('') are preserved as intentional values.- // authScheme='' means "token only" (no prefix), which getAuthHeaders() explicitly supports.authHeader: process.env.OPENCLAW_AUTH_HEADER ?? fileConfig.authHeader ?? 'Authorization',+ // Use ?? for authScheme so empty strings ('') are preserved as intentional values.+ // authScheme='' means "token only" (no prefix), which getAuthHeaders() explicitly supports.authScheme: process.env.OPENCLAW_AUTH_SCHEME ?? fileConfig.authScheme ?? 'Bearer',label: pickFirst(process.env.OPENCLAW_LABEL, fileConfig.label, 'OpenClaw Runtime'),defaultSession: pickFirst(process.env.OPENCLAW_DEFAULT_SESSION, fileConfig.defaultSession, null),