From 86b53aee27db490128c5fb0069c55062b7e98854 Mon Sep 17 00:00:00 2001 From: ecatuogno1 Date: Wed, 18 Mar 2026 20:26:42 -0700 Subject: [PATCH] fix(web,server): improve runtime error visibility in thread error banner Runtime errors (e.g. malformed local SKILL.md) were truncated twice: server-side to 180 chars, then UI-side to 3 lines via line-clamp-3. This made errors like invalid YAML parsing failures nearly unreadable. - Increase server-side runtime error truncation limit from 180 to 512 characters to preserve diagnostic detail - Expand UI error banner from line-clamp-3 to line-clamp-6 so longer error messages remain readable without dominating the viewport Closes #1084 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../server/src/orchestration/Layers/ProviderRuntimeIngestion.ts | 2 +- apps/web/src/components/chat/ThreadErrorBanner.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts b/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts index ed58664b8f..b4f474dfdf 100644 --- a/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts +++ b/apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts @@ -255,7 +255,7 @@ function runtimeEventToActivities( kind: "runtime.error", summary: "Runtime error", payload: { - message: truncateDetail(message), + message: truncateDetail(message, 512), }, turnId: toTurnId(event.turnId) ?? null, ...maybeSequence, diff --git a/apps/web/src/components/chat/ThreadErrorBanner.tsx b/apps/web/src/components/chat/ThreadErrorBanner.tsx index b48412453c..4eee8d8c6f 100644 --- a/apps/web/src/components/chat/ThreadErrorBanner.tsx +++ b/apps/web/src/components/chat/ThreadErrorBanner.tsx @@ -14,7 +14,7 @@ export const ThreadErrorBanner = memo(function ThreadErrorBanner({
- + {error} {onDismiss && (