Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Unsloth: show complete chat error messages (#15496)
Lee Jackson36541622988e
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 5a97bd95f6f..d0485e2fa46 100644--- a/studio/frontend/src/components/assistant-ui/thread.tsx+++ b/studio/frontend/src/components/assistant-ui/thread.tsx@@ -7553,7 +7553,7 @@ const MessageError: FC = () => {return (<MessagePrimitive.Error><ErrorPrimitive.Root className="aui-message-error-root mt-2 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-lg bg-destructive/10 p-3 text-destructive text-sm dark:bg-destructive/5 dark:text-red-200">- <ErrorPrimitive.Message className="aui-message-error-message line-clamp-2 min-w-0 flex-1" />+ <ErrorPrimitive.Message className="aui-message-error-message min-w-0 flex-1 whitespace-pre-wrap break-words" />{!researchRunId && !researchActive && (<ActionBarPrimitive.Reload asChild={true}><buttondiff --git a/tests/studio/test_chat_error_message_contract.py b/tests/studio/test_chat_error_message_contract.pynew file mode 100644index 00000000000..95d70185e59--- /dev/null+++ b/tests/studio/test_chat_error_message_contract.py@@ -0,0 +1,30 @@+# SPDX-License-Identifier: AGPL-3.0-only+# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++"""The chat error banner shows the whole error text."""++from pathlib import Path+++REPO = Path(__file__).resolve().parents[2]+THREAD = REPO / "studio/frontend/src/components/assistant-ui/thread.tsx"+++def _error_message_classes() -> set[str]:+ source = THREAD.read_text(encoding = "utf-8")+ at = source.index("<ErrorPrimitive.Message")+ tag = source[at : source.index("/>", at)]+ start = tag.index('className="') + len('className="')+ return set(tag[start : tag.index('"', start)].split())+++def test_chat_error_message_is_not_clamped():+ # A clamp hid the context-length advice that follows the first two lines.+ classes = _error_message_classes()+ assert not any(c.startswith("line-clamp") for c in classes), classes+ assert not any(c in {"truncate", "overflow-hidden"} for c in classes), classes+++def test_chat_error_message_wraps_long_text():+ classes = _error_message_classes()+ assert {"whitespace-pre-wrap", "break-words", "min-w-0"} <= classes, classes