Expose active source quote in Ranker receipt

This commit is contained in:
OpenClaw Bot
2026-05-27 20:51:03 +02:00
parent 77b5395962
commit 2fa061120c
4 changed files with 11 additions and 1 deletions
+1
View File
@@ -253,6 +253,7 @@ function renderFirstScreen(firstScreen = {}) {
<p>${escapeHtml(firstScreen.why || 'It is the best first proof slice.')}</p>
</div>
${held.length ? `<div><span>Hold back</span><ul>${held.map((item) => `<li><b>${escapeHtml(item.title)}</b>${item.lane ? `${escapeHtml(item.lane)}` : ''}</li>`).join('')}</ul></div>` : ''}
${firstScreen.sourceQuote ? `<blockquote class="active-source-quote"><span>${escapeHtml(firstScreen.sourceTitle || 'Source quote')}</span>${escapeHtml(firstScreen.sourceQuote)}</blockquote>` : ''}
${guardrails.length ? `<small>Guardrails: ${guardrails.map(escapeHtml).join(' · ')}</small>` : ''}
${firstScreen.sourceAnchor ? `<small>Source anchor: ${escapeHtml(firstScreen.sourceAnchor)}</small>` : ''}
<small>${escapeHtml(firstScreen.rule || 'One active move. Everything else waits.')}</small>