co-mono/packages/web-ui/src
Mario Zechner 949cd4efd8 Fix console.log duplication bug in ConsoleRuntimeProvider
Issue:
Each browser_javascript execution wrapped console methods, but captured
the current (already wrapped) console as "original". This created a chain
of wrappers that accumulated across executions:
- Execution 1: 1x console.log (wrapper1 → real console)
- Execution 2: 2x console.log (wrapper2 → wrapper1 → real console)
- Execution 3: 3x console.log (wrapper3 → wrapper2 → wrapper1 → real console)
- Execution 4: 4x console.log (and so on...)

Fix:
Store the truly original console methods in window.__originalConsole on
first wrap only. All subsequent executions use these stored original methods
instead of capturing the current console. This prevents wrapper accumulation.

Changes:
- Check if window.__originalConsole exists before wrapping
- Store original console methods with .bind() to preserve context
- Always use window.__originalConsole for local logging
- Now each execution logs exactly 1x regardless of execution count
2025-10-13 00:20:23 +02:00
..
agent Add ToolRenderResult interface for custom tool rendering 2025-10-11 04:40:42 +02:00
components Fix console.log duplication bug in ConsoleRuntimeProvider 2025-10-13 00:20:23 +02:00
dialogs Add ollama dependency and dialog backdrop blur 2025-10-08 17:49:56 +02:00
prompts Add extract_document tool and improve artifacts tab scrolling 2025-10-12 16:24:36 +02:00
storage Add getAllFromIndex method for efficient sorted queries 2025-10-11 16:21:28 +02:00
tools Fix TypeScript errors and export UserMessageWithAttachments 2025-10-12 17:09:14 +02:00
utils Committing manually like the monkey I am 2025-10-12 02:59:46 +02:00
app.css Add Anthropic prompt caching, pluggable storage, and CORS proxy support 2025-10-05 23:00:36 +02:00
ChatPanel.ts Expose agent, agentInterface, and artifactsPanel as public in ChatPanel 2025-10-10 11:40:07 +02:00
index.ts Fix TypeScript errors and export UserMessageWithAttachments 2025-10-12 17:09:14 +02:00