From ff892a1ad52c1c15928803d3f934a49c3a96a070 Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Mon, 18 May 2026 23:50:05 -0400 Subject: [PATCH] fix(capture): use duration_ms field for recent captures duration display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The asset schema stores duration as duration_ms (milliseconds). renderRecent() was checking c.duration (always undefined) so duration always showed as '—'. Fix to use c.duration_ms / 1000. --- services/web-ui/public/capture.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web-ui/public/capture.html b/services/web-ui/public/capture.html index 95e5912..5ef1e43 100644 --- a/services/web-ui/public/capture.html +++ b/services/web-ui/public/capture.html @@ -524,8 +524,8 @@ FileDurationDate ${captures.map(c => ` - ${esc(c.filename || c.clip_name || 'untitled')} - ${c.duration ? formatDuration(c.duration) : '—'} + ${esc(c.display_name || c.filename || 'untitled')} + ${c.duration_ms ? formatDuration(c.duration_ms / 1000) : '—'} ${c.created_at ? new Date(c.created_at).toLocaleString() : '—'} `).join('')}