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: surface Zod detail messages in stream error responses

[._.]/ Adam Eivy5a09c960e41f
diff --git a/client/src/services/apiOpenClaw.js b/client/src/services/apiOpenClaw.js
index 783e50ee45..31eb964b5a 100644
--- a/client/src/services/apiOpenClaw.js
+++ b/client/src/services/apiOpenClaw.js
@@ -34,7 +34,14 @@ export async function streamOpenClawMessage(sessionId, { message, context, attac
if (!response.ok) {
const error = await response.json().catch(() => ({ error: `HTTP ${response.status}` }));
- throw new Error(error.error || `HTTP ${response.status}`);
+ const detailMessage = Array.isArray(error?.context?.details)
+ ? error.context.details
+ .map((d) => d?.message)
+ .filter((m) => typeof m === 'string' && m.trim())
+ .slice(0, 3)
+ .join('; ')
+ : '';
+ throw new Error(detailMessage || error.error || `HTTP ${response.status}`);
}
if (!response.body) {