From f3516e2e6d02fa333d03efcdaee3a55b3bd9c0c5 Mon Sep 17 00:00:00 2001 From: arelchan <1239372199@qq.com> Date: Sat, 18 Jul 2026 00:31:48 +0800 Subject: [PATCH] fix(tracing): show model-call reasoning above the answer, not below The viewer's Model Output card appended the (folded) reasoning block after the assistant answer, so it read bottom-up. Reasoning precedes the answer chronologically -- the model thinks, then responds -- so render it at the top of the card, kept collapsed since it is long and diagnostic. Co-authored-by: Claude (claude-opus-4-8) --- raven/tracing/viewer/ui/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/raven/tracing/viewer/ui/app.js b/raven/tracing/viewer/ui/app.js index 89f747e..95b0ca2 100644 --- a/raven/tracing/viewer/ui/app.js +++ b/raven/tracing/viewer/ui/app.js @@ -1354,11 +1354,14 @@ function renderModelOutputCard(span, artifacts) { ] .filter(Boolean) .join(' · '); + // Reasoning precedes the answer chronologically (the model thinks, then + // responds), so render it above the body — collapsed, since it is long and + // diagnostic. return `

Model Output

${note ? `${escapeHtml(note)}` : ''}
- ${body} ${reasoningBlock} + ${body}
`; }