From 714c5f9833432b15d850e07cf46929ae92b365e8 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 13 Oct 2026 12:05:05 -0400 Subject: [PATCH] fix: running a code block shows the value of its last line instead of timing out (#32360) --- src/lib/components/chat/Messages/CodeBlock.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index 03be479933..1c61eeb3cc 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -308,7 +308,7 @@ } } - if (data['result']) { + if (typeof data['result'] === 'string') { result = data['result']; const resultLines = result.split('\n');