From 70e1a995f30d0aed872152df2ef549809ee2726f Mon Sep 17 00:00:00 2001 From: dwrz Date: Sun, 14 Jun 2026 12:45:39 +0000 Subject: [PATCH] Fix missing tool call output --- internal/service/static/main.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/internal/service/static/main.js b/internal/service/static/main.js index 5759d36..d67f54a 100644 --- a/internal/service/static/main.js +++ b/internal/service/static/main.js @@ -1328,12 +1328,9 @@ class Odidere { continue; } - // Stash assistant messages with tool calls; don't render yet. - if ( - message.role === 'assistant' && - message.tool_calls?.length > 0 && - !message.content - ) { + // Stash assistant messages with tool calls; render once all + // tool results have arrived so the output is visible in the UI. + if (message.role === 'assistant' && message.tool_calls?.length > 0) { const appended = this.#appendHistory([message]); pendingTools = { assistant: appended[0], @@ -1364,6 +1361,10 @@ class Odidere { } // Regular assistant message (final reply with content). + // Skip non-assistant messages (tool results, etc.) that may have + // fallen through above — they should not be rendered or spoken. + if (message.role !== 'assistant') continue; + const meta = {}; if (event.voice) meta.voice = event.voice;