Skip to content

Commit 86b53ae

Browse files
ecatuogno1claude
andcommitted
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) <[email protected]>
1 parent 0de5742 commit 86b53ae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function runtimeEventToActivities(
255255
kind: "runtime.error",
256256
summary: "Runtime error",
257257
payload: {
258-
message: truncateDetail(message),
258+
message: truncateDetail(message, 512),
259259
},
260260
turnId: toTurnId(event.turnId) ?? null,
261261
...maybeSequence,

‎apps/web/src/components/chat/ThreadErrorBanner.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const ThreadErrorBanner = memo(function ThreadErrorBanner({
1414
<div className="pt-3 mx-auto max-w-3xl">
1515
<Alert variant="error">
1616
<CircleAlertIcon />
17-
<AlertDescription className="line-clamp-3" title={error}>
17+
<AlertDescription className="line-clamp-6" title={error}>
1818
{error}
1919
</AlertDescription>
2020
{onDismiss && (

0 commit comments

Comments
 (0)