Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(slider): honor declared ghost audio duration

kirozeng842269770a0b
diff --git a/apps/desktop/src/renderer/components/chat/GhostToolCard.tsx b/apps/desktop/src/renderer/components/chat/GhostToolCard.tsx
index 98c5e6ad5d..b8de0482c5 100644
--- a/apps/desktop/src/renderer/components/chat/GhostToolCard.tsx
+++ b/apps/desktop/src/renderer/components/chat/GhostToolCard.tsx
@@ -293,7 +293,7 @@ function GhostCardCanvas({
const render = (): void => {
const d = getDur();
scrubberRoot.render(<MediaScrubber currentTime={a.currentTime}
- duration={Number.isFinite(a.duration) ? a.duration : 0}
+ duration={d}
label={t('chat.media.audioProgress')}
onSeek={(seconds) => { a.currentTime = seconds; render(); }} />);
curEl.textContent = formatAudioClock(a.currentTime);