Add reasoning time seconds tooltip

79b8229b1b087c2ef30f61f44235de7fe5b1e4ec

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +2 -1Ignore whitespace
public/scripts/reasoning.js+2 -1
@@ -80,7 +80,8 @@ export function extractReasoningFromData(data) {
8080export function updateReasoningTimeUI(element, duration, { forceEnd = false } = {}) {
8181 if (duration) {
8282 const durationStr = moment.duration(duration).locale(getCurrentLocale()).humanize({ s: 50, ss: 9 });
83- element.textContent = t`Thought for ${durationStr}`;
83+ const secondsStr = moment.duration(duration).asSeconds();
84+ element.innerHTML = t`Thought for <span title="${secondsStr} seconds">${durationStr}</span>`;
8485 } else if (forceEnd) {
8586 element.textContent = t`Thought for some time`;
8687 } else {