Cap the failure message's height in the banner

The output block was capped at max-h-48 but the verbatim message wasn't,
so a long stack trace or cause chain could push the tabs out of view in
the full-height sandbox and terminal layouts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Scott Werner 2026-10-27 14:00:24 -04:00
parent aed46202b0
commit 6e7b75c0df

View file

@ -39,7 +39,7 @@ export function RunFailureBanner({ failure }: { failure: RunFailureView }) {
<dt className="mb-1 font-mono text-[0.6875rem] tracking-wide text-fg-muted uppercase">
{failure.provider ? "Provider message" : "Message"}
</dt>
<dd className="rounded-md bg-overlay px-3 py-2 font-mono text-xs/5 wrap-break-word whitespace-pre-wrap text-fg-3">
<dd className="max-h-48 overflow-auto rounded-md bg-overlay px-3 py-2 font-mono text-xs/5 wrap-break-word whitespace-pre-wrap text-fg-3">
{failure.message}
</dd>
</div>