From 38aaaee9680e58176259c164708c90a5530fed47 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 9 Oct 2025 20:53:32 +0200 Subject: [PATCH] Remove debug console.log statements causing duplicate error messages - console.log('Reporting execution error:', finalError) was logging the error - This caused duplicate error message in output - Removed all debug console.log statements from window.complete() - Error is only shown via execution-error message now --- .../web-ui/src/components/sandbox/ConsoleRuntimeProvider.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/web-ui/src/components/sandbox/ConsoleRuntimeProvider.ts b/packages/web-ui/src/components/sandbox/ConsoleRuntimeProvider.ts index 92bf55af..622d8085 100644 --- a/packages/web-ui/src/components/sandbox/ConsoleRuntimeProvider.ts +++ b/packages/web-ui/src/components/sandbox/ConsoleRuntimeProvider.ts @@ -128,19 +128,15 @@ export class ConsoleRuntimeProvider implements SandboxRuntimeProvider { if ((window as any).sendRuntimeMessage) { if (finalError) { - console.log("Reporting execution error:", finalError); await (window as any).sendRuntimeMessage({ type: "execution-error", error: finalError, }); - console.log("Execution completed"); } else { - console.log("Reporting execution complete"); await (window as any).sendRuntimeMessage({ type: "execution-complete", returnValue, }); - console.log("Execution completed"); } } };