diff --git a/agent/chat_ui.html b/agent/chat_ui.html index 850a002e8..e1cfbd4b2 100644 --- a/agent/chat_ui.html +++ b/agent/chat_ui.html @@ -6101,14 +6101,15 @@ ? 'flag' : 'fail'; details.innerHTML = ` - 🔍 debug + 🔍 Metadata
tools_called${toolList}
verification${meta.verification_outcome || '—'}
confidence${confPct}
-
latency${meta.latency_seconds != null ? meta.latency_seconds + 's' : '—'}
+
latency${meta.latency_seconds != null ? meta.latency_seconds + 's' : (meta.latency_ms != null ? meta.latency_ms + 'ms' : '—')}
citations${(meta.citations || []).join(', ') || 'none'}
`; + details.open = true; // Expanded by default so metadata is visible footer.appendChild(details); wrapEl.appendChild(footer);